|
|
|
@ -17,75 +17,90 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
|
|
|
--> |
|
|
|
|
<org.floens.chan.ui.cell.PostCell xmlns:android="http://schemas.android.com/apk/res/android" |
|
|
|
|
xmlns:tools="http://schemas.android.com/tools" |
|
|
|
|
android:id="@+id/post_cell" |
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:orientation="horizontal" |
|
|
|
|
tools:ignore="RtlHardcoded,RtlSymmetry"> |
|
|
|
|
|
|
|
|
|
<org.floens.chan.ui.view.ThumbnailView |
|
|
|
|
android:id="@+id/thumbnail_view" |
|
|
|
|
android:layout_width="@dimen/cell_post_thumbnail_size" |
|
|
|
|
android:layout_height="@dimen/cell_post_thumbnail_size" |
|
|
|
|
android:gravity="top" /> |
|
|
|
|
<View |
|
|
|
|
android:id="@+id/filter_match_color" |
|
|
|
|
android:layout_width="5dp" |
|
|
|
|
android:layout_height="match_parent" |
|
|
|
|
android:visibility="gone" /> |
|
|
|
|
|
|
|
|
|
<TextView |
|
|
|
|
android:id="@+id/title" |
|
|
|
|
<RelativeLayout |
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_alignParentRight="true" |
|
|
|
|
android:layout_alignParentTop="true" |
|
|
|
|
android:layout_alignWithParentIfMissing="true" |
|
|
|
|
android:layout_toRightOf="@id/thumbnail_view" |
|
|
|
|
android:paddingRight="25dp" /> |
|
|
|
|
android:layout_height="wrap_content"> |
|
|
|
|
|
|
|
|
|
<TextView |
|
|
|
|
android:id="@+id/icons" |
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_alignParentRight="true" |
|
|
|
|
android:layout_alignWithParentIfMissing="true" |
|
|
|
|
android:layout_below="@id/title" |
|
|
|
|
android:layout_toRightOf="@id/thumbnail_view" /> |
|
|
|
|
<org.floens.chan.ui.view.ThumbnailView |
|
|
|
|
android:id="@+id/thumbnail_view" |
|
|
|
|
android:layout_width="@dimen/cell_post_thumbnail_size" |
|
|
|
|
android:layout_height="@dimen/cell_post_thumbnail_size" |
|
|
|
|
android:layout_alignWithParentIfMissing="true" |
|
|
|
|
android:gravity="top" /> |
|
|
|
|
|
|
|
|
|
<TextView |
|
|
|
|
android:id="@+id/comment" |
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_alignParentRight="true" |
|
|
|
|
android:layout_alignWithParentIfMissing="true" |
|
|
|
|
android:layout_below="@id/icons" |
|
|
|
|
android:layout_toRightOf="@id/thumbnail_view" |
|
|
|
|
android:textColor="?attr/text_color_primary" /> |
|
|
|
|
<TextView |
|
|
|
|
android:id="@+id/title" |
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_alignParentRight="true" |
|
|
|
|
android:layout_alignParentTop="true" |
|
|
|
|
android:layout_alignWithParentIfMissing="true" |
|
|
|
|
android:layout_toRightOf="@id/thumbnail_view" |
|
|
|
|
android:paddingRight="25dp" /> |
|
|
|
|
|
|
|
|
|
<TextView |
|
|
|
|
android:id="@+id/replies" |
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_alignWithParentIfMissing="true" |
|
|
|
|
android:layout_below="@id/comment" |
|
|
|
|
android:layout_toRightOf="@id/thumbnail_view" |
|
|
|
|
android:singleLine="true" |
|
|
|
|
android:textColor="?attr/text_color_secondary" /> |
|
|
|
|
<TextView |
|
|
|
|
android:id="@+id/icons" |
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_alignParentRight="true" |
|
|
|
|
android:layout_alignWithParentIfMissing="true" |
|
|
|
|
android:layout_below="@id/title" |
|
|
|
|
android:layout_toRightOf="@id/thumbnail_view" /> |
|
|
|
|
|
|
|
|
|
<View |
|
|
|
|
android:id="@+id/divider" |
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
android:layout_height="1dp" |
|
|
|
|
android:layout_alignParentBottom="true" |
|
|
|
|
android:layout_alignParentLeft="true" |
|
|
|
|
android:layout_alignParentRight="true" |
|
|
|
|
android:background="?attr/divider_color" /> |
|
|
|
|
<TextView |
|
|
|
|
android:id="@+id/comment" |
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_alignParentRight="true" |
|
|
|
|
android:layout_alignWithParentIfMissing="true" |
|
|
|
|
android:layout_below="@id/icons" |
|
|
|
|
android:layout_toRightOf="@id/thumbnail_view" |
|
|
|
|
android:textColor="?attr/text_color_primary" /> |
|
|
|
|
|
|
|
|
|
<TextView |
|
|
|
|
android:id="@+id/replies" |
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_alignWithParentIfMissing="true" |
|
|
|
|
android:layout_below="@id/comment" |
|
|
|
|
android:layout_toRightOf="@id/thumbnail_view" |
|
|
|
|
android:singleLine="true" |
|
|
|
|
android:textColor="?attr/text_color_secondary" /> |
|
|
|
|
|
|
|
|
|
<View |
|
|
|
|
android:id="@+id/divider" |
|
|
|
|
android:layout_width="match_parent" |
|
|
|
|
android:layout_height="1dp" |
|
|
|
|
android:layout_alignParentBottom="true" |
|
|
|
|
android:layout_alignParentLeft="true" |
|
|
|
|
android:layout_alignParentRight="true" |
|
|
|
|
android:background="?attr/divider_color" /> |
|
|
|
|
|
|
|
|
|
<ImageView |
|
|
|
|
android:id="@+id/options" |
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_alignParentRight="true" |
|
|
|
|
android:layout_alignParentTop="true" |
|
|
|
|
android:paddingBottom="15dp" |
|
|
|
|
android:paddingLeft="15dp" |
|
|
|
|
android:paddingRight="5dp" |
|
|
|
|
android:paddingTop="5dp" |
|
|
|
|
android:src="?post_options_drawable" |
|
|
|
|
tools:ignore="ContentDescription" /> |
|
|
|
|
|
|
|
|
|
<ImageView |
|
|
|
|
android:id="@+id/options" |
|
|
|
|
android:layout_width="wrap_content" |
|
|
|
|
android:layout_height="wrap_content" |
|
|
|
|
android:layout_alignParentRight="true" |
|
|
|
|
android:layout_alignParentTop="true" |
|
|
|
|
android:paddingBottom="15dp" |
|
|
|
|
android:paddingLeft="15dp" |
|
|
|
|
android:paddingRight="5dp" |
|
|
|
|
android:paddingTop="5dp" |
|
|
|
|
android:src="?post_options_drawable" |
|
|
|
|
tools:ignore="ContentDescription" /> |
|
|
|
|
</RelativeLayout> |
|
|
|
|
|
|
|
|
|
</org.floens.chan.ui.cell.PostCell> |
|
|
|
|