| <?xml version="1.0" encoding="utf-8"?> |
| <!-- Copyright (C) 2017 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. |
| --> |
| <!-- This FrameLayout is used to center the inner layout. --> |
| <FrameLayout |
| xmlns:android="http://schemas.android.com/apk/res/android" |
| android:layout_width="match_parent" |
| android:layout_height="wrap_content" |
| android:layout_marginBottom="@dimen/call_log_card_overlap" |
| android:focusable="true"> |
| |
| <!-- Wraps everything in a card --> |
| <com.android.car.stream.ui.StreamCardView |
| android:id="@+id/card" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:backgroundTint="@color/car_grey_200" |
| android:backgroundTintMode="multiply" |
| android:layout_gravity="center"> |
| |
| <!-- Used to provide common margins and also allow for the textview to set its right margin |
| to the width of the image to allow it to ellipsize. |
| --> |
| <FrameLayout |
| android:layout_width="match_parent" |
| android:layout_height="match_parent" |
| android:layout_marginLeft="@dimen/stream_card_keyline_1" |
| android:layout_marginRight="@dimen/stream_card_keyline_1" |
| android:layout_marginTop="@dimen/contact_detail_vertical_margin" |
| android:layout_marginBottom="@dimen/contact_detail_vertical_margin"> |
| |
| <TextView |
| android:id="@+id/title" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_gravity="bottom|left" |
| android:layout_marginRight="@dimen/contact_detail_image_size" |
| android:singleLine="true" |
| android:ellipsize="end" |
| style="@style/CarHeadline1" /> |
| |
| <ImageView |
| android:id="@+id/right_icon" |
| android:layout_width="@dimen/contact_detail_image_size" |
| android:layout_height="@dimen/contact_detail_image_size" |
| android:background="@drawable/avatar_rounded_bg" |
| android:layout_gravity="right" /> |
| </FrameLayout> |
| </com.android.car.stream.ui.StreamCardView> |
| </FrameLayout> |