File tree 2 files changed +14
-4
lines changed
IconColorization/app/src/main/java/com/ptrprograms/iconcolorization
2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -51,9 +51,19 @@ protected void onCreate(Bundle savedInstanceState) {
51
51
mDrawableUrlImage = (ImageView ) findViewById ( R .id .url_drawable );
52
52
mDrawableUrlTransformedImage = (ImageView ) findViewById ( R .id .transformed_url_drawable );
53
53
54
- Picasso .with ( this ).load ( R .drawable .ic_star ).transform ( new ColorTransformation (getResources ().getColor ( R .color .local_drawable_color ) ) ).into ( mDrawableTransformedImage );
55
- Picasso .with ( this ).load ( getString ( R .string .image_url ) ).into ( mDrawableUrlImage );
56
- Picasso .with ( this ).load ( getString ( R .string .image_url ) ).transform ( new ColorTransformation ( getResources ().getColor ( R .color .remote_image_color ) ) ).into ( mDrawableUrlTransformedImage );
54
+ Picasso .with ( this )
55
+ .load ( R .drawable .ic_star )
56
+ .transform ( new ColorTransformation (getResources ().getColor ( R .color .local_drawable_color ) ) )
57
+ .into ( mDrawableTransformedImage );
58
+
59
+ Picasso .with ( this )
60
+ .load ( getString ( R .string .image_url ) )
61
+ .into ( mDrawableUrlImage );
62
+
63
+ Picasso .with ( this )
64
+ .load ( getString ( R .string .image_url ) )
65
+ .transform ( new ColorTransformation ( getResources ().getColor ( R .color .remote_image_color ) ) )
66
+ .into ( mDrawableUrlTransformedImage );
57
67
58
68
if ( Build .VERSION .SDK_INT >= Build .VERSION_CODES .HONEYCOMB )
59
69
Picasso .with ( this ).load ( R .drawable .ic_star ).transform ( new ColorTransformation ( getResources ().getColor ( R .color .action_bar_icon_color ) ) ).into (ActionBarIconTarget );
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public class ColorTransformation implements Transformation {
18
18
public ColorTransformation () {
19
19
20
20
}
21
-
21
+
22
22
public ColorTransformation ( int color ) {
23
23
setColor ( color );
24
24
}
You can’t perform that action at this time.
0 commit comments