| <?xml version="1.0" encoding="utf-8"?> |
| <!-- |
| ~ Copyright 2017 Google Inc. |
| ~ |
| ~ 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.percent.PercentRelativeLayout 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="wrap_content" |
| xmlns:tools="http://schemas.android.com/tools" |
| android:background="@drawable/ripple_select" |
| android:layout_marginBottom="@dimen/divider" |
| android:paddingBottom="@dimen/vertical_spacing" |
| android:paddingTop="@dimen/vertical_spacing"> |
| |
| <ImageView |
| android:id="@+id/profile_img" |
| android:layout_width="@dimen/circle_image_diameter" |
| android:layout_height="@dimen/circle_image_diameter" |
| android:layout_alignParentStart="true" |
| android:layout_centerVertical="true" |
| tools:src="@drawable/ic_face_white_24dp" |
| app:circle_border_color="@color/blue_15" |
| app:circle_border_width="2dp" |
| app:layout_marginStartPercent="@dimen/padding_15" /> |
| |
| <TextView |
| android:id="@+id/text_contact_name" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_centerVertical="true" |
| android:layout_marginStart="@dimen/keyline_large" |
| android:layout_toEndOf="@id/profile_img" |
| android:ellipsize="end" |
| android:includeFontPadding="false" |
| android:maxLines="1" |
| android:text="@string/holder_text" |
| app:layout_marginEndPercent="@dimen/padding_10" /> |
| |
| </android.support.percent.PercentRelativeLayout> |