Favourites disabled until fix can be pushed
[pub/Android/ownCloud.git] / res / layout / list_layout.xml
index 60f6689..ddad38c 100644 (file)
-<?xml version="1.0" encoding="UTF-8"?>
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
-       android:orientation="horizontal"
-       android:id="@+id/ListItemLayout" android:layout_width="fill_parent"
-       android:background="#F7F7F7" android:layout_height="wrap_content">
-       <ImageView android:layout_width="wrap_content" android:src="@drawable/ic_menu_archive"
-               android:id="@+id/imageView1" android:layout_height="wrap_content"
-               android:layout_marginLeft="15dip" android:focusable="false"
-               android:focusableInTouchMode="false"></ImageView>
-       <TextView android:layout_height="wrap_content"
-               android:textColor="#303030" android:layout_width="wrap_content"
-               android:text="TextView" android:layout_marginLeft="5dip"
-               android:layout_marginBottom="5dip" android:layout_marginRight="30dip"
-               android:id="@+id/Filename" android:focusable="false"
-    android:focusableInTouchMode="false" android:textSize="20dip">
-       </TextView>
-</LinearLayout>
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!-- \r
+  ownCloud Android client application\r
+\r
+  Copyright (C) 2012  Bartek Przybylski\r
+  This program is free software: you can redistribute it and/or modify\r
+  it under the terms of the GNU General Public License as published by\r
+  the Free Software Foundation, either version 3 of the License, or\r
+  (at your option) any later version.\r
+\r
+  This program is distributed in the hope that it will be useful,\r
+  but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
+  GNU General Public License for more details.\r
+\r
+  You should have received a copy of the GNU General Public License\r
+  along with this program.  If not, see <http://www.gnu.org/licenses/>.\r
+ -->\r
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"\r
+    android:id="@+id/ListItemLayout"\r
+    android:layout_width="fill_parent"\r
+    android:background="@drawable/list_selector"\r
+    android:orientation="horizontal"\r
+    android:layout_height="56dp">\r
+\r
+    <FrameLayout\r
+        android:layout_width="wrap_content"\r
+        android:layout_height="56dp"\r
+        android:focusable="false"\r
+        android:focusableInTouchMode="false">\r
+        \r
+        <ImageView\r
+            android:id="@+id/imageView2"\r
+            android:layout_width="wrap_content"\r
+            android:layout_height="wrap_content"\r
+            android:src="@drawable/local_file_indicator"/>\r
+\r
+        <ImageView\r
+            android:id="@+id/imageView1"\r
+            android:layout_width="20dp"\r
+            android:layout_height="20dp"\r
+            android:layout_gravity="center_vertical|center"\r
+            android:layout_margin="4dp"\r
+            android:src="@drawable/ic_menu_archive" />\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"\r
+            android:layout_weight=".1"\r
+            android:maxHeight="15dip"\r
+            android:src="@drawable/ic_favorite" />\r
+        \r
+    </FrameLayout>\r
+\r\r\r\r
+    <LinearLayout\r
+        android:layout_width="0dp"\r
+        android:layout_height="match_parent"\r
+        android:layout_weight="1"\r
+        android:gravity="center_vertical"\r
+        android:orientation="vertical" >\r
+\r\r
+        <TextView\r
+            android:id="@+id/Filename"\r
+            android:layout_width="wrap_content"\r
+            android:layout_height="wrap_content"\r
+            android:layout_gravity="center_vertical"\r
+            android:layout_marginLeft="4dp"\r
+            android:layout_marginRight="4dp"\r
+            android:ellipsize="middle"\r
+            android:singleLine="true"\r
+            android:text="TextView"\r
+            android:textColor="#303030"\r
+            android:textSize="16dip" />\r
+\r
+        <LinearLayout\r
+            android:layout_width="match_parent"\r
+            android:layout_height="wrap_content"\r
+            android:layout_marginLeft="4dp"\r
+            android:layout_marginRight="4dp"\r
+            android:weightSum="1">\r
+\r
+            <TextView\r
+                android:id="@+id/last_mod"\r
+                android:layout_width="wrap_content"\r
+                android:layout_height="wrap_content"\r
+                android:text="TextView"\r
+                android:layout_weight=".5"\r
+                android:textSize="12dip"/>\r
+\r
+            <TextView\r
+                android:id="@+id/file_size"\r
+                android:layout_width="wrap_content"\r
+                android:layout_height="wrap_content"\r
+                android:gravity="right"\r
+                android:text="TextView"\r
+                android:layout_weight=".5"\r
+                android:textSize="12dip"/>\r
+\r
+        </LinearLayout>\r
+\r
+    </LinearLayout>\r
+\r\r\r\r
+    <ImageView\r
+        android:id="@+id/custom_checkbox"\r
+        android:layout_width="wrap_content"\r
+        android:layout_height="wrap_content"\r
+        android:layout_gravity="center_vertical"\r
+        android:layout_marginLeft="4dp"\r
+        android:layout_marginRight="4dp"\r
+        android:gravity=""\r
+        android:src="@android:drawable/checkbox_off_background" />\r
+\r
+</LinearLayout>\r