// Load image, decode it to Bitmap and display Bitmap in ImageView imageLoader.displayImage(imageUri, imageView, displayOptions, new ImageLoadingListener() { @Override public void onLoadingStarted(String imageUri, View view) { ... } @Override public void onLoadingFailed(String imageUri, View view, FailReason failReason) { ... } @Override public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) { ... } @Override public void onLoadingCancelled(String imageUri, View view) { ... } },new ImageLoadingProgressListener(){ @Override public void onProgressUpdate(String imageUri, View view, int current, int total) { ... } });
ImageSize targetSize = new ImageSize(120, 80); // result Bitmap will be fit to this size imageLoader.loadImage(imageUri, targetSize, displayOptions, new SimpleImageLoadingListener() { @Override public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) { // Do whatever you want with Bitmap } }); // 同步解码Bitmap Bitmap bmp = imageLoader.loadImageSync(imageUri, targetSize, displayOptions);
@interface CALayer /* Attach an animation to the layer. */ - (void)addAnimation:(CAAnimation *)anim forKey:(NSString *)key;
/* Remove all animation attached to the layer. */ - (void)removeAllAnimations;
/* Remove any animation attached to the layer for 'key'. */ - (void)removeAnimationForKey:(NSString *)key;
/* Returns an array containing the keys of all animations currently attached to the receiver. */ - (NSArray *)animationKeys;
/* Returns the animation added to the layer with identifier 'key', or nil if no such animation exists. */ - (CAAnimation *)animationForKey:(NSString *)key;
/* Attach an animation to the layer. */ - (void)pop_addAnimation:(POPAnimation *)anim forKey:(NSString *)kay;
/* Remove all animations attached to the layer. */ - (void)pop_removeAllAnimations;
/* Remove any animation attached to the layer for 'key'. */ - (void)pop_removeAnimationForKey:(NSString *)key;
/* Returns an array containing the keys of all animations currently attached to the receiver. */ - (NSArray *)pop_animationKeys;
/* Returns the animation added to the layer with identifier 'key', or nil if no such animation exists. */ - (POPAnimation *)pop_animationForKey:(NSString *)key;
<?xml version="1.0" encoding="utf-8"?> <resources> <!-- the theme applied to the application or activity --> <stylename="CustomActionBarTheme" parent="@android:style/Theme.Holo.Light.DarkActionBar"> <itemname="android:actionBarStyle">@style/MyActionBar</item> </style>
<?xml version="1.0" encoding="utf-8"?> <resources> <!-- the theme applied to the application or activity --> <stylename="CustomActionBarTheme" parent="@style/Theme.AppCompat.Light.DarkActionBar"> <itemname="android:actionBarStyle">@style/MyActionBar</item> <!-- Support library compatibility --> <itemname="actionBarStyle">@style/MyActionBar</item> </style>
<?xml version="1.0" encoding="utf-8"?> <resources> <!-- the theme applied to the application or activity --> <stylename="CustomActionBarTheme" parent="@style/Theme.Holo"> <itemname="android:actionBarStyle">@style/MyActionBar</item> <itemname="android:actionBarTabTextStyle">@style/MyActionBarTabText</item> <itemname="android:actionMenuTextColor">@color/actionbar_text</item> </style>
<!-- ActionBar title text --> <stylename="MyActionBarTitleText" parent="@style/TextAppearance.Holo.Widget.ActionBar.Title"> <itemname="android:textColor">@color/actionbar_text</item> </style>
<!-- ActionBar title text --> <stylename="MyActionBarTitleText" parent="@style/TextAppearance.AppCompat.Widget.ActionBar.Title"> <itemname="android:textColor">@color/actionbar_text</item> <!-- The textColor property is backward compatible with the Support Library --> </style>
<!-- ActionBar tabs text --> <stylename="MyActionBarTabText" parent="@style/Widget.AppCompat.ActionBar.TabText"> <itemname="android:textColor">@color/actionbar_text</item> <!-- The textColor property is backward compatible with the Support Library --> </style> </resources>