2017-01-07 23:24:02 +01:00
<?xml version="1.0" encoding="utf-8"?>
2018-12-17 15:25:35 +01:00
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android= "http://schemas.android.com/apk/res/android"
2017-01-16 19:15:42 +01:00
xmlns:app="http://schemas.android.com/apk/res-auto"
2017-11-01 20:59:29 +01:00
xmlns:tools="http://schemas.android.com/tools"
2019-12-19 19:09:40 +01:00
android:id="@+id/activityCompose"
2017-01-16 19:15:42 +01:00
android:layout_width="match_parent"
2017-03-07 14:09:33 +01:00
android:layout_height="match_parent">
2017-01-07 23:24:02 +01:00
2018-12-17 15:25:35 +01:00
<androidx.appcompat.widget.Toolbar
2018-04-13 22:37:21 +02:00
android:id="@+id/toolbar"
2017-01-16 19:15:42 +01:00
android:layout_width="match_parent"
2020-05-11 16:44:32 +02:00
android:layout_height="wrap_content"
2018-04-13 22:37:21 +02:00
android:layout_marginBottom="8dp"
android:background="@android:color/transparent">
2017-03-10 18:38:49 +01:00
2019-05-26 08:46:08 +02:00
<ImageView
2018-04-13 22:37:21 +02:00
android:id="@+id/composeAvatar"
android:layout_width="?attr/actionBarSize"
2017-03-07 14:09:33 +01:00
android:layout_height="?attr/actionBarSize"
2018-04-13 22:37:21 +02:00
android:layout_gravity="end"
android:padding="8dp"
tools:ignore="ContentDescription" />
<!-- content description will be set in code -->
2019-06-24 10:33:05 +02:00
<androidx.appcompat.widget.AppCompatButton
android:id="@+id/atButton"
2020-01-30 21:37:28 +01:00
style="@style/TuskyImageButton"
2019-06-24 10:33:05 +02:00
android:layout_width="40dp"
2020-05-11 16:44:32 +02:00
android:layout_height="wrap_content"
2019-06-24 10:33:05 +02:00
android:layout_gravity="end"
android:padding="8dp"
android:text="@string/at_symbol"
android:textColor="?android:textColorTertiary"
android:textSize="?attr/status_text_large"
2019-12-19 19:09:40 +01:00
android:textStyle="bold" />
2019-06-24 10:33:05 +02:00
<androidx.appcompat.widget.AppCompatButton
android:id="@+id/hashButton"
2020-01-30 21:37:28 +01:00
style="@style/TuskyImageButton"
2019-06-24 10:33:05 +02:00
android:layout_width="40dp"
2020-05-11 16:44:32 +02:00
android:layout_height="wrap_content"
2019-06-24 10:33:05 +02:00
android:layout_gravity="end"
android:padding="8dp"
android:text="@string/hash_symbol"
android:textColor="?android:textColorTertiary"
android:textSize="?attr/status_text_large"
2019-12-19 19:09:40 +01:00
android:textStyle="bold" />
2018-12-17 15:25:35 +01:00
</androidx.appcompat.widget.Toolbar>
2017-11-01 20:59:29 +01:00
2018-12-17 15:25:35 +01:00
<androidx.core.widget.NestedScrollView
2018-04-13 22:37:21 +02:00
android:layout_width="match_parent"
2018-05-16 19:14:53 +02:00
android:layout_height="@dimen/compose_activity_scrollview_height"
2018-12-17 15:25:35 +01:00
android:layout_marginTop="?attr/actionBarSize"
android:layout_marginBottom="52dp">
2017-11-01 20:59:29 +01:00
2017-04-21 07:08:38 +02:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-11-01 20:59:29 +01:00
android:orientation="vertical">
2017-04-21 07:08:38 +02:00
2018-04-13 22:37:21 +02:00
<TextView
android:id="@+id/composeReplyView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="16dp"
android:layout_marginRight="16dp"
2018-12-17 15:25:35 +01:00
android:layout_marginBottom="6dp"
2018-04-13 22:37:21 +02:00
android:drawablePadding="6dp"
android:textSize="?attr/status_text_small"
android:textStyle="bold"
android:visibility="gone"
tools:text="Reply to @username"
tools:visibility="visible" />
2022-04-26 18:50:58 +02:00
<TextView
2018-04-13 22:37:21 +02:00
android:id="@+id/composeReplyContentView"
2017-04-21 07:08:38 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2018-04-13 22:37:21 +02:00
android:layout_marginBottom="2dp"
2020-01-30 21:37:28 +01:00
android:background="?attr/colorBackgroundAccent"
2018-04-13 22:37:21 +02:00
android:lineSpacingMultiplier="1.1"
2017-04-21 07:08:38 +02:00
android:paddingLeft="16dp"
2018-04-13 22:37:21 +02:00
android:paddingTop="4dp"
2018-12-17 15:25:35 +01:00
android:paddingRight="16dp"
android:paddingBottom="4dp"
2018-04-13 22:37:21 +02:00
android:textSize="?attr/status_text_small"
android:visibility="gone"
tools:text="Post content which may be preeettyy long, so please, make sure there's enough room for everything, okay? Not kidding. I wish Eugen answered me more often, sigh."
tools:visibility="visible" />
2017-04-21 07:08:38 +02:00
2018-04-13 22:37:21 +02:00
<LinearLayout
android:id="@+id/composeContentWarningBar"
2017-04-21 07:08:38 +02:00
android:layout_width="match_parent"
2018-04-13 22:37:21 +02:00
android:layout_height="wrap_content"
android:orientation="vertical">
2017-04-21 07:08:38 +02:00
2022-04-26 18:50:58 +02:00
<androidx.emoji2.widget.EmojiEditText
2018-04-13 22:37:21 +02:00
android:id="@+id/composeContentWarningField"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:background="@android:color/transparent"
android:hint="@string/hint_content_warning"
android:inputType="text|textCapSentences"
android:lineSpacingMultiplier="1.1"
android:maxLines="1"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:textColorHint="?android:attr/textColorTertiary"
android:textSize="?attr/status_text_medium" />
2017-04-21 07:08:38 +02:00
2018-04-13 22:37:21 +02:00
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginTop="8dp"
android:background="?android:attr/listDivider" />
</LinearLayout>
2017-01-07 23:24:02 +01:00
2019-12-19 19:09:40 +01:00
<com.keylesspalace.tusky.components.compose.view.EditTextTyped
2018-04-13 22:37:21 +02:00
android:id="@+id/composeEditField"
2017-05-03 00:17:54 +02:00
android:layout_width="match_parent"
2018-04-13 22:37:21 +02:00
android:layout_height="wrap_content"
android:background="@null"
2017-11-01 20:59:29 +01:00
android:completionThreshold="2"
android:dropDownWidth="wrap_content"
2017-05-03 00:17:54 +02:00
android:hint="@string/hint_compose"
2017-11-30 20:12:09 +01:00
android:inputType="text|textMultiLine|textCapSentences"
2018-04-13 22:37:21 +02:00
android:lineSpacingMultiplier="1.1"
android:paddingLeft="16dp"
android:paddingTop="8dp"
2018-12-17 15:25:35 +01:00
android:paddingRight="16dp"
android:paddingBottom="8dp"
2018-04-13 22:37:21 +02:00
android:textColorHint="?android:attr/textColorTertiary"
2017-12-01 21:52:10 +01:00
android:textSize="?attr/status_text_large" />
2017-01-07 23:24:02 +01:00
2019-12-19 19:09:40 +01:00
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/composeMediaPreviewBar"
2017-03-07 14:09:33 +01:00
android:layout_width="match_parent"
2017-04-10 16:23:44 +02:00
android:layout_height="wrap_content"
2020-12-09 19:08:16 +01:00
android:scrollbars="none"
android:visibility="gone" />
2017-01-07 23:24:02 +01:00
2019-12-19 19:09:40 +01:00
<com.keylesspalace.tusky.components.compose.view.PollPreviewView
android:id="@+id/pollPreview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2021-01-21 18:57:09 +01:00
android:minWidth="@dimen/poll_preview_min_width"
2019-12-19 19:09:40 +01:00
android:visibility="gone"
tools:visibility="visible" />
2021-01-21 18:57:09 +01:00
2018-04-13 22:37:21 +02:00
</LinearLayout>
2021-01-21 18:57:09 +01:00
2018-12-17 15:25:35 +01:00
</androidx.core.widget.NestedScrollView>
2017-04-10 16:23:44 +02:00
2018-04-13 22:37:21 +02:00
<LinearLayout
android:id="@+id/addMediaBottomSheet"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-01-30 21:37:28 +01:00
android:background="?attr/colorSurface"
2018-04-13 22:37:21 +02:00
android:elevation="12dp"
android:orientation="vertical"
android:paddingStart="16dp"
android:paddingTop="8dp"
2018-12-17 15:25:35 +01:00
android:paddingEnd="16dp"
android:paddingBottom="52dp"
2018-04-13 22:37:21 +02:00
app:behavior_hideable="true"
app:behavior_peekHeight="0dp"
2018-12-17 15:25:35 +01:00
app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior">
2017-03-07 14:09:33 +01:00
2018-04-13 22:37:21 +02:00
<TextView
2019-12-19 19:09:40 +01:00
android:id="@+id/actionPhotoTake"
2020-01-18 12:13:10 +01:00
android:layout_width="match_parent"
2017-03-10 18:38:49 +01:00
android:layout_height="wrap_content"
2018-04-13 22:37:21 +02:00
android:drawablePadding="8dp"
android:padding="8dp"
android:text="@string/action_photo_take"
android:textSize="?attr/status_text_medium" />
2017-03-10 18:38:49 +01:00
2018-04-13 22:37:21 +02:00
<TextView
2019-12-19 19:09:40 +01:00
android:id="@+id/actionPhotoPick"
2020-01-18 12:13:10 +01:00
android:layout_width="match_parent"
2018-04-13 22:37:21 +02:00
android:layout_height="wrap_content"
android:drawablePadding="8dp"
android:padding="8dp"
android:text="@string/action_add_media"
android:textSize="?attr/status_text_medium" />
2019-08-22 20:30:08 +02:00
<TextView
2019-12-19 19:09:40 +01:00
android:id="@+id/addPollTextActionTextView"
2020-01-18 12:13:10 +01:00
android:layout_width="match_parent"
2019-08-22 20:30:08 +02:00
android:layout_height="wrap_content"
android:drawablePadding="8dp"
android:padding="8dp"
android:text="@string/action_add_poll"
android:textSize="?attr/status_text_medium" />
2018-04-13 22:37:21 +02:00
</LinearLayout>
2017-03-07 14:09:33 +01:00
2020-11-18 21:12:27 +01:00
<com.keylesspalace.tusky.view.EmojiPicker
2018-04-13 22:37:21 +02:00
android:id="@+id/emojiView"
2018-12-17 21:58:52 +01:00
android:layout_width="match_parent"
2018-04-13 22:37:21 +02:00
android:layout_height="wrap_content"
2020-01-30 21:37:28 +01:00
android:background="?attr/colorSurface"
2018-04-13 22:37:21 +02:00
android:elevation="12dp"
android:paddingStart="16dp"
android:paddingTop="8dp"
2018-12-17 15:25:35 +01:00
android:paddingEnd="16dp"
android:paddingBottom="60dp"
2018-04-13 22:37:21 +02:00
app:behavior_hideable="true"
app:behavior_peekHeight="0dp"
2018-12-17 15:25:35 +01:00
app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior" />
2017-03-10 18:38:49 +01:00
2019-12-19 19:09:40 +01:00
<com.keylesspalace.tusky.components.compose.view.ComposeOptionsView
2018-04-13 22:37:21 +02:00
android:id="@+id/composeOptionsBottomSheet"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-01-30 21:37:28 +01:00
android:background="?attr/colorSurface"
2018-04-13 22:37:21 +02:00
android:elevation="12dp"
2020-03-24 21:07:10 +01:00
android:paddingStart="24dp"
android:paddingTop="12dp"
android:paddingEnd="24dp"
android:paddingBottom="60dp"
2018-04-13 22:37:21 +02:00
app:behavior_hideable="true"
app:behavior_peekHeight="0dp"
2018-12-17 15:25:35 +01:00
app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior" />
2017-07-12 08:09:07 +02:00
2019-12-19 19:09:40 +01:00
<com.keylesspalace.tusky.components.compose.view.ComposeScheduleView
2019-10-02 21:28:12 +02:00
android:id="@+id/composeScheduleView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-01-30 21:37:28 +01:00
android:background="?attr/colorSurface"
2019-10-02 21:28:12 +02:00
android:elevation="12dp"
android:paddingStart="16dp"
android:paddingTop="8dp"
android:paddingEnd="16dp"
android:paddingBottom="52dp"
app:behavior_hideable="true"
app:behavior_peekHeight="0dp"
app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior" />
2018-04-13 22:37:21 +02:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
2020-12-09 19:08:16 +01:00
android:animateLayoutChanges="true"
2020-01-30 21:37:28 +01:00
android:background="?attr/colorSurface"
2018-04-13 22:37:21 +02:00
android:elevation="12dp"
android:gravity="center_vertical"
android:paddingStart="8dp"
2018-12-17 15:25:35 +01:00
android:paddingTop="4dp"
android:paddingEnd="8dp"
android:paddingBottom="4dp">
2018-04-13 22:37:21 +02:00
<ImageButton
android:id="@+id/composeAddMediaButton"
2020-01-30 21:37:28 +01:00
style="@style/TuskyImageButton"
2018-04-13 22:37:21 +02:00
android:layout_width="36dp"
android:layout_height="36dp"
android:layout_marginEnd="4dp"
android:contentDescription="@string/action_add_media"
android:padding="4dp"
2020-12-09 19:08:16 +01:00
app:srcCompat="@drawable/ic_attach_file_24dp"
app:tooltipText="@string/action_add_media" />
2018-04-13 22:37:21 +02:00
<ImageButton
android:id="@+id/composeToggleVisibilityButton"
2020-01-30 21:37:28 +01:00
style="@style/TuskyImageButton"
2018-04-13 22:37:21 +02:00
android:layout_width="36dp"
android:layout_height="36dp"
android:layout_marginEnd="4dp"
android:contentDescription="@string/action_toggle_visibility"
android:padding="4dp"
2020-12-09 19:08:16 +01:00
android:tint="?android:attr/textColorTertiary"
app:tooltipText="@string/action_toggle_visibility"
2018-04-13 22:37:21 +02:00
tools:src="@drawable/ic_public_24dp" />
<ImageButton
android:id="@+id/composeHideMediaButton"
2020-01-30 21:37:28 +01:00
style="@style/TuskyImageButton"
2020-01-30 21:17:37 +01:00
android:layout_width="36dp"
android:layout_height="36dp"
2018-04-13 22:37:21 +02:00
android:layout_marginEnd="4dp"
android:contentDescription="@string/action_hide_media"
android:padding="4dp"
2020-12-09 19:08:16 +01:00
app:tooltipText="@string/action_hide_media"
2018-04-13 22:37:21 +02:00
tools:src="@drawable/ic_eye_24dp" />
2019-04-01 19:19:37 +02:00
<ImageButton
2018-04-13 22:37:21 +02:00
android:id="@+id/composeContentWarningButton"
2020-01-30 21:37:28 +01:00
style="@style/TuskyImageButton"
2018-04-13 22:37:21 +02:00
android:layout_width="36dp"
android:layout_height="36dp"
android:layout_marginEnd="4dp"
android:contentDescription="@string/action_content_warning"
android:padding="4dp"
2020-12-09 19:08:16 +01:00
app:srcCompat="@drawable/ic_cw_24dp"
app:tooltipText="@string/action_content_warning" />
2018-04-13 22:37:21 +02:00
<ImageButton
android:id="@+id/composeEmojiButton"
2020-01-30 21:37:28 +01:00
style="@style/TuskyImageButton"
2018-05-16 19:14:53 +02:00
android:layout_width="36dp"
android:layout_height="36dp"
2018-04-13 22:37:21 +02:00
android:layout_marginEnd="4dp"
android:contentDescription="@string/action_emoji_keyboard"
android:padding="4dp"
2020-12-09 19:08:16 +01:00
app:srcCompat="@drawable/ic_emoji_24dp"
app:tooltipText="@string/action_emoji_keyboard" />
2018-04-13 22:37:21 +02:00
2019-10-02 21:28:12 +02:00
<ImageButton
android:id="@+id/composeScheduleButton"
2020-01-30 21:37:28 +01:00
style="@style/TuskyImageButton"
2019-10-02 21:28:12 +02:00
android:layout_width="36dp"
android:layout_height="36dp"
android:layout_marginEnd="4dp"
2022-03-20 20:21:42 +01:00
android:contentDescription="@string/action_schedule_post"
2019-10-02 21:28:12 +02:00
android:padding="4dp"
2020-12-09 19:08:16 +01:00
app:srcCompat="@drawable/ic_access_time"
2022-03-20 20:21:42 +01:00
app:tooltipText="@string/action_schedule_post" />
2019-10-02 21:28:12 +02:00
2018-12-17 15:25:35 +01:00
<Space
2018-04-13 22:37:21 +02:00
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1" />
<TextView
android:id="@+id/composeCharactersLeftView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="?android:textColorTertiary"
2018-04-23 09:26:03 +02:00
android:textSize="?attr/status_text_medium"
2020-10-13 18:30:06 +02:00
android:textStyle="bold"
2018-05-16 19:14:53 +02:00
tools:text="500" />
2018-04-13 22:37:21 +02:00
2019-12-19 19:09:40 +01:00
<com.keylesspalace.tusky.components.compose.view.TootButton
2018-04-13 22:37:21 +02:00
android:id="@+id/composeTootButton"
2018-12-17 15:25:35 +01:00
style="@style/TuskyButton"
2018-04-13 22:37:21 +02:00
android:layout_width="@dimen/toot_button_width"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:textSize="?attr/status_text_medium" />
2017-01-07 23:24:02 +01:00
2017-07-12 08:09:07 +02:00
</LinearLayout>
2017-03-07 14:09:33 +01:00
2018-12-17 15:25:35 +01:00
</androidx.coordinatorlayout.widget.CoordinatorLayout>