Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!-- Copyright (C) 2018 The Android Open Source Project
      3 
      4 Licensed under the Apache License, Version 2.0 (the "License");
      5 you may not use this file except in compliance with the License.
      6 You may obtain a copy of the License at
      7 
      8   http://www.apache.org/licenses/LICENSE-2.0
      9 
     10 Unless required by applicable law or agreed to in writing, software
     11 distributed under the License is distributed on an "AS IS" BASIS,
     12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13 See the License for the specific language governing permissions and
     14 limitations under the License.
     15 -->
     16 <RelativeLayout
     17     xmlns:android="http://schemas.android.com/apk/res/android"
     18     android:id="@+id/lock_out_message_container"
     19     android:background="@drawable/speed_bump_scrim"
     20     android:layout_width="match_parent"
     21     android:layout_height="match_parent"
     22     android:layout_gravity="bottom"
     23     android:visibility="gone">
     24 
     25     <ImageView
     26         android:id="@+id/lock_out_drawable"
     27         android:layout_width="wrap_content"
     28         android:layout_height="@dimen/speed_bump_lock_out_message_height"
     29         android:layout_gravity="center"
     30         android:layout_marginBottom="@dimen/speed_bump_lock_out_drawable_margin_bottom"
     31         android:layout_alignParentBottom="true"
     32         android:layout_centerHorizontal="true"
     33         android:src="@drawable/lock_out_message_animation"/>
     34 
     35     <!-- Align this TextView against the lock_out_drawable to ensure that the latter will wrap
     36          this TextView. -->
     37     <TextView
     38         android:id="@+id/lock_out_text"
     39         android:layout_width="wrap_content"
     40         android:layout_height="wrap_content"
     41         android:textAppearance="@style/TextAppearance.Car.Body1"
     42         android:layout_alignStart="@id/lock_out_drawable"
     43         android:layout_alignEnd="@id/lock_out_drawable"
     44         android:layout_alignTop="@id/lock_out_drawable"
     45         android:layout_alignBottom="@id/lock_out_drawable"
     46         android:gravity="center"
     47         android:text="@string/speed_bump_lockout_message"/>
     48 </RelativeLayout>
     49