- renamed ImageViews
[pub/Android/ownCloud.git] / res / layout / grid_item.xml
index 9d7d719..4f1106a 100644 (file)
@@ -18,7 +18,7 @@
   along with this program.  If not, see <http://www.gnu.org/licenses/>.\r
   \r
 -->\r
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"\r
+<com.owncloud.android.ui.SquareLinearLayout xmlns:android="http://schemas.android.com/apk/res/android"\r
     android:id="@+id/ListItemLayout"\r
     android:layout_width="match_parent"\r
     android:layout_height="match_parent"\r
     android:gravity="center"\r
     android:orientation="vertical" >\r
 \r
-    <ImageView\r
-        android:id="@+id/imageView1"\r
-        android:layout_width="90dp"\r
-        android:layout_height="90dp"\r
-        android:layout_marginLeft="10dp"\r
-        android:layout_marginRight="10dp"\r
-        android:src="@drawable/ic_menu_archive" />\r
+    <FrameLayout\r
+        android:layout_width="match_parent"\r
+        android:layout_height="wrap_content"\r
+        android:layout_gravity="center_horizontal" >\r
+\r
+        <ImageView\r
+            android:id="@+id/favoriteIcon"\r
+            android:layout_width="15dp"\r
+            android:layout_height="15dp"\r
+            android:layout_gravity="bottom|right"\r
+            android:layout_marginBottom="2dp"\r
+            android:layout_marginRight="2dp"\r
+            android:src="@drawable/ic_favorite" />\r
+\r
+        <ImageView\r
+            android:id="@+id/thumbnail"\r
+            android:layout_width="80dp"\r
+            android:layout_height="80dp"\r
+            android:layout_gravity="center_horizontal"\r
+            android:layout_marginLeft="10dp"\r
+            android:layout_marginRight="10dp"\r
+            android:src="@drawable/ic_menu_archive" />\r
+\r
+    </FrameLayout>\r
 \r
     <TextView\r
         android:id="@+id/Filename"\r
-        android:layout_width="100dp"\r
+        android:layout_width="match_parent"\r
         android:layout_height="wrap_content"\r
-        android:layout_gravity="center_horizontal"\r
         android:layout_marginLeft="4dp"\r
         android:layout_marginRight="4dp"\r
         android:ellipsize="middle"\r
         android:textColor="#303030"\r
         android:textSize="16dip" />\r
 \r
-    <ImageView\r
-        android:id="@+id/imageView2"\r
-        android:layout_width="40dp"\r
-        android:layout_height="22dp"\r
-        android:layout_marginLeft="22dp"\r
-        android:src="@drawable/local_file_indicator" />\r
-\r
-    <TextView\r
-        android:id="@+id/file_size"\r
-        android:layout_width="wrap_content"\r
-        android:layout_height="wrap_content"\r
-        android:layout_weight=".5"\r
-        android:gravity="right"\r
-        android:text="TextView"\r
-        android:textColor="@color/list_item_lastmod_and_filesize_text"\r
-        android:textSize="12dip" />\r
-\r
-    <FrameLayout\r
-        android:id="@+id/imageItemFrame"\r
-        android:layout_width="56dp"\r
-        android:layout_height="56dp"\r
-        android:focusable="false"\r
-        android:focusableInTouchMode="false" >\r
-\r
-        <ImageView\r
-            android:id="@+id/sharedIcon"\r
-            android:layout_width="wrap_content"\r
-            android:layout_height="wrap_content"\r
-            android:layout_marginBottom="4dp"\r
-            android:layout_marginLeft="4dp"\r
-            android:layout_marginRight="4dp"\r
-            android:src="@drawable/sharedlink" />\r
-\r
-        <ImageView\r
-            android:id="@+id/sharedWithMeIcon"\r
-            android:layout_width="wrap_content"\r
-            android:layout_height="wrap_content"\r
-            android:layout_marginLeft="4dp"\r
-            android:layout_marginRight="4dp"\r
-            android:layout_marginTop="4dp"\r
-            android:src="@drawable/shared_with_me" />\r
-\r
-        <ImageView\r
-            android:id="@+id/custom_checkbox"\r
-            android:layout_width="wrap_content"\r
-            android:layout_height="wrap_content"\r
-            android:layout_marginLeft="4dp"\r
-            android:layout_marginRight="4dp"\r
-            android:src="@android:drawable/checkbox_off_background" />\r
-\r
-        <ImageView\r
-            android:id="@+id/imageView3"\r
-            android:layout_width="wrap_content"\r
-            android:layout_height="wrap_content"\r
-            android:layout_gravity="bottom|right"\r
-            android:layout_marginBottom="10dp"\r
-            android:layout_marginRight="2dp"\r
-            android:src="@drawable/ic_favorite" />\r
-\r
-        <TextView\r
-            android:id="@+id/last_mod"\r
-            android:layout_width="wrap_content"\r
-            android:layout_height="wrap_content"\r
-            android:layout_weight=".5"\r
-            android:text="TextView"\r
-            android:textColor="@color/list_item_lastmod_and_filesize_text"\r
-            android:textSize="12dip" />\r
-    </FrameLayout>\r
-\r
-</LinearLayout>
\ No newline at end of file
+</com.owncloud.android.ui.SquareLinearLayout>
\ No newline at end of file