diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-07-03 15:14:06 +0200 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2014-07-03 15:14:06 +0200 |
commit | 42cc8b687b60254396450a07814ffee8d10b3224 (patch) | |
tree | 00fb5d13c6f7e8df58428140d5be20e90789c189 /OpenKeychain/src/main/res/layout | |
parent | 55f067b0633a177c2d441a7c79115dd44d7c4a8a (diff) | |
download | open-keychain-42cc8b687b60254396450a07814ffee8d10b3224.tar.gz open-keychain-42cc8b687b60254396450a07814ffee8d10b3224.tar.bz2 open-keychain-42cc8b687b60254396450a07814ffee8d10b3224.zip |
edit key: subkey adapter
Diffstat (limited to 'OpenKeychain/src/main/res/layout')
-rw-r--r-- | OpenKeychain/src/main/res/layout/edit_key_fragment.xml | 2 | ||||
-rw-r--r-- | OpenKeychain/src/main/res/layout/edit_key_subkey_added_item.xml | 96 |
2 files changed, 97 insertions, 1 deletions
diff --git a/OpenKeychain/src/main/res/layout/edit_key_fragment.xml b/OpenKeychain/src/main/res/layout/edit_key_fragment.xml index 05e6c09c5..0570784d0 100644 --- a/OpenKeychain/src/main/res/layout/edit_key_fragment.xml +++ b/OpenKeychain/src/main/res/layout/edit_key_fragment.xml @@ -93,7 +93,7 @@ android:background="?android:attr/listDivider" /> <org.sufficientlysecure.keychain.ui.widget.FixedListView - android:id="@+id/edit_key_keys_added" + android:id="@+id/edit_key_subkeys_added" android:layout_width="match_parent" android:layout_height="wrap_content" /> diff --git a/OpenKeychain/src/main/res/layout/edit_key_subkey_added_item.xml b/OpenKeychain/src/main/res/layout/edit_key_subkey_added_item.xml new file mode 100644 index 000000000..f52d693e0 --- /dev/null +++ b/OpenKeychain/src/main/res/layout/edit_key_subkey_added_item.xml @@ -0,0 +1,96 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="horizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:padding="5dp"> + + <ImageView + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:minWidth="10dp" + android:background="@color/result_green" /> + + <TableLayout + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:paddingLeft="8dp" + android:stretchColumns="1"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:padding="4dp" + android:text="@string/key_creation_el_gamal_info" /> + + <TableRow> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:padding="4dp" + android:text="@string/label_algorithm" /> + + <Spinner + android:id="@+id/create_key_algorithm" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:padding="4dp" /> + </TableRow> + + <TableRow> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:padding="4dp" + android:text="@string/label_key_size" /> + + <Spinner + android:id="@+id/create_key_size" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="right" + android:padding="4dp" /> + </TableRow> + + <TextView + android:id="@+id/custom_key_size_label" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:padding="4dp" + android:text="@string/key_size_custom_info" + android:visibility="gone" /> + + <EditText + android:id="@+id/custom_key_size_input" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" + android:inputType="number" + android:visibility="gone" /> + + <TextView + android:id="@+id/custom_key_size_info" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:padding="4dp" + android:visibility="gone" /> + + </TableLayout> + + <ImageButton + android:id="@+id/subkey_added_item_delete" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:padding="8dp" + android:src="@drawable/ic_action_cancel" + android:layout_gravity="center_vertical" + style="@style/SelectableItem" /> +</LinearLayout>
\ No newline at end of file |