Files
open-keychain/OpenKeychain/src/main/res/layout/api_account_settings_fragment.xml

167 lines
6.3 KiB
XML
Raw Normal View History

2014-03-25 19:11:20 +01:00
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:custom="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
2014-03-26 17:50:16 +01:00
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="?android:attr/listPreferredItemHeight"
android:layout_marginBottom="4dp"
android:layout_marginTop="4dp"
android:gravity="center_horizontal"
android:orientation="horizontal">
<ImageView
android:id="@+id/api_account_settings_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentTop="true"
android:layout_marginRight="6dp"
android:src="@drawable/ic_action_person" />
<TextView
android:id="@+id/api_account_settings_acc_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_toRightOf="@+id/api_account_settings_icon"
android:gravity="center_vertical"
android:orientation="vertical"
android:text="Name (set in-code)"
android:textAppearance="?android:attr/textAppearanceMedium" />
</RelativeLayout>
2014-03-25 19:11:20 +01:00
2014-08-31 20:26:06 +02:00
<TextView
style="@style/SectionHeader"
2014-03-25 19:11:20 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2014-08-31 20:26:06 +02:00
android:text="@string/api_settings_settings" />
2014-03-25 19:11:20 +01:00
2014-09-07 15:30:32 +02:00
<LinearLayout
2014-08-31 20:26:06 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2014-09-07 15:30:32 +02:00
android:padding="0dp"
android:layout_margin="0dp">
2014-08-31 20:26:06 +02:00
2014-09-07 15:30:32 +02:00
<TextView
android:paddingLeft="8dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="@string/api_settings_key"
android:paddingRight="8dp" />
<org.sufficientlysecure.keychain.ui.widget.SignKeySpinner
android:id="@+id/api_account_settings_key_spinner"
android:minHeight="56dip"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical" />
</LinearLayout>
2014-08-31 20:26:06 +02:00
<View
android:layout_width="match_parent"
android:layout_height="1dip"
android:background="?android:attr/listDivider" />
<TextView
android:id="@+id/api_account_settings_create_key"
2014-08-31 20:26:06 +02:00
style="@style/SelectableItem"
android:paddingLeft="8dp"
android:paddingRight="8dp"
android:textAppearance="?android:attr/textAppearanceMedium"
android:layout_width="match_parent"
android:text="@string/api_settings_create_key"
2014-09-07 15:30:32 +02:00
android:layout_height="?android:attr/listPreferredItemHeight"
2014-08-31 20:26:06 +02:00
android:drawableRight="@drawable/ic_action_new_account"
android:drawablePadding="8dp"
android:gravity="center_vertical"
android:clickable="true" />
<View
android:layout_width="match_parent"
android:layout_height="1dip"
android:background="?android:attr/listDivider" />
2014-03-25 19:11:20 +01:00
<org.sufficientlysecure.keychain.ui.widget.FoldableLinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
2014-08-31 20:26:06 +02:00
android:layout_marginTop="16dp"
2014-03-25 21:23:59 +01:00
custom:foldedLabel="@string/api_settings_show_advanced"
2014-08-27 13:54:33 +02:00
custom:unFoldedLabel="@string/api_settings_hide_advanced">
2014-03-25 19:11:20 +01:00
2014-09-07 15:30:32 +02:00
<LinearLayout
2014-03-25 19:11:20 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2014-09-07 15:30:32 +02:00
android:padding="0dp"
android:layout_margin="0dp">
<TextView
android:paddingLeft="8dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="@string/label_encryption_algorithm"
android:paddingRight="8dp" />
<Spinner
android:id="@+id/api_account_settings_encryption_algorithm"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
<LinearLayout
2014-03-25 19:11:20 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2014-09-07 15:30:32 +02:00
android:padding="0dp"
android:layout_margin="0dp">
<TextView
android:paddingLeft="8dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="@string/label_hash_algorithm"
android:paddingRight="8dp" />
<Spinner
android:id="@+id/api_account_settings_hash_algorithm"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
<LinearLayout
2014-03-25 19:11:20 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2014-09-07 15:30:32 +02:00
android:padding="0dp"
android:layout_margin="0dp">
<TextView
android:paddingLeft="8dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="@string/label_message_compression"
android:paddingRight="8dp" />
<Spinner
android:id="@+id/api_account_settings_compression"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
2014-03-25 19:11:20 +01:00
</org.sufficientlysecure.keychain.ui.widget.FoldableLinearLayout>
</LinearLayout>