2014-08-05 15:07:11 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2015-03-03 19:04:40 +01:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2014-08-05 15:07:11 +02:00
|
|
|
android:orientation="vertical"
|
2015-02-27 01:26:04 +01:00
|
|
|
android:paddingTop="16dp"
|
|
|
|
|
android:paddingBottom="16dp"
|
|
|
|
|
android:paddingLeft="24dp"
|
|
|
|
|
android:paddingRight="24dp"
|
2014-08-05 15:07:11 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
2014-08-18 11:02:41 +02:00
|
|
|
<CheckBox
|
|
|
|
|
android:id="@+id/edit_subkey_expiry_no_expiry"
|
|
|
|
|
android:checked="true"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/btn_no_date" />
|
|
|
|
|
|
2015-03-03 22:44:32 +01:00
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/edit_subkey_expiry_layout"
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
style="@style/SectionHeader"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/section_current_expiry" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/edit_subkey_expiry_current_expiry"
|
|
|
|
|
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
|
|
|
|
|
android:padding="8dp"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
style="@style/SectionHeader"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="@string/section_new_expiry" />
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
Use Spinner style DatePicker, not the full calendar view
|
|
|
|
|
Android < 5:
|
|
|
|
|
android:spinnersShown="true"
|
|
|
|
|
android:calendarViewShown="false"
|
|
|
|
|
Android >= 5:
|
|
|
|
|
android:datePickerMode="spinner"
|
|
|
|
|
-->
|
|
|
|
|
<!-- Hide calendarView in tablets because of the unix warparound bug. -->
|
|
|
|
|
<DatePicker
|
|
|
|
|
android:id="@+id/edit_subkey_expiry_date_picker"
|
|
|
|
|
android:layout_gravity="center_horizontal"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
tools:ignore="UnusedAttribute"
|
2015-03-03 19:04:40 +01:00
|
|
|
android:datePickerMode="spinner"
|
2015-03-03 22:44:32 +01:00
|
|
|
android:spinnersShown="true"
|
|
|
|
|
android:calendarViewShown="false" />
|
|
|
|
|
</LinearLayout>
|
2014-08-05 15:07:11 +02:00
|
|
|
|
|
|
|
|
</LinearLayout>
|