Added new UI to select a specific CA certificate

With this change there is no need to wait for all certificates being loaded
anymore (this happens only when the user opens the selection activity).
This commit is contained in:
Tobias Brunner
2012-08-14 12:01:41 +02:00
parent cb431e12da
commit 4db2d6336e
5 changed files with 140 additions and 32 deletions
@@ -91,6 +91,33 @@
android:layout_height="wrap_content"
android:text="@string/profile_ca_auto_label" />
<RelativeLayout
android:id="@+id/select_certificate"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="?android:attr/listPreferredItemHeight"
android:background="?android:attr/selectableItemBackground"
android:padding="10dp" >
<TextView
android:id="@+id/select_certificate_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="@string/profile_ca_select_certificate_label" />
<TextView
android:id="@+id/select_certificate_subtitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/select_certificate_title"
android:layout_alignLeft="@id/select_certificate_title"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textColor="?android:attr/textColorSecondary"
android:text="@string/profile_ca_select_certificate" />
</RelativeLayout>
</LinearLayout>
</ScrollView>
@@ -51,6 +51,8 @@
<string name="profile_password_hint">(anfordern wenn benötigt)</string>
<string name="profile_ca_label">CA-Zertifikat:</string>
<string name="profile_ca_auto_label">Automatisch wählen</string>
<string name="profile_ca_select_certificate_label">CA-Zertifikat auswählen</string>
<string name="profile_ca_select_certificate">Wählen Sie ein bestimmtes CA-Zertifikat</string>
<!-- Warnings/Notifications in the details view -->
<string name="alert_text_no_input_gateway">Bitte geben Sie hier die Gateway-Adresse ein</string>
<string name="alert_text_no_input_username">Bitte geben Sie hier Ihren Benutzernamen ein</string>
@@ -51,6 +51,8 @@
<string name="profile_password_hint">(prompt when needed)</string>
<string name="profile_ca_label">CA certificate:</string>
<string name="profile_ca_auto_label">Select automatically</string>
<string name="profile_ca_select_certificate_label">Select CA certificate</string>
<string name="profile_ca_select_certificate">Select a specific CA certificate</string>
<!-- Warnings/Notifications in the details view -->
<string name="alert_text_no_input_gateway">Please enter the gateway address here</string>
<string name="alert_text_no_input_username">Please enter your username here</string>