From 2008c2608e3bc1d9a84f276d756f86d8c18b6182 Mon Sep 17 00:00:00 2001 From: Dominik Date: Thu, 12 Apr 2012 19:44:00 +0200 Subject: [PATCH] started reworking the key creation --- org_apg/AndroidManifest.xml | 3 +- org_apg/res/drawable/section_header.xml | 11 +++ org_apg/res/layout/create_key.xml | 89 +++++++++-------- org_apg/res/layout/edit_key.xml | 76 +++++++-------- org_apg/res/layout/edit_key_key_item.xml | 97 +++++++++---------- org_apg/res/layout/edit_key_section.xml | 41 +++----- org_apg/res/layout/edit_key_user_id_item.xml | 86 ++++++++-------- org_apg/res/layout/pass_phrase.xml | 37 ------- org_apg/res/layout/passphrase.xml | 61 ++++++++++++ org_apg/res/values/colors.xml | 7 ++ org_apg/res/values/strings.xml | 33 ++++--- org_apg/res/values/styles.xml | 11 +++ .../org/apg/AskForSecretKeyPassPhrase.java | 12 ++- org_apg/src/org/apg/ui/EditKeyActivity.java | 30 +++++- .../src/org/apg/ui/PublicKeyListActivity.java | 10 +- .../src/org/apg/ui/SecretKeyListActivity.java | 5 +- .../src/org/apg/ui/widget/SectionView.java | 27 +++++- .../org/apg/integration/ApgIntentHelper.java | 17 ++-- 18 files changed, 364 insertions(+), 289 deletions(-) create mode 100644 org_apg/res/drawable/section_header.xml delete mode 100644 org_apg/res/layout/pass_phrase.xml create mode 100644 org_apg/res/layout/passphrase.xml create mode 100644 org_apg/res/values/colors.xml diff --git a/org_apg/AndroidManifest.xml b/org_apg/AndroidManifest.xml index 60c76079b..5d6ff4021 100644 --- a/org_apg/AndroidManifest.xml +++ b/org_apg/AndroidManifest.xml @@ -75,7 +75,8 @@ android:name=".ui.EditKeyActivity" android:configChanges="keyboardHidden|orientation|keyboard" android:label="@string/title_editKey" - android:uiOptions="splitActionBarWhenNarrow" > + android:uiOptions="splitActionBarWhenNarrow" + android:windowSoftInputMode="stateHidden" > diff --git a/org_apg/res/drawable/section_header.xml b/org_apg/res/drawable/section_header.xml new file mode 100644 index 000000000..a4468484e --- /dev/null +++ b/org_apg/res/drawable/section_header.xml @@ -0,0 +1,11 @@ + + + + + + + + \ No newline at end of file diff --git a/org_apg/res/layout/create_key.xml b/org_apg/res/layout/create_key.xml index d8ccc73ec..235d33f88 100644 --- a/org_apg/res/layout/create_key.xml +++ b/org_apg/res/layout/create_key.xml @@ -1,5 +1,6 @@ - - + - + - + - + - + - + + - + - + - - + + + + - - - + \ No newline at end of file diff --git a/org_apg/res/layout/edit_key.xml b/org_apg/res/layout/edit_key.xml index de004f0b5..3ab5f1c52 100644 --- a/org_apg/res/layout/edit_key.xml +++ b/org_apg/res/layout/edit_key.xml @@ -1,5 +1,6 @@ - - + android:fillViewport="true" + android:orientation="vertical" > - + android:layout_height="wrap_content" + android:orientation="vertical" + android:paddingLeft="16dp" + android:paddingRight="16dp" > + + + + + +