conversations-classic/src/main/res/layout/contact.xml

56 lines
2.3 KiB
XML
Raw Normal View History

2014-10-22 16:38:44 +00:00
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
2015-07-21 00:21:34 +00:00
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?android:attr/activatedBackgroundIndicator"
2018-02-18 14:17:11 +00:00
android:padding="@dimen/list_padding">
2014-10-22 16:38:44 +00:00
2015-07-21 00:21:34 +00:00
<com.makeramen.roundedimageview.RoundedImageView
2014-10-22 16:38:44 +00:00
android:id="@+id/contact_photo"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_alignParentLeft="true"
android:scaleType="centerCrop"
2015-07-21 00:21:34 +00:00
app:riv_corner_radius="2dp" />
2014-10-22 16:38:44 +00:00
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_toRightOf="@+id/contact_photo"
android:orientation="vertical"
android:paddingLeft="@dimen/avatar_item_distance" >
2014-10-22 16:38:44 +00:00
<TextView
android:id="@+id/contact_display_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:singleLine="true"
android:textAppearance="@style/TextAppearance.AppCompat.Subhead" />
2014-10-22 16:38:44 +00:00
<TextView
android:id="@+id/contact_jid"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:singleLine="true"
android:textAppearance="@style/TextAppearance.Conversations.Body1.Secondary"/>
<com.wefika.flowlayout.FlowLayout
2014-11-16 16:21:21 +00:00
android:id="@+id/tags"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="-2dp"
2014-11-16 16:21:21 +00:00
android:orientation="horizontal">
</com.wefika.flowlayout.FlowLayout>
2014-10-22 16:38:44 +00:00
<TextView
android:id="@+id/key"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="?attr/color_text_primary"
android:textSize="?attr/TextSizeBody"
2014-10-22 16:38:44 +00:00
android:typeface="monospace"
2015-07-20 13:43:28 +00:00
android:fontFamily="monospace"
2014-10-22 16:38:44 +00:00
android:visibility="gone" />
</LinearLayout>
</RelativeLayout>