diff options
author | Arne Schwabe <arne@rfc2549.org> | 2021-10-16 04:22:31 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2021-10-16 04:22:31 +0200 |
commit | 9296124d0b89b4bb8534216c935ecb05f0cd620b (patch) | |
tree | 99ee912f415c7c1ea9812a68b95df79be1208ff5 /main/src/ui/res | |
parent | e0b23dfaedf15d2ab7753189c02c3cb29748a644 (diff) |
Add TLS Profile to config converter and remove AsyncTask
Diffstat (limited to 'main/src/ui/res')
-rw-r--r-- | main/src/ui/res/layout/config_converter.xml | 165 |
1 files changed, 91 insertions, 74 deletions
diff --git a/main/src/ui/res/layout/config_converter.xml b/main/src/ui/res/layout/config_converter.xml index b980dc59..d4e1f820 100644 --- a/main/src/ui/res/layout/config_converter.xml +++ b/main/src/ui/res/layout/config_converter.xml @@ -1,95 +1,112 @@ -<?xml version="1.0" encoding="utf-8"?> -<!-- +<?xml version="1.0" encoding="utf-8"?><!-- ~ Copyright (c) 2012-2016 Arne Schwabe ~ Distributed under the GNU GPL v2 with additional terms. For full terms see the file doc/LICENSE.txt --> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" - xmlns:tools="http://schemas.android.com/tools" - android:layout_width="match_parent" - android:layout_height="match_parent"> + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent"> -<ScrollView android:layout_width="match_parent" + <ScrollView + android:layout_width="match_parent" android:layout_height="match_parent" android:layout_margin="@dimen/stdpadding" android:orientation="vertical"> - <LinearLayout - android:orientation="vertical" - android:layout_width="match_parent" - android:id="@+id/config_convert_root" - android:layout_height="wrap_content"> + <LinearLayout + android:id="@+id/config_convert_root" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> - <TextView - android:visibility="gone" - android:id="@+id/profilename_label" - style="@style/item" - android:labelFor="@id/profilename" - android:text="@string/profilename" - android:textAppearance="?android:attr/textAppearanceSmall" - /> + <TextView + android:id="@+id/profilename_label" + style="@style/item" + android:labelFor="@id/profilename" + android:text="@string/profilename" + android:textAppearance="?android:attr/textAppearanceSmall" + android:visibility="gone" /> - <EditText - android:visibility="gone" - android:id="@+id/profilename" - style="@style/item" - android:inputType="text" /> + <EditText + android:id="@+id/profilename" + style="@style/item" + android:inputType="text" + android:visibility="gone" /> - <TextView - style="@style/item" - android:id="@+id/compatmode_label" - android:text="@string/compat_mode_label" - android:visibility="gone" - android:textAppearance="?android:attr/textAppearanceSmall" /> - <Spinner - android:id="@+id/compatmode" - style="@style/item" - android:visibility="gone" - android:prompt="@string/compatmode" - android:entries="@array/compat_mode" - /> + <TextView + android:id="@+id/compatmode_label" + style="@style/item" + android:text="@string/compat_mode_label" + android:textAppearance="?android:attr/textAppearanceSmall" + android:visibility="gone" + tools:visibility="visible" /> - <TextView - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:text="@string/files_missing_hint" - android:visibility="gone" - android:id="@+id/files_missing_hint" - tools:visibilty="visible"/> + <Spinner + android:id="@+id/compatmode" + style="@style/item" + android:entries="@array/compat_mode" + android:prompt="@string/compatmode" + android:visibility="gone" + tools:visibility="visible" /> - <TextView - android:text="@string/query_permissions_sdcard" - android:layout_width="match_parent" - android:layout_height="wrap_content" - tools:visibility="visible" - android:visibility="gone" - android:id="@+id/permssion_hint" - android:padding="5dp" - android:textStyle="bold" /> + <TextView + android:id="@+id/tls_profile_label" + style="@style/item" + android:text="@string/tls_profile" + android:textAppearance="?android:attr/textAppearanceSmall" + android:visibility="gone" + tools:visibility="visible" /> + <Spinner + android:id="@+id/tls_profile" + style="@style/item" + android:entries="@array/tls_profile_entries" + android:prompt="@string/compatmode" + android:visibility="gone" + tools:visibility="visible" /> + <TextView + android:id="@+id/files_missing_hint" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/files_missing_hint" + android:visibility="gone" + tools:visibilty="visible" /> - <CheckBox - android:id="@+id/importpkcs12" - android:layout_width="fill_parent" - android:layout_height="wrap_content" - android:checked="true" - tools:visibilty="visible" - android:text="@string/importpkcs12fromconfig" - android:visibility="gone"/> + <TextView + android:id="@+id/permssion_hint" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:padding="5dp" + android:text="@string/query_permissions_sdcard" + android:textStyle="bold" + android:visibility="gone" + tools:visibility="visible" /> - <TextView - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_margin="10dp" - android:textAppearance="?android:attr/textAppearanceMedium" - android:text="@string/import_log" - android:id="@+id/textView"/> - <Space - android:id="@+id/fab_footerspace" - android:visibility="gone" - android:layout_width="40dp" - android:layout_height="@dimen/round_button_diameter" /> - </LinearLayout> + <CheckBox + android:id="@+id/importpkcs12" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:checked="true" + android:text="@string/importpkcs12fromconfig" + android:visibility="gone" + tools:visibilty="visible" /> + + <TextView + android:id="@+id/textView" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_margin="10dp" + android:text="@string/import_log" + android:textAppearance="?android:attr/textAppearanceMedium" /> + + <Space + android:id="@+id/fab_footerspace" + android:layout_width="40dp" + android:layout_height="@dimen/round_button_diameter" + android:visibility="gone" /> + </LinearLayout> </ScrollView> + <include layout="@layout/save_fab" /> </RelativeLayout> |