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"
|
|
|
|
android:layout_width="match_parent"
|
2017-01-23 16:19:30 +11:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:id="@+id/status_container">
|
2017-01-03 10:30:27 +11:00
|
|
|
|
2017-02-13 16:18:17 +11:00
|
|
|
<RelativeLayout
|
|
|
|
android:layout_width="match_parent"
|
2017-01-03 10:30:27 +11:00
|
|
|
android:layout_height="wrap_content"
|
2017-02-13 16:18:17 +11:00
|
|
|
android:id="@+id/status_reblogged_bar"
|
2017-01-03 10:30:27 +11:00
|
|
|
android:layout_alignParentTop="true"
|
2017-02-13 16:18:17 +11:00
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_marginTop="@dimen/status_reblogged_bar_top_padding">
|
2017-01-03 10:30:27 +11:00
|
|
|
|
2017-02-13 16:18:17 +11:00
|
|
|
<ImageView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:srcCompat="@drawable/ic_reblogged"
|
|
|
|
android:id="@+id/status_reblogged_icon"
|
|
|
|
android:paddingRight="@dimen/status_avatar_padding"
|
|
|
|
android:paddingLeft="@dimen/status_reblogged_icon_left_padding" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:id="@+id/status_reblogged"
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_toRightOf="@id/status_reblogged_icon" />
|
|
|
|
|
|
|
|
</RelativeLayout>
|
2017-01-03 10:30:27 +11:00
|
|
|
|
|
|
|
<com.android.volley.toolbox.NetworkImageView
|
2017-02-13 16:18:17 +11:00
|
|
|
android:layout_width="64dp"
|
|
|
|
android:layout_height="64dp"
|
|
|
|
android:scaleType="fitCenter"
|
2017-01-03 10:30:27 +11:00
|
|
|
android:id="@+id/status_avatar"
|
2017-02-13 16:18:17 +11:00
|
|
|
android:layout_below="@+id/status_reblogged_bar"
|
2017-01-03 10:30:27 +11:00
|
|
|
android:padding="@dimen/status_avatar_padding" />
|
|
|
|
|
2017-02-02 09:01:34 +11:00
|
|
|
<com.keylesspalace.tusky.FlowLayout
|
2017-01-03 10:30:27 +11:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_toRightOf="@+id/status_avatar"
|
|
|
|
android:layout_toEndOf="@+id/status_avatar"
|
|
|
|
android:id="@+id/status_name_bar"
|
2017-02-13 16:18:17 +11:00
|
|
|
android:layout_below="@+id/status_reblogged_bar"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:paddingTop="@dimen/status_avatar_padding">
|
2017-01-03 10:30:27 +11:00
|
|
|
|
|
|
|
<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"
|
2017-02-13 16:18:17 +11:00
|
|
|
android:paddingLeft="@dimen/status_username_left_margin"
|
|
|
|
android:textColor="?attr/status_text_color_secondary" />
|
2017-01-03 10:30:27 +11:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/status_since_created"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-02-13 16:18:17 +11:00
|
|
|
android:paddingLeft="@dimen/status_since_created_left_margin"
|
|
|
|
android:textColor="?attr/status_text_color_secondary" />
|
2017-01-28 14:33:43 +11:00
|
|
|
|
2017-02-02 09:01:34 +11:00
|
|
|
</com.keylesspalace.tusky.FlowLayout>
|
2017-01-03 10:30:27 +11:00
|
|
|
|
2017-02-02 09:01:34 +11:00
|
|
|
<com.keylesspalace.tusky.FlowLayout
|
2017-02-01 10:42:05 +11:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:id="@+id/status_content_warning_bar"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:layout_toRightOf="@+id/status_avatar"
|
|
|
|
android:layout_toEndOf="@+id/status_avatar"
|
|
|
|
android:layout_below="@+id/status_name_bar"
|
|
|
|
android:layout_marginBottom="8dp">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-02-02 09:01:34 +11:00
|
|
|
android:id="@+id/status_content_warning_description"
|
|
|
|
android:paddingRight="8dp"/>
|
2017-02-01 10:42:05 +11:00
|
|
|
|
|
|
|
<ToggleButton
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:minWidth="0dp"
|
|
|
|
android:minHeight="0dp"
|
|
|
|
android:id="@+id/status_content_warning_button"
|
|
|
|
android:textOn="@string/status_content_warning_show_less"
|
|
|
|
android:textOff="@string/status_content_warning_show_more"
|
2017-02-13 16:18:17 +11:00
|
|
|
android:background="?attr/content_warning_button"
|
2017-02-02 09:01:34 +11:00
|
|
|
android:padding="4dp" />
|
2017-02-01 10:42:05 +11:00
|
|
|
|
2017-02-02 09:01:34 +11:00
|
|
|
</com.keylesspalace.tusky.FlowLayout>
|
2017-02-01 10:42:05 +11:00
|
|
|
|
2017-01-03 10:30:27 +11:00
|
|
|
<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"
|
2017-02-01 10:42:05 +11:00
|
|
|
android:layout_below="@+id/status_content_warning_bar" />
|
2017-01-03 10:30:27 +11:00
|
|
|
|
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">
|
|
|
|
|
2017-01-11 07:41:50 +11:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/status_sensitive_media_warning"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="@dimen/status_media_preview_top_margin"
|
|
|
|
android:padding="8dp"
|
|
|
|
android:background="@color/sensitive_media_warning_background"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:visibility="gone">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textAlignment="center"
|
|
|
|
android:text="@string/status_sensitive_media_title"
|
|
|
|
android:textColor="@android:color/white"
|
|
|
|
android:textStyle="normal|italic" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textAlignment="center"
|
|
|
|
android:text="@string/status_sensitive_media_directions"
|
|
|
|
android:textColor="@android:color/white" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2017-01-10 17:14:27 +11:00
|
|
|
<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"
|
2017-01-17 05:15:42 +11:00
|
|
|
android:layout_height="@dimen/status_media_preview_height"
|
2017-01-10 17:14:27 +11:00
|
|
|
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"
|
2017-01-17 05:15:42 +11:00
|
|
|
android:layout_height="@dimen/status_media_preview_height"
|
2017-01-10 17:14:27 +11:00
|
|
|
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"
|
2017-01-17 05:15:42 +11:00
|
|
|
android:layout_height="@dimen/status_media_preview_height"
|
2017-01-11 07:41:50 +11:00
|
|
|
android:layout_weight="1"
|
|
|
|
android:scaleType="centerCrop" />
|
2017-01-10 17:14:27 +11:00
|
|
|
|
|
|
|
<com.android.volley.toolbox.NetworkImageView
|
|
|
|
android:id="@+id/status_media_preview_3"
|
|
|
|
android:layout_width="wrap_content"
|
2017-01-17 05:15:42 +11:00
|
|
|
android:layout_height="@dimen/status_media_preview_height"
|
2017-01-10 17:14:27 +11:00
|
|
|
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"
|
2017-02-13 16:18:17 +11:00
|
|
|
style="?attr/image_button_style"
|
2017-01-08 09:24:02 +11:00
|
|
|
android:layout_width="32dp"
|
|
|
|
android:layout_height="32dp" />
|
|
|
|
|
|
|
|
<Space
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_weight="1" />
|
|
|
|
|
2017-02-13 16:18:17 +11:00
|
|
|
<com.keylesspalace.tusky.StatusButton
|
|
|
|
app:srcCompat="@drawable/ic_reblog"
|
2017-01-08 09:24:02 +11:00
|
|
|
android:id="@+id/status_reblog"
|
2017-02-13 16:18:17 +11:00
|
|
|
style="?attr/reblog_button_style"
|
2017-01-08 09:24:02 +11:00
|
|
|
android:layout_width="32dp"
|
|
|
|
android:layout_height="32dp" />
|
|
|
|
|
|
|
|
<Space
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_weight="1" />
|
|
|
|
|
2017-02-13 16:18:17 +11:00
|
|
|
<com.keylesspalace.tusky.StatusButton
|
2017-01-08 09:24:02 +11:00
|
|
|
android:layout_width="32dp"
|
|
|
|
android:layout_height="32dp"
|
2017-02-13 16:18:17 +11:00
|
|
|
style="?attr/favourite_button_style"
|
|
|
|
app:srcCompat="@drawable/ic_favourite"
|
|
|
|
android:id="@+id/status_favourite" />
|
2017-01-08 09:24:02 +11:00
|
|
|
|
|
|
|
<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"
|
2017-02-13 16:18:17 +11:00
|
|
|
style="?attr/image_button_style"
|
2017-01-08 09:24:02 +11:00
|
|
|
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>
|