2017-01-03 10:30:27 +11:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<RelativeLayout 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:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:id="@+id/status_boosted"
|
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
android:layout_toRightOf="@+id/status_boosted_icon"
|
|
|
|
android:layout_toEndOf="@+id/status_boosted_icon"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:srcCompat="@drawable/boost_icon"
|
|
|
|
android:id="@+id/status_boosted_icon"
|
|
|
|
android:adjustViewBounds="false"
|
|
|
|
android:cropToPadding="false"
|
|
|
|
android:layout_alignRight="@+id/status_avatar"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:paddingRight="@dimen/status_avatar_padding"
|
|
|
|
android:paddingTop="@dimen/status_boost_icon_vertical_padding"
|
|
|
|
android:paddingBottom="@dimen/status_boost_icon_vertical_padding"
|
|
|
|
android:layout_alignParentTop="true" />
|
|
|
|
|
|
|
|
<com.android.volley.toolbox.NetworkImageView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:id="@+id/status_avatar"
|
|
|
|
android:layout_alignParentRight="false"
|
|
|
|
android:layout_alignParentTop="false"
|
|
|
|
android:layout_alignParentLeft="false"
|
|
|
|
android:layout_alignParentStart="false"
|
|
|
|
android:layout_below="@+id/status_boosted"
|
|
|
|
android:padding="@dimen/status_avatar_padding" />
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_toRightOf="@+id/status_avatar"
|
|
|
|
android:layout_toEndOf="@+id/status_avatar"
|
|
|
|
android:id="@+id/status_name_bar"
|
|
|
|
android:layout_below="@+id/status_boosted_icon"
|
|
|
|
android:layout_width="wrap_content">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/status_display_name"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:textAppearance="@android:style/TextAppearance.DeviceDefault.Small"
|
|
|
|
android:textStyle="normal|bold" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/status_username"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="@dimen/status_username_left_margin" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/status_since_created"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginLeft="@dimen/status_since_created_left_margin" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/status_content"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_toRightOf="@+id/status_avatar"
|
|
|
|
android:layout_toEndOf="@+id/status_avatar"
|
|
|
|
android:layout_below="@+id/status_name_bar" />
|
|
|
|
|
2017-01-08 09:24:02 +11:00
|
|
|
<LinearLayout
|
2017-01-10 17:14:27 +11:00
|
|
|
android:id="@+id/status_media_preview_container"
|
2017-01-08 09:24:02 +11:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2017-01-10 17:14:27 +11:00
|
|
|
android:orientation="vertical"
|
2017-01-08 09:24:02 +11:00
|
|
|
android:layout_below="@+id/status_content"
|
2017-01-10 17:14:27 +11:00
|
|
|
android:layout_toRightOf="@+id/status_avatar">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<com.android.volley.toolbox.NetworkImageView
|
|
|
|
android:id="@+id/status_media_preview_0"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
android:layout_marginTop="@dimen/status_media_preview_top_margin" />
|
|
|
|
|
|
|
|
<com.android.volley.toolbox.NetworkImageView
|
|
|
|
android:id="@+id/status_media_preview_1"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
android:layout_marginTop="@dimen/status_media_preview_top_margin" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<com.android.volley.toolbox.NetworkImageView
|
|
|
|
android:id="@+id/status_media_preview_2"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1" />
|
|
|
|
|
|
|
|
<com.android.volley.toolbox.NetworkImageView
|
|
|
|
android:id="@+id/status_media_preview_3"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:scaleType="centerCrop" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@id/status_media_preview_container"
|
2017-01-08 09:24:02 +11:00
|
|
|
android:layout_toRightOf="@+id/status_avatar"
|
|
|
|
android:paddingBottom="8dp"
|
|
|
|
android:paddingTop="8dp">
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
app:srcCompat="@drawable/ic_reply"
|
|
|
|
android:id="@+id/status_reply"
|
|
|
|
style="?android:attr/borderlessButtonStyle"
|
|
|
|
android:layout_width="32dp"
|
|
|
|
android:layout_height="32dp" />
|
|
|
|
|
|
|
|
<Space
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_weight="1" />
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
app:srcCompat="@drawable/ic_reblog_off"
|
|
|
|
android:id="@+id/status_reblog"
|
|
|
|
style="?android:attr/borderlessButtonStyle"
|
|
|
|
android:layout_width="32dp"
|
|
|
|
android:layout_height="32dp" />
|
|
|
|
|
|
|
|
<Space
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_weight="1" />
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:layout_width="32dp"
|
|
|
|
android:layout_height="32dp"
|
|
|
|
app:srcCompat="@drawable/ic_favourite_off"
|
|
|
|
android:id="@+id/status_favourite"
|
|
|
|
style="?android:attr/borderlessButtonStyle" />
|
|
|
|
|
|
|
|
<Space
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_weight="1" />
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
app:srcCompat="@drawable/ic_extra"
|
|
|
|
android:id="@+id/status_more"
|
|
|
|
style="?android:attr/borderlessButtonStyle"
|
|
|
|
android:layout_width="32dp"
|
|
|
|
android:layout_height="32dp" />
|
|
|
|
|
|
|
|
<Space
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_weight="1" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2017-01-03 10:30:27 +11:00
|
|
|
</RelativeLayout>
|