aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main/res/layout/file_list_entry.xml
diff options
context:
space:
mode:
authormar-v-in <github@rvin.mooo.com>2014-07-06 02:10:35 +0200
committermar-v-in <github@rvin.mooo.com>2014-07-06 02:10:35 +0200
commit1b0666e9de5caea14997a3e638a6209b45c97d60 (patch)
tree5062c61342a65aa0c1e49423dc2510ce43cbcf08 /OpenKeychain/src/main/res/layout/file_list_entry.xml
parent51a4b0466ba1e1c1c72d9d8112c28628d1efc84b (diff)
downloadopen-keychain-1b0666e9de5caea14997a3e638a6209b45c97d60.tar.gz
open-keychain-1b0666e9de5caea14997a3e638a6209b45c97d60.tar.bz2
open-keychain-1b0666e9de5caea14997a3e638a6209b45c97d60.zip
Many changes to file ... and still incomplete
- Multi file - Reworked UI
Diffstat (limited to 'OpenKeychain/src/main/res/layout/file_list_entry.xml')
-rw-r--r--OpenKeychain/src/main/res/layout/file_list_entry.xml60
1 files changed, 60 insertions, 0 deletions
diff --git a/OpenKeychain/src/main/res/layout/file_list_entry.xml b/OpenKeychain/src/main/res/layout/file_list_entry.xml
new file mode 100644
index 000000000..f6fde2447
--- /dev/null
+++ b/OpenKeychain/src/main/res/layout/file_list_entry.xml
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<RelativeLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="48dip"
+ android:background="@drawable/attachment_bg_holo">
+
+ <ImageView
+ android:id="@+id/thumbnail"
+ android:layout_alignParentLeft="true"
+ android:layout_centerVertical="true"
+ android:scaleType="center"
+ android:layout_width="48dip"
+ android:layout_height="48dip"/>
+
+ <LinearLayout
+ android:orientation="vertical"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_toRightOf="@+id/thumbnail"
+ android:layout_centerVertical="true">
+
+ <TextView
+ android:id="@+id/filename"
+ android:layout_marginLeft="8dip"
+ android:layout_marginRight="32dip"
+ android:maxLines="1"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textColor="?android:attr/textColorSecondary"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:ellipsize="end"/>
+
+ <TextView
+ android:id="@+id/filesize"
+ android:layout_marginLeft="8dip"
+ android:layout_marginRight="32dip"
+ android:maxLines="1"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textColor="?android:attr/textColorTertiary"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:textSize="12sp"
+ android:ellipsize="end"/>
+
+ </LinearLayout>
+
+ <ImageButton
+ android:id="@+id/action_remove_file_from_list"
+ android:layout_width="48dip"
+ android:layout_height="48dip"
+ android:layout_alignParentRight="true"
+ android:paddingRight="16dip"
+ android:paddingLeft="16dip"
+ android:src="@drawable/ic_action_cancel"
+ android:clickable="true"
+ android:layout_centerVertical="true"
+ style="@style/SelectableItem"/>
+</RelativeLayout> \ No newline at end of file