Home | History | Annotate | Download | only in layout
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3   ~
      4   ~ Copyright (C) 2018 Google Inc.
      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 <LinearLayout
     20     xmlns:android="http://schemas.android.com/apk/res/android"
     21     android:id="@+id/app_item"
     22     android:layout_width="match_parent"
     23     android:layout_height="wrap_content"
     24     android:layout_marginStart="@dimen/car_padding_2"
     25     android:layout_marginEnd="@dimen/car_padding_2"
     26     android:layout_marginBottom="@dimen/car_padding_5"
     27     android:orientation="vertical"
     28     android:background="@drawable/app_item_background"
     29     android:padding="@dimen/car_padding_1"
     30     android:gravity="center">
     31 
     32     <ImageView
     33         android:id="@+id/app_icon"
     34         android:layout_width="@dimen/car_touch_target_size"
     35         android:layout_height="@dimen/car_touch_target_size"
     36         android:layout_marginBottom="@dimen/car_padding_4"
     37         android:layout_gravity="center_horizontal" />
     38 
     39     <TextView
     40         android:id="@+id/app_name"
     41         android:layout_width="match_parent"
     42         android:layout_height="wrap_content"
     43         android:textAppearance="@style/TextAppearance.Car.Label1"
     44         android:textColor="@color/car_label1_light"
     45         android:gravity="center"
     46         android:ellipsize="end"
     47         android:maxLines="1" />
     48 </LinearLayout>
     49