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"
|
2017-03-07 11:31:05 +11:00
|
|
|
android:paddingLeft="16dp"
|
|
|
|
android:paddingRight="16dp"
|
2017-01-23 16:19:30 +11:00
|
|
|
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"
|
2017-03-07 11:31:05 +11:00
|
|
|
app:srcCompat="@drawable/ic_repeat_24dp"
|
2017-02-13 16:18:17 +11:00
|
|
|
android:id="@+id/status_reblogged_icon"
|
2017-03-07 11:31:05 +11:00
|
|
|
android:paddingRight="10dp"
|
|
|
|
android:paddingLeft="24dp"
|
2017-04-12 14:21:52 +10:00
|
|
|
android:tint="?android:textColorTertiary"
|
|
|
|
android:contentDescription="@null" />
|
2017-02-13 16:18:17 +11:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:id="@+id/status_reblogged"
|
2017-03-07 11:31:05 +11:00
|
|
|
android:textColor="?android:textColorTertiary"
|
2017-02-13 16:18:17 +11:00
|
|
|
android:layout_centerVertical="true"
|
|
|
|
android:layout_toRightOf="@id/status_reblogged_icon" />
|
|
|
|
|
|
|
|
</RelativeLayout>
|
2017-01-03 10:30:27 +11:00
|
|
|
|
2017-03-07 11:31:05 +11:00
|
|
|
<ImageView
|
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_height="48dp"
|
2017-02-13 16:18:17 +11:00
|
|
|
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-03-14 02:19:34 +11:00
|
|
|
android:layout_marginTop="11dp"
|
2017-04-12 14:21:52 +10:00
|
|
|
android:layout_marginRight="10dp"
|
|
|
|
android:contentDescription="@null" />
|
2017-01-03 10:30:27 +11:00
|
|
|
|
2017-03-07 11:31:05 +11:00
|
|
|
<RelativeLayout
|
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"
|
2017-03-07 11:31:05 +11:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:paddingBottom="4dp"
|
2017-02-13 16:18:17 +11:00
|
|
|
android:paddingTop="@dimen/status_avatar_padding">
|
2017-01-03 10:30:27 +11:00
|
|
|
|
2017-03-08 12:44:51 +11:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/status_since_created"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentRight="true"
|
2017-04-12 14:21:52 +10:00
|
|
|
android:text="20m"
|
2017-03-08 12:44:51 +11:00
|
|
|
android:textColor="?android:textColorSecondary" />
|
|
|
|
|
2017-03-07 11:31:05 +11:00
|
|
|
<LinearLayout
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:layout_width="fill_parent"
|
2017-03-08 12:44:51 +11:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentLeft="true"
|
|
|
|
android:layout_toLeftOf="@id/status_since_created">
|
|
|
|
|
2017-03-07 11:31:05 +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:textColor="?android:textColorPrimary"
|
|
|
|
android:textStyle="normal|bold"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:text="Name"
|
|
|
|
android:paddingRight="@dimen/status_display_name_right_padding" />
|
2017-01-03 10:30:27 +11:00
|
|
|
|
2017-03-07 11:31:05 +11:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/status_username"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textColor="?android:textColorSecondary"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:text="Username is the slongest thing ever i am totally going" />
|
2017-01-03 10:30:27 +11:00
|
|
|
|
2017-03-08 12:44:51 +11:00
|
|
|
</LinearLayout>
|
2017-01-28 14:33:43 +11:00
|
|
|
|
2017-03-07 11:31:05 +11:00
|
|
|
</RelativeLayout>
|
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"
|
2017-03-07 11:31:05 +11:00
|
|
|
android:layout_marginBottom="4dp">
|
2017-02-01 10:42:05 +11:00
|
|
|
|
|
|
|
<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"
|
2017-03-07 11:31:05 +11:00
|
|
|
android:text="Hello world"
|
|
|
|
android:textColor="?android:textColorPrimary"
|
2017-02-02 09:01:34 +11:00
|
|
|
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-03-07 11:31:05 +11:00
|
|
|
android:padding="3dp"
|
|
|
|
android:textSize="12sp"
|
2017-03-07 21:59:54 +11:00
|
|
|
android:textAllCaps="true"
|
2017-03-07 11:31:05 +11:00
|
|
|
android:background="?attr/content_warning_button" />
|
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"
|
2017-03-07 11:31:05 +11:00
|
|
|
android:textColor="?android:textColorPrimary"
|
2017-03-07 21:59:54 +11:00
|
|
|
android:layout_marginBottom="4dp"
|
2017-01-03 10:30:27 +11:00
|
|
|
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-03-07 21:59:54 +11:00
|
|
|
<FrameLayout
|
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"
|
|
|
|
android:layout_below="@+id/status_content"
|
2017-01-10 17:14:27 +11:00
|
|
|
android:layout_toRightOf="@+id/status_avatar">
|
|
|
|
|
2017-03-07 21:59:54 +11:00
|
|
|
<LinearLayout
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
2017-04-12 14:21:52 +10:00
|
|
|
|
2017-03-07 21:59:54 +11:00
|
|
|
<LinearLayout
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_marginBottom="2dp"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/status_media_preview_0"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="@dimen/status_media_preview_height"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_marginRight="2dp"
|
|
|
|
android:scaleType="centerCrop"
|
2017-04-12 14:21:52 +10:00
|
|
|
android:layout_marginTop="@dimen/status_media_preview_top_margin"
|
|
|
|
android:contentDescription="@null" />
|
2017-03-07 21:59:54 +11:00
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/status_media_preview_1"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="@dimen/status_media_preview_height"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_marginLeft="2dp"
|
|
|
|
android:scaleType="centerCrop"
|
2017-04-12 14:21:52 +10:00
|
|
|
android:layout_marginTop="@dimen/status_media_preview_top_margin"
|
|
|
|
android:contentDescription="@null" />
|
|
|
|
|
2017-03-07 21:59:54 +11:00
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_marginTop="2dp"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/status_media_preview_2"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="@dimen/status_media_preview_height"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_marginRight="2dp"
|
2017-04-12 14:21:52 +10:00
|
|
|
android:scaleType="centerCrop"
|
|
|
|
android:contentDescription="@null" />
|
2017-03-07 21:59:54 +11:00
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/status_media_preview_3"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="@dimen/status_media_preview_height"
|
|
|
|
android:layout_marginLeft="2dp"
|
|
|
|
android:layout_weight="1"
|
2017-04-12 14:21:52 +10:00
|
|
|
android:scaleType="centerCrop"
|
|
|
|
android:contentDescription="@null" />
|
2017-03-07 21:59:54 +11:00
|
|
|
|
|
|
|
</LinearLayout>
|
2017-04-12 14:21:52 +10:00
|
|
|
|
2017-03-07 21:59:54 +11:00
|
|
|
</LinearLayout>
|
|
|
|
|
2017-01-11 07:41:50 +11:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/status_sensitive_media_warning"
|
|
|
|
android:layout_width="match_parent"
|
2017-03-07 21:59:54 +11:00
|
|
|
android:layout_height="match_parent"
|
2017-01-11 07:41:50 +11:00
|
|
|
android:layout_marginTop="@dimen/status_media_preview_top_margin"
|
|
|
|
android:padding="8dp"
|
2017-03-07 21:59:54 +11:00
|
|
|
android:gravity="center"
|
2017-01-11 07:41:50 +11:00
|
|
|
android:orientation="vertical"
|
2017-03-07 21:59:54 +11:00
|
|
|
android:background="?attr/sensitive_media_warning_background_color"
|
2017-01-11 07:41:50 +11:00
|
|
|
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"
|
2017-03-07 21:59:54 +11:00
|
|
|
android:textStyle="bold" />
|
2017-01-11 07:41:50 +11:00
|
|
|
|
|
|
|
<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" />
|
2017-01-10 17:14:27 +11:00
|
|
|
</LinearLayout>
|
2017-03-07 21:59:54 +11:00
|
|
|
</FrameLayout>
|
2017-01-10 17:14:27 +11:00
|
|
|
|
|
|
|
<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"
|
2017-03-08 08:23:17 +11:00
|
|
|
android:clipChildren="false"
|
|
|
|
android:clipToPadding="false"
|
2017-01-08 09:24:02 +11:00
|
|
|
android:paddingBottom="8dp"
|
2017-03-07 21:59:54 +11:00
|
|
|
android:paddingTop="6dp">
|
2017-01-08 09:24:02 +11:00
|
|
|
|
|
|
|
<ImageButton
|
2017-03-07 11:31:05 +11:00
|
|
|
app:srcCompat="@drawable/ic_reply_24dp"
|
2017-01-08 09:24:02 +11:00
|
|
|
android:id="@+id/status_reply"
|
|
|
|
android:layout_width="32dp"
|
2017-02-17 05:52:55 +11:00
|
|
|
android:layout_height="32dp"
|
2017-04-12 14:21:52 +10:00
|
|
|
style="?attr/image_button_style"
|
|
|
|
android:contentDescription="@string/action_reply" />
|
2017-01-08 09:24:02 +11:00
|
|
|
|
|
|
|
<Space
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_weight="1" />
|
|
|
|
|
2017-03-08 08:23:17 +11:00
|
|
|
<com.varunest.sparkbutton.SparkButton
|
2017-01-08 09:24:02 +11:00
|
|
|
android:id="@+id/status_reblog"
|
2017-03-08 08:23:17 +11:00
|
|
|
app:sparkbutton_activeImage="@drawable/reblog_active"
|
2017-03-08 15:52:17 +11:00
|
|
|
app:sparkbutton_inActiveImage="?attr/status_reblog_inactive_drawable"
|
2017-03-08 08:23:17 +11:00
|
|
|
app:sparkbutton_iconSize="28dp"
|
|
|
|
android:layout_gravity="center"
|
|
|
|
app:sparkbutton_primaryColor="@color/status_reblog_button_marked_dark"
|
|
|
|
app:sparkbutton_secondaryColor="@color/status_reblog_button_marked_light"
|
2017-01-08 09:24:02 +11:00
|
|
|
android:layout_width="32dp"
|
2017-04-12 14:21:52 +10:00
|
|
|
android:layout_height="32dp"
|
|
|
|
android:contentDescription="@string/action_reblog" />
|
2017-01-08 09:24:02 +11:00
|
|
|
|
|
|
|
<Space
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_weight="1" />
|
|
|
|
|
2017-03-08 08:23:17 +11:00
|
|
|
<com.varunest.sparkbutton.SparkButton
|
2017-01-08 09:24:02 +11:00
|
|
|
android:layout_width="32dp"
|
|
|
|
android:layout_height="32dp"
|
2017-03-29 15:22:14 +11:00
|
|
|
app:sparkbutton_activeImage="?attr/status_favourite_active_drawable"
|
2017-03-08 15:52:17 +11:00
|
|
|
app:sparkbutton_inActiveImage="?attr/status_favourite_inactive_drawable"
|
2017-03-08 08:23:17 +11:00
|
|
|
app:sparkbutton_iconSize="28dp"
|
|
|
|
android:layout_gravity="center"
|
2017-03-29 15:22:14 +11:00
|
|
|
app:sparkbutton_primaryColor="@color/status_favourite_button_marked_dark"
|
|
|
|
app:sparkbutton_secondaryColor="@color/status_favourite_button_marked_light"
|
2017-04-12 14:21:52 +10:00
|
|
|
android:id="@+id/status_favourite"
|
|
|
|
android:contentDescription="@string/action_favourite" />
|
2017-01-08 09:24:02 +11:00
|
|
|
|
|
|
|
<Space
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_weight="1" />
|
|
|
|
|
|
|
|
<ImageButton
|
2017-03-07 11:31:05 +11:00
|
|
|
app:srcCompat="@drawable/ic_more_horiz_24dp"
|
2017-01-08 09:24:02 +11:00
|
|
|
android:id="@+id/status_more"
|
|
|
|
android:layout_width="32dp"
|
2017-03-08 15:52:17 +11:00
|
|
|
android:layout_height="32dp"
|
2017-04-12 14:21:52 +10:00
|
|
|
style="?attr/image_button_style"
|
|
|
|
android:contentDescription="@string/action_more" />
|
2017-01-08 09:24:02 +11:00
|
|
|
|
|
|
|
<Space
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:layout_weight="1" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2017-01-03 10:30:27 +11:00
|
|
|
</RelativeLayout>
|