passphraseactivity: add inline spinner to password dialog
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
xmlns:custom="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:paddingTop="16dp"
|
||||
android:paddingBottom="16dp"
|
||||
android:paddingLeft="24dp"
|
||||
@@ -33,6 +34,27 @@
|
||||
android:ems="10"
|
||||
android:layout_gravity="center_horizontal" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:gravity="center_vertical"
|
||||
android:layout_margin="6dp">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Remember for "
|
||||
android:textAppearance="@android:style/TextAppearance.Medium" />
|
||||
|
||||
<org.sufficientlysecure.keychain.ui.widget.CacheTTLSpinner
|
||||
android:id="@+id/ttl_spinner"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
</org.sufficientlysecure.keychain.ui.widget.CacheTTLSpinner>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
|
||||
16
OpenKeychain/src/main/res/layout/simple_item.xml
Normal file
16
OpenKeychain/src/main/res/layout/simple_item.xml
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/simple_item_text"
|
||||
android:textAppearance="@android:style/TextAppearance.Medium"
|
||||
tools:text="itemtext" />
|
||||
</LinearLayout>
|
||||
Reference in New Issue
Block a user