<?xml version="1.0" encoding="utf-8"?>
|
<!-- Copyright (C) 2013 The Android Open Source Project
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
you may not use this file except in compliance with the License.
|
You may obtain a copy of the License at
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
Unless required by applicable law or agreed to in writing, software
|
distributed under the License is distributed on an "AS IS" BASIS,
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
See the License for the specific language governing permissions and
|
limitations under the License.
|
-->
|
|
<!-- Layout used as the dialog's content View for EditTextPreference. -->
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:overScrollMode="ifContentScrolls">
|
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="vertical">
|
<LinearLayout
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:padding="8dip"
|
android:orientation="vertical">
|
|
<EditText android:id="@+id/pin_text"
|
android:layout_marginLeft="8dip"
|
android:layout_marginStart="8dip"
|
android:layout_marginRight="8dip"
|
android:layout_marginEnd="8dip"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:inputType="numberPassword"
|
android:textColor="?android:attr/textColorPrimary" />
|
|
<TextView android:id="@+id/pin_error_message"
|
android:layout_marginTop="8dp"
|
android:layout_marginBottom="8dp"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:text="@string/restr_pin_incorrect"
|
android:gravity="center"/>
|
</LinearLayout>
|
|
<LinearLayout android:id="@+id/buttonPanel"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:minHeight="@dimen/alert_dialog_button_bar_height"
|
android:orientation="vertical"
|
android:divider="?android:attr/dividerHorizontal"
|
android:showDividers="beginning"
|
android:dividerPadding="0dip">
|
<LinearLayout
|
style="?android:attr/buttonBarStyle"
|
android:layout_width="match_parent"
|
android:layout_height="wrap_content"
|
android:orientation="horizontal"
|
android:layoutDirection="locale"
|
android:measureWithLargestChild="true">
|
<Button android:id="@+id/pin_cancel_button"
|
android:layout_width="wrap_content"
|
android:layout_gravity="start"
|
android:layout_weight="1"
|
android:maxLines="2"
|
android:minHeight="@dimen/alert_dialog_button_bar_height"
|
style="?android:attr/buttonBarButtonStyle"
|
android:textSize="14sp"
|
android:layout_height="wrap_content"
|
android:text="@string/cancel" />
|
<Button android:id="@+id/pin_ok_button"
|
android:layout_width="wrap_content"
|
android:layout_gravity="end"
|
android:layout_weight="1"
|
android:maxLines="2"
|
style="?android:attr/buttonBarButtonStyle"
|
android:textSize="14sp"
|
android:minHeight="@dimen/alert_dialog_button_bar_height"
|
android:layout_height="wrap_content"
|
android:text="@string/ok" />
|
</LinearLayout>
|
</LinearLayout>
|
</LinearLayout>
|
</ScrollView>
|