thread_row.xml

 1<?xml version="1.0" encoding="utf-8"?>
 2<layout xmlns:android="http://schemas.android.com/apk/res/android"
 3    xmlns:app="http://schemas.android.com/apk/res-auto">
 4
 5    <LinearLayout
 6        android:layout_width="match_parent"
 7        android:layout_height="match_parent"
 8        android:minHeight="?android:attr/listPreferredItemHeightSmall"
 9        android:paddingLeft="@dimen/avatar_item_distance"
10        android:paddingRight="@dimen/avatar_item_distance"
11        android:background="@drawable/list_choice"
12        android:orientation="horizontal">
13
14        <com.lelloman.identicon.view.GithubIdenticonView
15            android:id="@+id/thread_identicon"
16            android:layout_width="17dp"
17            android:layout_height="17dp"
18            android:layout_gravity="center_vertical"
19            android:layout_marginRight="10dp" />
20
21        <TextView
22            android:id="@+id/thread_subject"
23            android:layout_width="match_parent"
24            android:layout_height="wrap_content"
25            android:gravity="center_vertical"
26            android:maxLines="1"
27            android:minHeight="?android:attr/listPreferredItemHeightSmall"
28            android:textAppearance="@style/TextAppearance.Conversations.Body1"
29            android:textColor="?attr/edit_text_color" />
30
31    </LinearLayout>
32
33</layout>