| <?xml version="1.0" encoding="utf-8"?> |
| <!-- Copyright (C) 2015 The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <android.support.v7.widget.CardView |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| xmlns:app="http://schemas.android.com/apk/res-auto" |
| android:layout_width="match_parent" |
| android:layout_height="@dimen/car_list_item_height" |
| android:layout_marginBottom="@dimen/car_card_bottom_margin" |
| android:focusable="true" |
| android:orientation="horizontal" > |
| <LinearLayout |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:background="@drawable/car_list_item_background" |
| android:duplicateParentState="true" |
| android:orientation="horizontal" > |
| <ImageView |
| android:id="@+id/icon" |
| android:layout_width="@dimen/car_list_item_icon_size" |
| android:layout_height="@dimen/car_list_item_icon_size" |
| android:layout_marginLeft="16dp" |
| android:layout_marginRight="16dp" |
| android:scaleType="centerCrop" |
| android:layout_gravity="center_vertical" /> |
| <TextView |
| android:id="@+id/text" |
| android:layout_width="0dp" |
| android:layout_height="wrap_content" |
| android:layout_weight="1" |
| android:layout_gravity="center_vertical" |
| style="@style/CarBody1" |
| android:singleLine="true" /> |
| <ImageView |
| android:id="@+id/right_icon" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="center_vertical" |
| android:layout_marginRight="@dimen/car_list_item_right_icon_margin" |
| android:scaleType="center" /> |
| </LinearLayout> |
| </android.support.v7.widget.CardView> |