Solved 'Share with copied link' flow
[pub/Android/ownCloud.git] / res / layout / text_file_preview.xml
index f58ce50..f33b3d8 100644 (file)
@@ -1,29 +1,12 @@
 <?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_height="wrap_content"
+    android:visibility="gone"
+    android:divider="@null"
+    android:dividerHeight="0dp"
+    android:focusable="false"
+    android:focusableInTouchMode="false"
     android:layout_marginStart="8dp"
-    android:layout_marginEnd="8dp">
-
-    <ScrollView
-        android:id="@+id/text_scrollview"
-        android:layout_width="match_parent"
-        android:layout_height="wrap_content"
-        android:scrollbars="vertical"
-        android:fillViewport="true"
-        android:visibility="gone">
-
-        <TextView
-            android:id="@+id/text_preview"
-            android:layout_width="match_parent"
-            android:layout_height="wrap_content"
-            android:layout_gravity="center" />
-    </ScrollView>
-
-    <ProgressBar
-        android:id="@+id/progress_bar"
-        android:layout_width="wrap_content"
-        android:layout_height="wrap_content"
-        android:layout_gravity="center"
-        android:visibility="gone" />
-</FrameLayout>
\ No newline at end of file
+    android:layout_marginEnd="8dp" />
\ No newline at end of file