Commit a582c823 authored by Amit Kumar's avatar Amit Kumar
Browse files

fix app icon bug and folder size icon

parent e85daa70
......@@ -51,7 +51,7 @@ public class GraphicsUtil {
Log.d(TAG, "Unknown type of icon found");
return context.getResources().getDrawable(R.mipmap.ic_folder, null);
}
int width = sources[0].getIntrinsicWidth() * 3/4;
int width = sources[0].getIntrinsicWidth();
int height = width; // Square icons
Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
Canvas canvas = new Canvas(bitmap);
......
......@@ -9,9 +9,10 @@
android:id="@+id/app_icon"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_gravity="center"
android:background="@drawable/rounded_corners_icon"
android:foreground="?attr/selectableItemBackground"
android:layout_marginBottom="4dp"
android:scaleType="fitCenter" />
<TextView
......@@ -21,7 +22,6 @@
android:ellipsize="end"
android:gravity="center"
android:maxLines="1"
android:layout_marginTop="4dp"
android:textColor="@color/app_label_color"
android:textSize="@dimen/labelSize" />
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment