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:orientation="horizontal">
12
13        <com.lelloman.identicon.view.GithubIdenticonView
14            android:id="@+id/thread_identicon"
15            android:layout_width="17dp"
16            android:layout_height="17dp"
17            android:layout_gravity="center_vertical"
18            android:layout_marginRight="10dp" />
19
20        <TextView
21            android:id="@+id/thread_subject"
22            android:layout_width="match_parent"
23            android:layout_height="wrap_content"
24            android:gravity="center_vertical"
25            android:maxLines="1"
26            android:minHeight="?android:attr/listPreferredItemHeightSmall"
27            android:textAppearance="?textAppearanceBodyMedium" />
28
29    </LinearLayout>
30
31</layout>