blob: dc7e7c8caf080d18e352a57929912130c6ded5a7 [file] [log] [blame]
<?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"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/layout_chat_list_item"
android:paddingTop="@dimen/vertical_spacing"
android:paddingBottom="@dimen/vertical_spacing"
android:layout_marginBottom="@dimen/divider"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<RelativeLayout
android:id="@+id/profile_layout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentStart="true"
android:layout_centerVertical="true"
app:layout_marginStartPercent="@dimen/padding_15">
<ImageView
android:id="@+id/profile"
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:layout_marginStartPercent="@dimen/padding_15"
android:layout_centerInParent="true" />
</RelativeLayout>
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_centerVertical="true"
android:layout_toEndOf="@id/profile_layout"
android:orientation="vertical"
android:layout_marginStart="@dimen/keyline_large"
app:layout_marginEndPercent="@dimen/padding_10">
<TextView
android:id="@+id/text_alias"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"
android:includeFontPadding="false"
android:maxLines="1"
tools:text="Alias"
android:layout_marginBottom="@dimen/vertical_spacing_small"/>
<TextView
android:id="@+id/text_last_message"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ellipsize="end"
android:includeFontPadding="false"
android:maxLines="1"
tools:text="@string/holder_text" />
</LinearLayout>
</android.support.percent.PercentRelativeLayout>