aboutsummaryrefslogtreecommitdiffstats
path: root/OpenKeychain/src/main/res
diff options
context:
space:
mode:
authorVincent Breitmoser <valodim@mugenguild.com>2015-03-30 23:42:38 +0200
committerVincent Breitmoser <valodim@mugenguild.com>2015-03-30 23:42:38 +0200
commit19ecd5f42717ea325cb646b46ab06b9340015875 (patch)
treedee1e05e455302895beda4c4d09fe9ebba1924d8 /OpenKeychain/src/main/res
parentb0a51e7dd30b7f921d575e1e360670cbfed7be6c (diff)
parentd67b546ec52c94faf71733b063856de98d66ef01 (diff)
downloadopen-keychain-19ecd5f42717ea325cb646b46ab06b9340015875.tar.gz
open-keychain-19ecd5f42717ea325cb646b46ab06b9340015875.tar.bz2
open-keychain-19ecd5f42717ea325cb646b46ab06b9340015875.zip
Merge branch 'v/crypto-input-parcel' of github.com:open-keychain/open-keychain into v/crypto-input-parcel
Conflicts: OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/EncryptFilesFragment.java
Diffstat (limited to 'OpenKeychain/src/main/res')
-rw-r--r--OpenKeychain/src/main/res/layout/encrypt_files_fragment.xml8
-rw-r--r--OpenKeychain/src/main/res/layout/file_list_entry.xml90
-rw-r--r--OpenKeychain/src/main/res/layout/file_list_entry_add.xml25
3 files changed, 60 insertions, 63 deletions
diff --git a/OpenKeychain/src/main/res/layout/encrypt_files_fragment.xml b/OpenKeychain/src/main/res/layout/encrypt_files_fragment.xml
index 5831d52e1..b75ec5022 100644
--- a/OpenKeychain/src/main/res/layout/encrypt_files_fragment.xml
+++ b/OpenKeychain/src/main/res/layout/encrypt_files_fragment.xml
@@ -4,15 +4,11 @@
android:layout_height="match_parent"
android:orientation="vertical">
- <ListView
+ <android.support.v7.widget.RecyclerView
android:id="@+id/selected_files_list"
- android:dividerHeight="4dip"
- android:divider="@android:color/transparent"
- android:focusable="true"
- android:focusableInTouchMode="true"
android:paddingLeft="16dp"
android:paddingRight="16dp"
- android:layout_marginTop="8dp"
+ android:scrollbars="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent" />
diff --git a/OpenKeychain/src/main/res/layout/file_list_entry.xml b/OpenKeychain/src/main/res/layout/file_list_entry.xml
index ca78ad161..7f0e1e89e 100644
--- a/OpenKeychain/src/main/res/layout/file_list_entry.xml
+++ b/OpenKeychain/src/main/res/layout/file_list_entry.xml
@@ -1,60 +1,58 @@
<?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">
+<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"/>
+ 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">
+ 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"/>
+ 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"/>
+ 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_close_grey_24dp"
- android:clickable="true"
- android:layout_centerVertical="true"
- android:background="?android:selectableItemBackground"/>
+ 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_close_grey_24dp"
+ android:clickable="true"
+ android:layout_centerVertical="true"
+ android:background="?android:selectableItemBackground" />
</RelativeLayout> \ No newline at end of file
diff --git a/OpenKeychain/src/main/res/layout/file_list_entry_add.xml b/OpenKeychain/src/main/res/layout/file_list_entry_add.xml
index d7f4513d9..e5eb4c44f 100644
--- a/OpenKeychain/src/main/res/layout/file_list_entry_add.xml
+++ b/OpenKeychain/src/main/res/layout/file_list_entry_add.xml
@@ -1,21 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
-<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:padding="4dp"
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:clickable="true"
- android:minHeight="?android:attr/listPreferredItemHeight"
- style="?android:attr/borderlessButtonStyle">
+ android:minHeight="16dp"
+ android:orientation="horizontal"
+ android:singleLine="true">
- <TextView
+ <Button
+ android:id="@+id/file_list_entry_add"
android:paddingLeft="8dp"
android:paddingRight="8dp"
android:textAppearance="?android:attr/textAppearanceMedium"
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:minHeight="?android:attr/listPreferredItemHeight"
android:layout_gravity="center"
android:text="@string/btn_add_files"
+ style="?android:attr/borderlessButtonStyle"
android:drawableLeft="@drawable/ic_folder_grey_24dp"
- android:drawablePadding="8dp"
- android:gravity="center" />
-</FrameLayout> \ No newline at end of file
+ android:drawablePadding="16dp"
+ android:gravity="left|center_vertical" />
+
+</LinearLayout> \ No newline at end of file