Black like button + less threads
This commit is contained in:
parent
0c2e3f852b
commit
1009fe2467
3 changed files with 8 additions and 3 deletions
|
@ -147,8 +147,12 @@ public class Utils {
|
|||
}
|
||||
|
||||
public static void URLtoImageView(ImageView iv, String url){
|
||||
if(bitmapHash.containsKey(url)){
|
||||
iv.setImageBitmap(bitmapHash.get(url));
|
||||
}else{
|
||||
new setUserAvatar(iv, url).execute();
|
||||
}
|
||||
}
|
||||
|
||||
private static class setUserAvatar extends AsyncTask<Void, Void, Bitmap> {
|
||||
private ImageView iv;
|
||||
|
|
BIN
app/src/main/res/drawable/like_icon_black.png
Normal file
BIN
app/src/main/res/drawable/like_icon_black.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.3 KiB |
|
@ -141,8 +141,9 @@
|
|||
android:layout_width="20dp"
|
||||
android:layout_height="20dp"
|
||||
android:id="@+id/imageView9"
|
||||
android:src="@drawable/like_icon"
|
||||
android:layout_gravity="center_vertical" />
|
||||
android:layout_gravity="center_vertical"
|
||||
android:background="@drawable/like_icon_black"
|
||||
android:backgroundTintMode="multiply" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/ndf_likes_textview"
|
||||
|
|
Loading…
Reference in a new issue