| <?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. |
| --> |
| <!-- The height + bottomMargin should equal car_paged_list_view_row_height --> |
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| android:id="@+id/container" |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:duplicateParentState="true" |
| android:orientation="horizontal"> |
| |
| <FrameLayout |
| android:id="@+id/icon_container" |
| android:layout_width="@dimen/car_keyline_2" |
| android:layout_height="@dimen/icon_container_height" |
| android:layout_gravity="center_vertical" |
| android:layout_marginStart="16dp" |
| android:layout_marginEnd="8dp" > |
| <ImageView |
| android:id="@+id/icon" |
| android:layout_width="@dimen/call_log_icon_size" |
| android:layout_height="@dimen/call_log_icon_size" |
| android:layout_gravity="center_vertical|start" |
| android:layout_marginStart="@dimen/car_keyline_1" |
| android:scaleType="centerCrop" /> |
| <ImageView |
| android:id="@+id/small_icon" |
| android:layout_width="28dp" |
| android:layout_height="28dp" |
| android:padding="4dp" |
| android:scaleType="centerInside" |
| android:layout_gravity="bottom|end" |
| android:background="@drawable/strequent_small_icon_bg" |
| android:visibility="gone" /> |
| </FrameLayout> |
| |
| <LinearLayout |
| android:id="@+id/text_container" |
| android:layout_width="0dp" |
| android:layout_height="wrap_content" |
| android:layout_gravity="center_vertical" |
| android:duplicateParentState="true" |
| android:layout_weight="1" |
| android:orientation="vertical"> |
| |
| <TextView |
| android:id="@+id/title" |
| style="@style/TextAppearance.Car.Body1" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_marginBottom="@dimen/car_text_vertical_margin" |
| android:layout_marginEnd="@dimen/car_keyline_1" |
| android:ellipsize="end" |
| android:maxLines="1" /> |
| |
| <LinearLayout |
| android:id="@+id/call_type" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:duplicateParentState="true" |
| android:orientation="horizontal"> |
| |
| <com.android.car.dialer.CallTypeIconsView |
| android:id="@+id/call_type_icons" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="center_vertical" |
| android:layout_marginEnd="@dimen/call_log_icon_margin" |
| android:visibility="gone"/> |
| |
| <TextView |
| android:id="@+id/text" |
| style="@style/TextAppearance.Car.Body2" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="center_vertical" /> |
| </LinearLayout> |
| </LinearLayout> |
| |
| <ImageView |
| android:id="@+id/right_icon" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="center_vertical" |
| android:layout_marginEnd="@dimen/car_padding_4" |
| android:scaleType="center" |
| android:visibility="gone" /> |
| |
| </LinearLayout> |