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     android:layout_width="match_parent"
     21     android:layout_height="match_parent"
     22     android:layout_marginStart="@dimen/car_margin"
     23     android:layout_marginEnd="@dimen/car_margin"
     24     android:orientation="horizontal"
     25     android:paddingTop="@dimen/car_app_bar_height"
     26     android:paddingBottom="@dimen/car_app_bar_height">
     27 
     28     <!-- Start side: lock pattern -->
     29     <FrameLayout
     30         android:layout_width="0dp"
     31         android:layout_height="match_parent"
     32         android:layout_weight="1"
     33         android:layout_gravity="center_vertical">
     34 
     35         <com.android.internal.widget.LockPatternView
     36             style="@style/LockPatternStyle"
     37             android:id="@+id/lockPattern"
     38             android:layout_width="wrap_content"
     39             android:layout_height="wrap_content"
     40             android:layout_gravity="center"/>
     41     </FrameLayout>
     42 
     43     <!-- End side: instructions and messages -->
     44     <LinearLayout
     45         android:layout_width="0dp"
     46         android:layout_height="match_parent"
     47         android:layout_weight="1"
     48         android:gravity="center"
     49         android:orientation="vertical">
     50 
     51         <ImageView
     52             android:src="@drawable/ic_lock"
     53             android:layout_height="@dimen/car_primary_icon_size"
     54             android:layout_width="@dimen/car_primary_icon_size"/>
     55 
     56         <TextView
     57             android:id="@+id/title_text"
     58             android:layout_width="match_parent"
     59             android:layout_height="wrap_content"
     60             android:gravity="center"
     61             android:layout_marginBottom="@dimen/car_padding_2"
     62             android:textAppearance="@style/TextAppearance.Car.Body1"
     63             android:text="@string/lockscreen_choose_your_pattern"/>
     64 
     65         <TextView
     66             android:id="@+id/description_text"
     67             android:layout_width="match_parent"
     68             android:layout_height="wrap_content"
     69             android:layout_marginBottom="@dimen/car_padding_5"
     70             android:gravity="center"
     71             android:textAppearance="@style/TextAppearance.Car.Body2"/>
     72 
     73         <Button
     74             android:id="@+id/screen_lock_options"
     75             style="@style/Widget.Car.Button.Borderless.Colored"
     76             android:layout_width="wrap_content"
     77             android:text="@string/screen_lock_options"
     78             android:visibility="gone"/>
     79     </LinearLayout>
     80 </LinearLayout>
     81