Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3     Copyright (C) 2018 The Android Open Source Project
      4 
      5     Licensed under the Apache License, Version 2.0 (the "License")
      6     you may not use this file except in compliance with the License.
      7     You may obtain a copy of the License at
      8 
      9         http://www.apache.org/licenses/LICENSE-2.0
     10 
     11     Unless required by applicable law or agreed to in writing, software
     12     distributed under the License is distributed on an "AS IS" BASIS,
     13     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14     See the License for the specific language governing permissions and
     15     limitations under the License.
     16 -->
     17 
     18 <LinearLayout
     19     xmlns:android="http://schemas.android.com/apk/res/android"
     20     xmlns:app="http://schemas.android.com/apk/res-auto"
     21     android:layout_width="match_parent"
     22     android:layout_height="match_parent"
     23     android:orientation="horizontal">
     24 
     25     <LinearLayout
     26         android:layout_width="0dp"
     27         android:layout_height="match_parent"
     28         android:layout_weight="1"
     29         android:paddingHorizontal="@dimen/car_padding_5"
     30         android:gravity="center_vertical"
     31         android:orientation="vertical">
     32 
     33         <android.support.design.widget.TextInputLayout
     34             android:layout_width="match_parent"
     35             android:layout_height="wrap_content"
     36             app:hintTextAppearance="@style/TextAppearance.Car.Hint">
     37 
     38             <android.support.design.widget.TextInputEditText
     39                 android:id="@+id/password_entry"
     40                 android:layout_width="match_parent"
     41                 android:layout_height="wrap_content"
     42                 android:focusableInTouchMode="true"
     43                 android:hint="@string/security_lock_password"
     44                 android:imeOptions="actionDone|flagNoExtractUi"
     45                 android:inputType="textPassword"
     46                 android:maxLines="1"
     47                 android:textAppearance="@style/TextAppearance.Car.Body2"/>
     48 
     49         </android.support.design.widget.TextInputLayout>
     50 
     51         <TextView
     52             android:id="@+id/hint_text"
     53             android:text="@string/choose_lock_password_hints"
     54             android:layout_width="match_parent"
     55             android:layout_height="wrap_content"
     56             android:gravity="center"
     57             android:textAppearance="@style/TextAppearance.Car.Body2" />
     58     </LinearLayout>
     59 
     60     <LinearLayout
     61         android:layout_width="0dp"
     62         android:layout_height="match_parent"
     63         android:layout_weight="1"
     64         android:gravity="center"
     65         android:orientation="vertical">
     66 
     67         <ImageView
     68             android:src="@drawable/ic_lock"
     69             android:layout_height="@dimen/car_primary_icon_size"
     70             android:layout_width="@dimen/car_primary_icon_size"/>
     71 
     72         <TextView
     73             android:id="@+id/title_text"
     74             android:layout_width="match_parent"
     75             android:layout_height="wrap_content"
     76             android:gravity="center"
     77             android:layout_marginBottom="@dimen/car_padding_2"
     78             android:textAppearance="@style/TextAppearance.Car.Body1"
     79             android:text="@string/set_screen_lock"/>
     80 
     81         <TextView
     82             android:id="@+id/description_text"
     83             android:layout_width="match_parent"
     84             android:layout_height="wrap_content"
     85             android:gravity="center"
     86             android:textAppearance="@style/TextAppearance.Car.Body2"
     87             android:text="@string/choose_lock_password_message"/>
     88 
     89         <Button
     90             android:id="@+id/screen_lock_options"
     91             style="@style/Widget.Car.Button.Borderless.Colored"
     92             android:layout_width="wrap_content"
     93             android:text="@string/screen_lock_options"
     94             android:visibility="gone"/>
     95     </LinearLayout>
     96 </LinearLayout>