diff options
Diffstat (limited to 'OpenKeychain/src/main/res')
-rw-r--r-- | OpenKeychain/src/main/res/layout/import_keys_list_entry.xml | 136 | ||||
-rw-r--r-- | OpenKeychain/src/main/res/layout/key_list_item.xml | 2 | ||||
-rw-r--r-- | OpenKeychain/src/main/res/layout/select_key_item.xml | 51 |
3 files changed, 92 insertions, 97 deletions
diff --git a/OpenKeychain/src/main/res/layout/import_keys_list_entry.xml b/OpenKeychain/src/main/res/layout/import_keys_list_entry.xml index 123104a4d..7630e30d0 100644 --- a/OpenKeychain/src/main/res/layout/import_keys_list_entry.xml +++ b/OpenKeychain/src/main/res/layout/import_keys_list_entry.xml @@ -17,94 +17,90 @@ <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" - android:orientation="vertical" - android:paddingLeft="3dip" + android:orientation="horizontal" + android:paddingLeft="4dp" android:paddingRight="?android:attr/scrollbarSize" - android:singleLine="true" > + android:singleLine="true"> + + + <CheckBox + android:id="@+id/selected" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:clickable="false" + android:focusable="false" + android:focusableInTouchMode="false" /> + <!-- focusable and clickable MUST be false to handle click and longClick in ListView Activity --> <LinearLayout - android:layout_width="match_parent" + android:layout_width="0dip" android:layout_height="wrap_content" - android:orientation="horizontal" > + android:layout_weight="1" + android:orientation="vertical" + android:paddingLeft="5dip" + android:paddingRight="5dip"> - <CheckBox - android:id="@+id/selected" + <TextView + android:id="@+id/mainUserId" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:clickable="false" - android:focusable="false" - android:focusableInTouchMode="false" /> - <!-- focusable and clickable MUST be false to handle click and longClick in ListView Activity --> + android:text="Alice" + android:textAppearance="?android:attr/textAppearanceMedium" /> - <LinearLayout - android:layout_width="0dip" + <TextView + android:id="@+id/mainUserIdRest" + android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_weight="1" - android:orientation="vertical" - android:paddingLeft="5dip" - android:paddingRight="5dip" > - - <TextView - android:id="@+id/mainUserId" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:text="@string/label_main_user_id" - android:textAppearance="?android:attr/textAppearanceMedium" /> - - <TextView - android:id="@+id/mainUserIdRest" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:text="<user@somewhere.com>" - android:textAppearance="?android:attr/textAppearanceSmall" /> - </LinearLayout> + android:text="alice@example.com" + android:textAppearance="?android:attr/textAppearanceSmall" /> <LinearLayout - android:layout_width="wrap_content" + android:id="@+id/user_ids_list" + android:layout_width="match_parent" android:layout_height="wrap_content" - android:gravity="right" - android:minWidth="90dip" - android:orientation="vertical" - android:paddingLeft="3dip" > - - <TextView - android:id="@+id/keyId" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:text="0xBBBBBBBBBBBBBBBB" - android:textAppearance="?android:attr/textAppearanceSmall" - android:typeface="monospace" - android:layout_weight="1" /> + android:layout_marginLeft="36dip" + android:orientation="vertical" /> - <TextView - android:id="@+id/algorithm" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:textAppearance="?android:attr/textAppearanceSmall" /> - - <TextView - android:id="@+id/fingerprint" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:text="fingerprint" - android:typeface="monospace" - android:textAppearance="?android:attr/textAppearanceSmall" /> + <TextView + android:id="@+id/keyId" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="0xBBBBBBBBBBBBBBBB" + android:textAppearance="?android:attr/textAppearanceSmall" + android:typeface="monospace" /> - <TextView - android:id="@+id/status" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:textAppearance="?android:attr/textAppearanceSmall" - android:textColor="#e00" /> - </LinearLayout> + <TextView + android:id="@+id/fingerprint" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="0000 0000 0000 0000 0000\n0000 0000 0000 0000 0000" + android:typeface="monospace" + android:textAppearance="?android:attr/textAppearanceSmall" /> </LinearLayout> <LinearLayout - android:id="@+id/list" - android:layout_width="match_parent" + android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_marginLeft="36dip" - android:orientation="vertical" > + android:gravity="right" + android:minWidth="90dip" + android:orientation="vertical" + android:paddingLeft="3dip"> + + <TextView + android:id="@+id/status" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="status" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="#e00" /> + + <TextView + android:id="@+id/algorithm" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="RSA" + android:textAppearance="?android:attr/textAppearanceSmall" + android:layout_gravity="right" /> </LinearLayout> </LinearLayout> diff --git a/OpenKeychain/src/main/res/layout/key_list_item.xml b/OpenKeychain/src/main/res/layout/key_list_item.xml index 84ad9f9b5..940181306 100644 --- a/OpenKeychain/src/main/res/layout/key_list_item.xml +++ b/OpenKeychain/src/main/res/layout/key_list_item.xml @@ -10,7 +10,7 @@ android:focusable="false"> <LinearLayout - android:layout_width="fill_parent" + android:layout_width="0dip" android:layout_height="wrap_content" android:layout_gravity="center_vertical" android:layout_weight="1" diff --git a/OpenKeychain/src/main/res/layout/select_key_item.xml b/OpenKeychain/src/main/res/layout/select_key_item.xml index 08c161ec6..90635e6a4 100644 --- a/OpenKeychain/src/main/res/layout/select_key_item.xml +++ b/OpenKeychain/src/main/res/layout/select_key_item.xml @@ -1,15 +1,16 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" - android:layout_height="?android:attr/listPreferredItemHeight" - android:paddingLeft="3dip" + android:layout_height="wrap_content" + android:minHeight="?android:attr/listPreferredItemHeight" + android:paddingLeft="4dp" android:paddingRight="?android:attr/scrollbarSize" - android:singleLine="true" > + android:singleLine="true"> <CheckBox android:id="@+id/selected" android:layout_width="wrap_content" - android:layout_height="wrap_content" + android:layout_height="match_parent" android:clickable="false" android:focusable="false" android:focusableInTouchMode="false" /> @@ -19,46 +20,44 @@ android:layout_height="wrap_content" android:layout_weight="1" android:orientation="vertical" - android:paddingLeft="5dip" > + android:paddingLeft="5dip" + android:layout_gravity="center_vertical"> <TextView android:id="@+id/mainUserId" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:text="@string/label_main_user_id" + android:text="Alice" android:textAppearance="?android:attr/textAppearanceMedium" /> <TextView android:id="@+id/mainUserIdRest" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:text="<user@example.com>" + android:text="alice@example.com" android:textAppearance="?android:attr/textAppearanceSmall" /> - </LinearLayout> - - <LinearLayout - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:gravity="right" - android:minWidth="90dip" - android:orientation="vertical" - android:paddingLeft="3dip" > <TextView android:id="@+id/keyId" android:layout_width="wrap_content" - android:layout_height="match_parent" - android:text="BBBBBBBB" - android:textAppearance="?android:attr/textAppearanceSmall" - android:typeface="monospace" /> - - <TextView - android:id="@+id/status" - android:layout_width="wrap_content" android:layout_height="wrap_content" - android:text="expired" + android:text="0xBBBBBBBBBBBBBBB" android:textAppearance="?android:attr/textAppearanceSmall" - android:textStyle="italic" /> + android:typeface="monospace" /> </LinearLayout> + + <TextView + android:gravity="right" + android:paddingLeft="4dp" + android:minWidth="90dip" + android:id="@+id/status" + android:paddingTop="4dp" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="expired" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textStyle="italic" + android:layout_gravity="right" /> + </LinearLayout>
\ No newline at end of file |