Jorge Antonio Diaz-Benito Soriano 10 lat temu
rodzic
commit
4e6abd4f0a

+ 8 - 21
res/layout/text_file_preview.xml

@@ -1,23 +1,10 @@
 <?xml version="1.0" encoding="utf-8"?>
-<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<ListView xmlns:android="http://schemas.android.com/apk/res/android"
+    android:id="@+id/text_preview_list"
     android:layout_width="match_parent"
-    android:layout_height="match_parent"
-    android:layout_marginStart="8dp"
-    android:layout_marginEnd="8dp">
-
-    <ListView
-        android:id="@+id/text_preview_list"
-        android:layout_width="match_parent"
-        android:layout_height="wrap_content"
-        android:visibility="gone"
-        android:divider="@null"
-        android:dividerHeight="0dp"
-        android:focusable="false"
-        android:focusableInTouchMode="false" />
-
-    <ProgressBar
-        android:id="@+id/progress_bar"
-        android:layout_width="wrap_content"
-        android:layout_height="wrap_content"
-        android:layout_gravity="center" />
-</FrameLayout>
+    android:layout_height="wrap_content"
+    android:visibility="gone"
+    android:divider="@null"
+    android:dividerHeight="0dp"
+    android:focusable="false"
+    android:focusableInTouchMode="false" />

+ 0 - 1
res/layout/text_file_preview_list_item.xml

@@ -21,5 +21,4 @@
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
     android:textColor="@android:color/black"
-    android:maxLines="1"
     android:layout_gravity="center" />