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 
     17 <LinearLayout
     18     xmlns:android="http://schemas.android.com/apk/res/android"
     19     android:layout_width="match_parent"
     20     android:layout_height="match_parent"
     21     android:orientation="vertical">
     22     <RelativeLayout
     23         android:layout_width="match_parent"
     24         android:layout_height="@dimen/car_app_bar_height"
     25         android:gravity="end|center_vertical" >
     26         <FrameLayout
     27             android:id="@+id/action_bar_icon_container"
     28             android:layout_width="@dimen/car_margin"
     29             android:layout_height="@dimen/car_app_bar_height"
     30             android:foreground="@drawable/car_list_item_background"
     31             android:layout_alignParentStart="true">
     32             <ImageView
     33                 android:tint="@color/car_accent"
     34                 android:layout_gravity="center"
     35                 android:src="@drawable/ic_arrow_back"
     36                 style="@style/ListIcon"/>
     37         </FrameLayout>
     38         <TextView
     39             android:id="@+id/title"
     40             android:layout_width="match_parent"
     41             android:layout_height="wrap_content"
     42             android:layout_marginStart="@dimen/car_margin"
     43             android:layout_marginTop="@dimen/optical_center_offset"
     44             android:textAppearance="@style/TextAppearance.Car.Title"
     45             android:textColor="@color/car_accent"
     46             android:text="@string/app_permissions"
     47             android:layout_gravity="center_vertical"
     48             android:layout_centerVertical="true"
     49             android:layout_alignParentStart="true"
     50             android:maxLines="1"
     51             android:ellipsize="end"/>
     52     </RelativeLayout>
     53 
     54     <View
     55         android:layout_width="match_parent"
     56         android:layout_height="@dimen/car_list_divider_height"
     57         android:background="@color/car_list_divider"/>
     58 
     59     <include layout="@layout/list" />
     60 
     61 </LinearLayout>
     62