2017-03-01 03:38:47 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2019-06-09 16:55:34 +02:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout 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"
|
2017-03-01 03:38:47 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2019-06-09 16:55:34 +02:00
|
|
|
android:paddingTop="8dp"
|
|
|
|
android:paddingBottom="8dp">
|
2017-03-01 03:38:47 +01:00
|
|
|
|
2019-06-09 16:55:34 +02:00
|
|
|
<androidx.constraintlayout.widget.Guideline
|
|
|
|
android:id="@+id/guideBegin"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical"
|
|
|
|
app:layout_constraintGuide_begin="8dp" />
|
|
|
|
|
|
|
|
<androidx.emoji.widget.EmojiTextView
|
|
|
|
android:id="@+id/statusContentWarningDescription"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:lineSpacingMultiplier="1.1"
|
|
|
|
android:textColor="?android:textColorPrimary"
|
|
|
|
android:textSize="?attr/status_text_medium"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintEnd_toEndOf="@id/barrierEnd"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/guideBegin"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:text="content warning which is very long and it doesn't fit"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
2020-01-07 19:40:52 +01:00
|
|
|
<Button
|
2019-06-09 16:55:34 +02:00
|
|
|
android:id="@+id/statusContentWarningButton"
|
2020-01-07 19:40:52 +01:00
|
|
|
style="@style/TuskyButton.Outlined"
|
2019-06-09 16:55:34 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
android:layout_marginBottom="4dp"
|
|
|
|
android:minWidth="150dp"
|
|
|
|
android:minHeight="0dp"
|
|
|
|
android:paddingLeft="16dp"
|
|
|
|
android:paddingTop="4dp"
|
|
|
|
android:paddingRight="16dp"
|
|
|
|
android:paddingBottom="4dp"
|
|
|
|
android:textAllCaps="true"
|
|
|
|
android:textSize="?attr/status_text_medium"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/guideBegin"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/statusContentWarningDescription"
|
2020-01-07 19:40:52 +01:00
|
|
|
tools:text="@string/status_content_warning_show_more"
|
2019-06-09 16:55:34 +02:00
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
<androidx.emoji.widget.EmojiTextView
|
|
|
|
android:id="@+id/statusContent"
|
2017-03-01 03:38:47 +01:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
2019-06-09 16:55:34 +02:00
|
|
|
android:layout_marginEnd="8dp"
|
2017-03-01 03:38:47 +01:00
|
|
|
android:layout_weight="1"
|
2019-06-09 16:55:34 +02:00
|
|
|
android:textColor="?android:textColorPrimary"
|
|
|
|
android:textSize="?attr/status_text_medium"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/barrierEnd"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/guideBegin"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/statusContentWarningButton" />
|
|
|
|
|
2020-01-07 19:40:52 +01:00
|
|
|
<Button
|
2019-06-09 16:55:34 +02:00
|
|
|
android:id="@+id/buttonToggleContent"
|
2020-01-07 19:40:52 +01:00
|
|
|
style="@style/TuskyButton.Outlined"
|
2019-06-09 16:55:34 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
android:layout_marginBottom="4dp"
|
|
|
|
android:minWidth="150dp"
|
|
|
|
android:minHeight="0dp"
|
|
|
|
android:paddingLeft="16dp"
|
|
|
|
android:paddingTop="4dp"
|
|
|
|
android:paddingRight="16dp"
|
|
|
|
android:paddingBottom="4dp"
|
|
|
|
android:textAllCaps="true"
|
|
|
|
android:textSize="?attr/status_text_medium"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/guideBegin"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/statusContent"
|
2020-01-07 19:40:52 +01:00
|
|
|
tools:text="@string/status_content_show_less"
|
2019-06-09 16:55:34 +02:00
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:id="@+id/status_media_preview_container"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="@dimen/status_media_preview_margin_top"
|
|
|
|
android:layout_marginEnd="8dp"
|
2020-01-03 20:22:16 +01:00
|
|
|
android:background="@drawable/media_preview_outline"
|
2019-06-09 16:55:34 +02:00
|
|
|
app:layout_constraintEnd_toStartOf="@id/barrierEnd"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/guideBegin"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/buttonToggleContent"
|
2019-12-30 21:37:20 +01:00
|
|
|
tools:visibility="visible">
|
2019-06-09 16:55:34 +02:00
|
|
|
|
|
|
|
<com.keylesspalace.tusky.view.MediaPreviewImageView
|
|
|
|
android:id="@+id/status_media_preview_0"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="@dimen/status_media_preview_height"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/status_media_preview_1"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:ignore="ContentDescription" />
|
|
|
|
|
|
|
|
<com.keylesspalace.tusky.view.MediaPreviewImageView
|
|
|
|
android:id="@+id/status_media_preview_1"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="@dimen/status_media_preview_height"
|
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/status_media_preview_0"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:ignore="ContentDescription" />
|
|
|
|
|
|
|
|
|
|
|
|
<com.keylesspalace.tusky.view.MediaPreviewImageView
|
|
|
|
android:id="@+id/status_media_preview_2"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="@dimen/status_media_preview_height"
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/status_media_preview_3"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/status_media_preview_0"
|
|
|
|
tools:ignore="ContentDescription" />
|
|
|
|
|
|
|
|
<com.keylesspalace.tusky.view.MediaPreviewImageView
|
|
|
|
android:id="@+id/status_media_preview_3"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="@dimen/status_media_preview_height"
|
|
|
|
android:layout_marginStart="4dp"
|
|
|
|
android:layout_marginTop="4dp"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/status_media_preview_2"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/status_media_preview_1"
|
|
|
|
tools:ignore="ContentDescription" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/status_media_overlay_0"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:scaleType="center"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/status_media_preview_0"
|
|
|
|
app:layout_constraintEnd_toEndOf="@+id/status_media_preview_0"
|
|
|
|
app:layout_constraintStart_toStartOf="@+id/status_media_preview_0"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/status_media_preview_0"
|
2020-01-30 21:37:28 +01:00
|
|
|
app:srcCompat="@drawable/ic_play_indicator"
|
2019-06-09 16:55:34 +02:00
|
|
|
tools:ignore="ContentDescription" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/status_media_overlay_1"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:scaleType="center"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/status_media_preview_1"
|
|
|
|
app:layout_constraintEnd_toEndOf="@+id/status_media_preview_1"
|
|
|
|
app:layout_constraintStart_toStartOf="@+id/status_media_preview_1"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/status_media_preview_1"
|
2020-01-30 21:37:28 +01:00
|
|
|
app:srcCompat="@drawable/ic_play_indicator"
|
2019-06-09 16:55:34 +02:00
|
|
|
tools:ignore="ContentDescription" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/status_media_overlay_2"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:scaleType="center"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/status_media_preview_2"
|
|
|
|
app:layout_constraintEnd_toEndOf="@+id/status_media_preview_2"
|
|
|
|
app:layout_constraintStart_toStartOf="@+id/status_media_preview_2"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/status_media_preview_2"
|
2020-01-30 21:37:28 +01:00
|
|
|
app:srcCompat="@drawable/ic_play_indicator"
|
2019-06-09 16:55:34 +02:00
|
|
|
tools:ignore="ContentDescription" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/status_media_overlay_3"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:scaleType="center"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@+id/status_media_preview_3"
|
|
|
|
app:layout_constraintEnd_toEndOf="@+id/status_media_preview_3"
|
|
|
|
app:layout_constraintStart_toStartOf="@+id/status_media_preview_3"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/status_media_preview_3"
|
2020-01-30 21:37:28 +01:00
|
|
|
app:srcCompat="@drawable/ic_play_indicator"
|
2019-06-09 16:55:34 +02:00
|
|
|
tools:ignore="ContentDescription" />
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@+id/status_sensitive_media_button"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:alpha="0.7"
|
|
|
|
android:contentDescription="@null"
|
|
|
|
android:padding="@dimen/status_sensitive_media_button_padding"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintLeft_toLeftOf="@+id/status_media_preview_container"
|
|
|
|
app:layout_constraintTop_toTopOf="@+id/status_media_preview_container"
|
2019-12-30 21:37:20 +01:00
|
|
|
app:srcCompat="@drawable/ic_eye_24dp"
|
2020-12-09 19:08:16 +01:00
|
|
|
app:tint="@color/white"
|
|
|
|
tools:visibility="visible" />
|
2019-06-09 16:55:34 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/status_sensitive_media_warning"
|
2019-12-30 21:37:20 +01:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="@drawable/media_warning_bg"
|
2019-06-09 16:55:34 +02:00
|
|
|
android:gravity="center"
|
|
|
|
android:lineSpacingMultiplier="1.2"
|
|
|
|
android:orientation="vertical"
|
2019-12-30 21:37:20 +01:00
|
|
|
android:paddingLeft="12dp"
|
|
|
|
android:paddingTop="8dp"
|
|
|
|
android:paddingRight="12dp"
|
|
|
|
android:paddingBottom="8dp"
|
2019-06-09 16:55:34 +02:00
|
|
|
android:textAlignment="center"
|
2020-01-30 21:37:28 +01:00
|
|
|
android:textColor="?android:attr/textColorSecondary"
|
2019-06-09 16:55:34 +02:00
|
|
|
android:textSize="?attr/status_text_medium"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/status_media_label"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?attr/selectableItemBackground"
|
|
|
|
android:drawablePadding="4dp"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:textSize="?attr/status_text_medium"
|
|
|
|
android:visibility="gone"
|
2020-12-09 19:08:16 +01:00
|
|
|
app:drawableTint="?android:attr/textColorTertiary"
|
2019-06-09 16:55:34 +02:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
|
|
|
|
<androidx.emoji.widget.EmojiTextView
|
|
|
|
android:id="@+id/status_poll_option_result_0"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="6dp"
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
android:background="@drawable/poll_option_background"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:lines="1"
|
|
|
|
android:paddingStart="6dp"
|
|
|
|
android:paddingTop="2dp"
|
|
|
|
android:paddingEnd="6dp"
|
|
|
|
android:paddingBottom="2dp"
|
|
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
|
|
android:textSize="?attr/status_text_medium"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/barrierEnd"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/guideBegin"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/status_media_preview_container"
|
|
|
|
tools:text="40%" />
|
|
|
|
|
|
|
|
<androidx.emoji.widget.EmojiTextView
|
|
|
|
android:id="@+id/status_poll_option_result_1"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="6dp"
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
android:background="@drawable/poll_option_background"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:lines="1"
|
|
|
|
android:paddingStart="6dp"
|
|
|
|
android:paddingTop="2dp"
|
|
|
|
android:paddingEnd="6dp"
|
|
|
|
android:paddingBottom="2dp"
|
|
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
|
|
android:textSize="?attr/status_text_medium"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/barrierEnd"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/guideBegin"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/status_poll_option_result_0"
|
|
|
|
tools:text="10%" />
|
|
|
|
|
|
|
|
<androidx.emoji.widget.EmojiTextView
|
|
|
|
android:id="@+id/status_poll_option_result_2"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="6dp"
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
android:background="@drawable/poll_option_background"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:lines="1"
|
|
|
|
android:paddingStart="6dp"
|
|
|
|
android:paddingTop="2dp"
|
|
|
|
android:paddingEnd="6dp"
|
|
|
|
android:paddingBottom="2dp"
|
|
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
|
|
android:textSize="?attr/status_text_medium"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/barrierEnd"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/guideBegin"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/status_poll_option_result_1"
|
|
|
|
tools:text="20%" />
|
|
|
|
|
|
|
|
<androidx.emoji.widget.EmojiTextView
|
|
|
|
android:id="@+id/status_poll_option_result_3"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="6dp"
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
android:background="@drawable/poll_option_background"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:lines="1"
|
|
|
|
android:paddingStart="6dp"
|
|
|
|
android:paddingTop="2dp"
|
|
|
|
android:paddingEnd="6dp"
|
|
|
|
android:paddingBottom="2dp"
|
|
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
|
|
android:textSize="?attr/status_text_medium"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/barrierEnd"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/guideBegin"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/status_poll_option_result_2"
|
|
|
|
tools:text="30%" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/status_poll_description"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="6dp"
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
app:layout_constraintEnd_toEndOf="@id/barrierEnd"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/guideBegin"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/status_poll_option_result_3"
|
|
|
|
tools:text="7 votes • 7 hours remaining" />
|
|
|
|
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.Barrier
|
|
|
|
android:id="@+id/barrierEnd"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:barrierDirection="start"
|
|
|
|
app:constraint_referenced_ids="statusSelection,timestampInfo" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/timestampInfo"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginEnd="16dp"
|
|
|
|
android:importantForAccessibility="no"
|
|
|
|
android:textColor="?android:textColorTertiary"
|
|
|
|
android:textSize="?attr/status_text_medium"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="@id/barrierEnd"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:text="21 Dec 2018 18:45" />
|
2017-03-01 03:38:47 +01:00
|
|
|
|
2017-03-01 06:36:15 +01:00
|
|
|
<CheckBox
|
2019-06-09 16:55:34 +02:00
|
|
|
android:id="@+id/statusSelection"
|
2017-03-01 03:38:47 +01:00
|
|
|
android:layout_width="wrap_content"
|
2017-03-01 06:36:15 +01:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
2019-06-09 16:55:34 +02:00
|
|
|
android:layout_margin="16dp"
|
2020-01-30 21:37:28 +01:00
|
|
|
app:buttonTint="@color/compound_button_color"
|
2019-06-09 16:55:34 +02:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/timestampInfo" />
|
2017-03-01 03:38:47 +01:00
|
|
|
|
2019-06-09 16:55:34 +02:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|