Преглед изворни кода

remove unused shimmer effects

Signed-off-by: Abdourahamane Boinaidi <abdourahamane.boinaidi@infomaniak.com>
Abdourahamane Boinaidi пре 5 година
родитељ
комит
907d8007b5
1 измењених фајлова са 28 додато и 35 уклоњено
  1. 28 35
      src/main/res/layout/grid_sync_item.xml

+ 28 - 35
src/main/res/layout/grid_sync_item.xml

@@ -26,44 +26,37 @@
     android:background="@drawable/list_selector"
     android:gravity="center_horizontal">
 
-    <com.facebook.shimmer.ShimmerFrameLayout
-        android:id="@+id/shimmer_view_container"
+    <ImageView
+        android:id="@+id/thumbnail"
         android:layout_width="match_parent"
         android:layout_height="match_parent"
-        app:shimmer_auto_start="false">
+        android:scaleType="centerCrop"
+        android:src="@drawable/folder" />
 
-        <ImageView
-            android:id="@+id/thumbnail"
-            android:layout_width="match_parent"
-            android:layout_height="match_parent"
-            android:scaleType="centerCrop"
-            android:src="@drawable/folder" />
-
-        <ImageView
-            android:id="@+id/thumbnailDarkener"
-            android:layout_width="match_parent"
-            android:layout_height="match_parent"
-            android:background="#99000000"
-            android:contentDescription="@null"
-            android:scaleType="centerCrop" />
-
-        <LinearLayout
-            android:id="@+id/counterLayout"
+    <ImageView
+        android:id="@+id/thumbnailDarkener"
+        android:layout_width="match_parent"
+        android:layout_height="match_parent"
+        android:background="#99000000"
+        android:contentDescription="@null"
+        android:scaleType="centerCrop" />
+
+    <LinearLayout
+        android:id="@+id/counterLayout"
+        android:layout_width="wrap_content"
+        android:layout_height="wrap_content"
+        android:layout_gravity="center_vertical|center_horizontal"
+        android:gravity="center_horizontal"
+        android:orientation="horizontal">
+
+        <TextView
+            android:id="@+id/counter"
             android:layout_width="wrap_content"
             android:layout_height="wrap_content"
-            android:layout_gravity="center_vertical|center_horizontal"
-            android:gravity="center_horizontal"
-            android:orientation="horizontal">
-
-            <TextView
-                android:id="@+id/counter"
-                android:layout_width="wrap_content"
-                android:layout_height="wrap_content"
-                android:src="@android:drawable/checkbox_off_background"
-                android:text="@string/placeholder_fileSize"
-                android:textColor="#ffffff"
-                android:textSize="@dimen/grid_sync_item_layout_counter_text_size"
-                android:textStyle="bold" />
-        </LinearLayout>
-    </com.facebook.shimmer.ShimmerFrameLayout>
+            android:src="@android:drawable/checkbox_off_background"
+            android:text="@string/placeholder_fileSize"
+            android:textColor="#ffffff"
+            android:textSize="@dimen/grid_sync_item_layout_counter_text_size"
+            android:textStyle="bold" />
+    </LinearLayout>
 </FrameLayout>