Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3 **
      4 ** Copyright 2008, The Android Open Source Project
      5 **
      6 ** Licensed under the Apache License, Version 2.0 (the "License")
      7 ** you may not use this file except in compliance with the License.
      8 ** You may obtain a copy of the License at
      9 **
     10 **     http://www.apache.org/licenses/LICENSE-2.0
     11 **
     12 ** Unless required by applicable law or agreed to in writing, software
     13 ** distributed under the License is distributed on an "AS IS" BASIS,
     14 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     15 ** See the License for the specific language governing permissions and
     16 ** limitations under the License.
     17 */
     18 -->
     19 <com.android.keyguard.KeyguardPasswordView
     20     xmlns:android="http://schemas.android.com/apk/res/android"
     21     xmlns:androidprv="http://schemas.android.com/apk/res/com.android.keyguard"
     22     android:id="@+id/keyguard_password_view"
     23     android:orientation="vertical"
     24     android:layout_width="match_parent"
     25     android:layout_height="match_parent"
     26     androidprv:layout_maxWidth="@dimen/keyguard_security_width"
     27     androidprv:layout_maxHeight="@dimen/keyguard_security_height"
     28     android:gravity="bottom"
     29     android:contentDescription="@string/keyguard_accessibility_password_unlock"
     30     >
     31 
     32     <Space
     33         android:layout_width="match_parent"
     34         android:layout_height="0dp"
     35         android:layout_weight="1"
     36         />
     37 
     38     <include layout="@layout/keyguard_message_area"
     39         android:layout_width="match_parent"
     40         android:layout_height="wrap_content" />
     41 
     42     <!-- Password entry field -->
     43     <!-- Note: the entire container is styled to look like the edit field,
     44          since the backspace/IME switcher looks better inside -->
     45       <FrameLayout
     46          android:id="@+id/keyguard_bouncer_frame"
     47          android:background="@drawable/kg_bouncer_bg_white"
     48          android:layout_height="wrap_content"
     49          android:layout_width="match_parent"
     50          >
     51          <LinearLayout
     52              android:layout_height="wrap_content"
     53              android:layout_width="match_parent"
     54              android:orientation="horizontal"
     55              android:background="#70000000"
     56              android:layout_marginTop="8dp"
     57              android:layout_marginBottom="8dp"
     58              >
     59 
     60              <EditText android:id="@+id/passwordEntry"
     61                  android:layout_width="0dip"
     62                  android:layout_height="wrap_content"
     63                  android:layout_weight="1"
     64                  android:gravity="center_horizontal"
     65                  android:layout_gravity="center_vertical"
     66                  android:layout_marginStart="@dimen/keyguard_lockscreen_pin_margin_left"
     67                  android:singleLine="true"
     68                  android:textStyle="normal"
     69                  android:inputType="textPassword"
     70                  android:textSize="36sp"
     71                  android:background="@null"
     72                  android:textAppearance="?android:attr/textAppearanceMedium"
     73                  android:textColor="#ffffffff"
     74                  android:imeOptions="flagForceAscii|actionDone"
     75                  />
     76 
     77              <ImageView android:id="@+id/switch_ime_button"
     78                  android:layout_width="wrap_content"
     79                  android:layout_height="wrap_content"
     80                  android:src="@drawable/ic_lockscreen_ime"
     81                  android:clickable="true"
     82                  android:padding="8dip"
     83                  android:layout_gravity="center"
     84                  android:background="?android:attr/selectableItemBackground"
     85                  android:visibility="gone"
     86                  />
     87 
     88             </LinearLayout>
     89        </FrameLayout>
     90 
     91     <Space
     92         android:layout_width="match_parent"
     93         android:layout_height="0dp"
     94         android:layout_weight="1"
     95         />
     96 
     97     <include layout="@layout/keyguard_eca"
     98              android:id="@+id/keyguard_selector_fade_container"
     99              android:layout_width="match_parent"
    100              android:layout_height="wrap_content"
    101              android:orientation="vertical"
    102              android:layout_gravity="bottom|center_horizontal"
    103              android:gravity="center_horizontal" />
    104 
    105 </com.android.keyguard.KeyguardPasswordView>
    106