Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3 **
      4 ** Copyright 2012, 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.KeyguardAccountView
     20     xmlns:android="http://schemas.android.com/apk/res/android"
     21 	xmlns:androidprv="http://schemas.android.com/apk/res-auto"
     22     android:id="@+id/keyguard_account_view"
     23     android:layout_width="match_parent"
     24     android:layout_height="match_parent"
     25     androidprv:layout_maxWidth="@dimen/keyguard_security_width"
     26     androidprv:layout_maxHeight="@dimen/keyguard_security_height"
     27     android:orientation="vertical">
     28 
     29     <include layout="@layout/keyguard_message_area"
     30             android:layout_width="match_parent"
     31             android:layout_height="wrap_content" />
     32 
     33     <RelativeLayout
     34         android:layout_width="match_parent"
     35         android:layout_height="0dip"
     36         android:layout_weight="1">
     37 
     38         <EditText
     39             android:id="@+id/login"
     40             android:layout_width="match_parent"
     41             android:layout_height="wrap_content"
     42             android:layout_marginTop="8dip"
     43             android:layout_marginStart="7dip"
     44             android:layout_marginEnd="7dip"
     45             android:layout_alignParentTop="true"
     46             android:hint="@string/kg_login_username_hint"
     47             android:inputType="textEmailAddress"
     48             />
     49 
     50         <EditText
     51             android:id="@+id/password"
     52             android:layout_width="match_parent"
     53             android:layout_height="wrap_content"
     54             android:layout_below="@id/login"
     55             android:layout_toLeftOf="@+id/ok"
     56             android:layout_marginTop="15dip"
     57             android:layout_marginStart="7dip"
     58             android:layout_marginEnd="7dip"
     59             android:inputType="textPassword"
     60             android:hint="@string/kg_login_password_hint"
     61             android:nextFocusRight="@+id/ok"
     62             android:nextFocusDown="@+id/ok"
     63             />
     64 
     65         <!-- ok below password, aligned to right of screen -->
     66         <Button
     67             android:id="@+id/ok"
     68             android:layout_width="wrap_content"
     69             android:layout_height="wrap_content"
     70             android:layout_margin="7dip"
     71             android:layout_alignParentEnd="true"
     72             android:layout_below="@id/login"
     73             android:text="@string/kg_login_submit_button"
     74             />
     75 
     76     </RelativeLayout>
     77 
     78     <!--  no room for ECA on this screen right now
     79     <include layout="@layout/keyguard_eca"
     80         android:id="@+id/keyguard_selector_fade_container"
     81         android:layout_width="match_parent"
     82         android:layout_height="wrap_content"
     83         android:orientation="vertical"
     84         android:layout_gravity="bottom|center_horizontal"
     85         android:gravity="center_horizontal" />
     86     -->
     87 
     88 </com.android.keyguard.KeyguardAccountView>
     89