|
|
@ -18,96 +18,78 @@
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:id="@+id/cardview_container"
|
|
|
|
android:id="@+id/cardview_container"
|
|
|
|
|
|
|
|
style="@style/Widget.Material3.CardView.Elevated"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
|
|
android:layout_marginHorizontal="6dp"
|
|
|
|
|
|
|
|
android:layout_marginTop="6dp"
|
|
|
|
android:clipChildren="false"
|
|
|
|
android:clipChildren="false"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:clipToPadding="false">
|
|
|
|
android:clipToPadding="false"
|
|
|
|
|
|
|
|
app:cardElevation="5dp"
|
|
|
|
|
|
|
|
app:strokeWidth="0dp">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:clipToPadding="false"
|
|
|
|
android:clipToPadding="false"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:orientation="vertical">
|
|
|
|
android:paddingBottom="6dp">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
|
|
|
android:id="@+id/add_remove_status"
|
|
|
|
|
|
|
|
style="@style/Widget.Material3.Button.OutlinedButton.Icon"
|
|
|
|
|
|
|
|
android:layout_width="36dp"
|
|
|
|
|
|
|
|
android:layout_height="36dp"
|
|
|
|
|
|
|
|
android:layout_marginEnd="6dp"
|
|
|
|
|
|
|
|
android:contentDescription="@string/add_status"
|
|
|
|
|
|
|
|
android:padding="0dp"
|
|
|
|
|
|
|
|
app:iconGravity="textStart"
|
|
|
|
|
|
|
|
app:iconPadding="0dp"
|
|
|
|
|
|
|
|
app:icon="@drawable/ic_compose_thread_add_status"
|
|
|
|
|
|
|
|
app:strokeColor="?colorPrimary"
|
|
|
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.textfield.MaterialAutoCompleteTextView
|
|
|
|
<com.google.android.material.textfield.MaterialAutoCompleteTextView
|
|
|
|
android:id="@+id/content_spoiler"
|
|
|
|
android:id="@+id/content_spoiler"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginHorizontal="6dp"
|
|
|
|
android:layout_marginStart="6dp"
|
|
|
|
|
|
|
|
android:layout_marginTop="6dp"
|
|
|
|
android:hint="@string/eg_sensitive_content"
|
|
|
|
android:hint="@string/eg_sensitive_content"
|
|
|
|
android:inputType="textMultiLine|textCapSentences"
|
|
|
|
android:inputType="textMultiLine|textCapSentences"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/add_remove_status" />
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/button_emoji"
|
|
|
|
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
|
|
|
android:id="@+id/add_remove_status"
|
|
|
|
|
|
|
|
style="@style/Fedilab.SmallIconButton"
|
|
|
|
|
|
|
|
android:layout_marginTop="6dp"
|
|
|
|
|
|
|
|
android:layout_marginEnd="6dp"
|
|
|
|
|
|
|
|
android:contentDescription="@string/add_status"
|
|
|
|
|
|
|
|
app:icon="@drawable/ic_compose_thread_add_status"
|
|
|
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
|
|
|
|
<app.fedilab.android.helper.FedilabAutoCompleteTextView
|
|
|
|
<app.fedilab.android.helper.FedilabAutoCompleteTextView
|
|
|
|
android:id="@+id/content"
|
|
|
|
android:id="@+id/content"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginHorizontal="6dp"
|
|
|
|
android:layout_marginStart="6dp"
|
|
|
|
android:focusable="true"
|
|
|
|
android:focusable="true"
|
|
|
|
android:gravity="top|start"
|
|
|
|
android:gravity="top|start"
|
|
|
|
android:inputType="textMultiLine|textCapSentences"
|
|
|
|
android:inputType="textMultiLine|textCapSentences"
|
|
|
|
android:minLines="6"
|
|
|
|
android:minLines="6"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/emoji_container"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/button_emoji"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/content_spoiler" />
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/content_spoiler" />
|
|
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/emoji_container"
|
|
|
|
android:id="@+id/button_emoji"
|
|
|
|
android:layout_width="36dp"
|
|
|
|
style="@style/Fedilab.SmallIconButton"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_marginTop="6dp"
|
|
|
|
android:layout_marginEnd="6dp"
|
|
|
|
android:layout_marginEnd="6dp"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:contentDescription="@string/emoji_picker"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/content"
|
|
|
|
app:icon="@drawable/ic_compose_emoji"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="@id/content">
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/add_remove_status" />
|
|
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
|
|
|
android:id="@+id/button_emoji"
|
|
|
|
|
|
|
|
style="@style/Widget.Material3.Button.OutlinedButton.Icon"
|
|
|
|
|
|
|
|
android:layout_width="36dp"
|
|
|
|
|
|
|
|
android:layout_height="36dp"
|
|
|
|
|
|
|
|
android:padding="0dp"
|
|
|
|
|
|
|
|
android:layout_marginTop="6dp"
|
|
|
|
|
|
|
|
app:iconGravity="textStart"
|
|
|
|
|
|
|
|
app:iconPadding="0dp"
|
|
|
|
|
|
|
|
android:contentDescription="@string/emoji_picker"
|
|
|
|
|
|
|
|
app:icon="@drawable/ic_compose_emoji" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/button_emoji_one"
|
|
|
|
android:id="@+id/button_emoji_one"
|
|
|
|
style="@style/Widget.Material3.Button.OutlinedButton.Icon"
|
|
|
|
style="@style/Fedilab.SmallIconButton"
|
|
|
|
android:layout_width="36dp"
|
|
|
|
android:layout_marginEnd="6dp"
|
|
|
|
android:layout_height="36dp"
|
|
|
|
android:contentDescription="@string/emoji_picker"
|
|
|
|
android:layout_marginTop="6dp"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:padding="0dp"
|
|
|
|
app:icon="@drawable/ic_baseline_insert_emoticon_24"
|
|
|
|
app:iconGravity="textStart"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:iconPadding="0dp"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/button_emoji"
|
|
|
|
android:contentDescription="@string/emoji_picker"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
app:icon="@drawable/ic_baseline_insert_emoticon_24"
|
|
|
|
|
|
|
|
android:visibility="gone"
|
|
|
|
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.checkbox.MaterialCheckBox
|
|
|
|
<com.google.android.material.checkbox.MaterialCheckBox
|
|
|
|
android:id="@+id/sensitive_media"
|
|
|
|
android:id="@+id/sensitive_media"
|
|
|
@ -148,56 +130,56 @@
|
|
|
|
android:layout_marginHorizontal="6dp"
|
|
|
|
android:layout_marginHorizontal="6dp"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/attachments_list_container" />
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/attachments_list_container" />
|
|
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButtonToggleGroup
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
|
|
|
android:id="@+id/button_attach"
|
|
|
|
|
|
|
|
style="@style/Widget.Material3.Button.IconButton.Outlined"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:id="@+id/action_container"
|
|
|
|
android:layout_marginVertical="6dp"
|
|
|
|
android:layout_marginStart="6dp"
|
|
|
|
android:layout_marginStart="6dp"
|
|
|
|
|
|
|
|
app:icon="@drawable/ic_compose_attach"
|
|
|
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/text_area_divider">
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/text_area_divider" />
|
|
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
|
|
|
android:id="@+id/button_attach"
|
|
|
|
|
|
|
|
style="@style/Widget.Material3.Button.OutlinedButton.Icon"
|
|
|
|
|
|
|
|
android:layout_width="48dp"
|
|
|
|
|
|
|
|
android:layout_height="48dp"
|
|
|
|
|
|
|
|
app:icon="@drawable/ic_compose_attach"
|
|
|
|
|
|
|
|
android:padding="0dp"
|
|
|
|
|
|
|
|
app:iconGravity="textStart"
|
|
|
|
|
|
|
|
app:iconPadding="0dp" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
|
|
|
android:id="@+id/button_sensitive"
|
|
|
|
|
|
|
|
style="@style/Widget.Material3.Button.OutlinedButton.Icon"
|
|
|
|
|
|
|
|
android:layout_width="48dp"
|
|
|
|
|
|
|
|
android:layout_height="48dp"
|
|
|
|
|
|
|
|
android:layout_marginTop="6dp"
|
|
|
|
|
|
|
|
app:icon="@drawable/ic_compose_sensitive"
|
|
|
|
|
|
|
|
android:padding="0dp"
|
|
|
|
|
|
|
|
app:iconGravity="textStart"
|
|
|
|
|
|
|
|
app:iconPadding="0dp" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/button_visibility"
|
|
|
|
android:id="@+id/button_sensitive"
|
|
|
|
style="@style/Widget.Material3.Button.OutlinedButton.Icon"
|
|
|
|
style="@style/Widget.Material3.Button.IconButton.Outlined"
|
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="48dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
app:icon="@drawable/ic_compose_visibility_public"
|
|
|
|
android:layout_marginVertical="6dp"
|
|
|
|
android:padding="0dp"
|
|
|
|
android:checkable="true"
|
|
|
|
app:iconGravity="textStart"
|
|
|
|
app:icon="@drawable/ic_compose_sensitive"
|
|
|
|
app:iconPadding="0dp" />
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
|
|
|
app:layout_constraintStart_toEndOf="@id/button_attach"
|
|
|
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/text_area_divider"
|
|
|
|
|
|
|
|
app:toggleCheckedStateOnClick="true" />
|
|
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/button_language"
|
|
|
|
android:id="@+id/button_visibility"
|
|
|
|
style="@style/Widget.Material3.Button.OutlinedButton.Icon"
|
|
|
|
style="@style/Widget.Material3.Button.IconButton.Outlined"
|
|
|
|
android:layout_width="70dp"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textColor="?colorPrimary"
|
|
|
|
android:layout_marginVertical="6dp"
|
|
|
|
app:iconGravity="textStart"
|
|
|
|
app:icon="@drawable/ic_compose_visibility_public"
|
|
|
|
app:iconPadding="0dp"
|
|
|
|
app:iconGravity="textStart"
|
|
|
|
tools:text="EN" />
|
|
|
|
app:iconPadding="0dp"
|
|
|
|
</com.google.android.material.button.MaterialButtonToggleGroup>
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
|
|
|
app:layout_constraintStart_toEndOf="@id/button_sensitive"
|
|
|
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/text_area_divider" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
|
|
|
android:id="@+id/button_language"
|
|
|
|
|
|
|
|
style="@style/Widget.Material3.Button.TextButton"
|
|
|
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
|
|
android:layout_marginVertical="6dp"
|
|
|
|
|
|
|
|
android:fontFamily="monospace"
|
|
|
|
|
|
|
|
android:minWidth="72dp"
|
|
|
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
|
|
|
|
app:layout_constraintStart_toEndOf="@id/button_visibility"
|
|
|
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/text_area_divider"
|
|
|
|
|
|
|
|
tools:text="EN" />
|
|
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
|
|
android:id="@+id/character_count"
|
|
|
|
android:id="@+id/character_count"
|
|
|
@ -207,7 +189,7 @@
|
|
|
|
android:text="0"
|
|
|
|
android:text="0"
|
|
|
|
app:layout_constraintBottom_toTopOf="@id/character_progress"
|
|
|
|
app:layout_constraintBottom_toTopOf="@id/character_progress"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/button_post"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/button_post"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/action_container"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/button_language"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/text_area_divider"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/text_area_divider"
|
|
|
|
app:layout_constraintVertical_chainStyle="packed"
|
|
|
|
app:layout_constraintVertical_chainStyle="packed"
|
|
|
|
tools:ignore="HardcodedText" />
|
|
|
|
tools:ignore="HardcodedText" />
|
|
|
@ -219,16 +201,18 @@
|
|
|
|
android:layout_height="12dp"
|
|
|
|
android:layout_height="12dp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/button_post"
|
|
|
|
app:layout_constraintEnd_toStartOf="@id/button_post"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/action_container"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/button_language"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/character_count" />
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/character_count" />
|
|
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/button_post"
|
|
|
|
android:id="@+id/button_post"
|
|
|
|
style="@style/Widget.Material3.Button.Icon"
|
|
|
|
style="@style/Widget.Material3.Button.IconButton.Filled"
|
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="48dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
|
|
android:layout_marginVertical="6dp"
|
|
|
|
android:layout_marginEnd="6dp"
|
|
|
|
android:layout_marginEnd="6dp"
|
|
|
|
app:icon="@drawable/ic_compose_post"
|
|
|
|
app:icon="@drawable/ic_compose_post"
|
|
|
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/text_area_divider" />
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/text_area_divider" />
|
|
|
|
|
|
|
|
|
|
|
@ -236,9 +220,8 @@
|
|
|
|
android:id="@+id/attachment_choices_panel"
|
|
|
|
android:id="@+id/attachment_choices_panel"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="6dp"
|
|
|
|
android:background="?colorSurfaceVariant"
|
|
|
|
android:elevation="2dp"
|
|
|
|
android:padding="6dp"
|
|
|
|
android:background="?colorSurface"
|
|
|
|
|
|
|
|
android:visibility="gone"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:constraint_referenced_ids="button_attach_image,button_attach_audio,button_attach_video,button_close_attachment_panel,button_poll,button_attach_manual"
|
|
|
|
app:constraint_referenced_ids="button_attach_image,button_attach_audio,button_attach_video,button_close_attachment_panel,button_poll,button_attach_manual"
|
|
|
|
app:flow_maxElementsWrap="3"
|
|
|
|
app:flow_maxElementsWrap="3"
|
|
|
@ -246,177 +229,124 @@
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent" />
|
|
|
|
app:layout_constraintStart_toStartOf="parent" />
|
|
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageButton
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/button_attach_image"
|
|
|
|
android:id="@+id/button_attach_image"
|
|
|
|
style="@style/Widget.AppCompat.Button.Borderless.Colored"
|
|
|
|
style="@style/Widget.Material3.Button.IconButton"
|
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="48dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:src="@drawable/ic_compose_attach_image" />
|
|
|
|
app:icon="@drawable/ic_compose_attach_image" />
|
|
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageButton
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/button_attach_audio"
|
|
|
|
android:id="@+id/button_attach_audio"
|
|
|
|
style="@style/Widget.AppCompat.Button.Borderless.Colored"
|
|
|
|
style="@style/Widget.Material3.Button.IconButton"
|
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="48dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:src="@drawable/ic_compose_attach_audio" />
|
|
|
|
app:icon="@drawable/ic_compose_attach_audio" />
|
|
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageButton
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/button_attach_video"
|
|
|
|
android:id="@+id/button_attach_video"
|
|
|
|
style="@style/Widget.AppCompat.Button.Borderless.Colored"
|
|
|
|
style="@style/Widget.Material3.Button.IconButton"
|
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="48dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:src="@drawable/ic_compose_attach_video" />
|
|
|
|
app:icon="@drawable/ic_compose_attach_video" />
|
|
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageButton
|
|
|
|
|
|
|
|
android:id="@+id/button_attach_manual"
|
|
|
|
|
|
|
|
style="@style/Widget.AppCompat.Button.Borderless.Colored"
|
|
|
|
|
|
|
|
android:layout_width="48dp"
|
|
|
|
|
|
|
|
android:layout_height="48dp"
|
|
|
|
|
|
|
|
android:src="@drawable/ic_compose_attach_more" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageButton
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/button_close_attachment_panel"
|
|
|
|
android:id="@+id/button_close_attachment_panel"
|
|
|
|
style="@style/Widget.AppCompat.Button.Borderless"
|
|
|
|
style="@style/Widget.Material3.Button.IconButton.Outlined"
|
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="48dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:src="@drawable/ic_baseline_close_24" />
|
|
|
|
app:icon="@drawable/ic_baseline_close_24" />
|
|
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageButton
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/button_poll"
|
|
|
|
android:id="@+id/button_poll"
|
|
|
|
style="@style/Widget.AppCompat.Button.Borderless"
|
|
|
|
style="@style/Widget.Material3.Button.IconButton"
|
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="48dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:src="@drawable/ic_compose_poll" />
|
|
|
|
app:icon="@drawable/ic_compose_poll" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
|
|
|
android:id="@+id/button_attach_manual"
|
|
|
|
|
|
|
|
style="@style/Widget.Material3.Button.IconButton"
|
|
|
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
|
|
app:icon="@drawable/ic_compose_attach_more" />
|
|
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
|
|
android:id="@+id/visibility_panel"
|
|
|
|
android:id="@+id/visibility_panel"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:layout_marginHorizontal="6dp"
|
|
|
|
android:background="?colorSurfaceVariant"
|
|
|
|
android:layout_marginTop="6dp"
|
|
|
|
android:gravity="bottom"
|
|
|
|
android:elevation="2dp"
|
|
|
|
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:padding="6dp"
|
|
|
|
android:padding="6dp"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:background="?colorSurface"
|
|
|
|
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
app:layout_constraintVertical_bias="1">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
|
|
<com.google.android.material.button.MaterialButtonToggleGroup
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center_vertical">
|
|
|
|
android:orientation="vertical"
|
|
|
|
|
|
|
|
android:padding="6dp"
|
|
|
|
|
|
|
|
app:singleSelection="true">
|
|
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/button_visibility_direct"
|
|
|
|
android:id="@+id/button_visibility_direct"
|
|
|
|
style="@style/Widget.AppCompat.Button.Borderless.Colored"
|
|
|
|
style="@style/Widget.Material3.Button.OutlinedButton"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:insetTop="0dp"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:insetBottom="0dp"
|
|
|
|
android:minHeight="36dp">
|
|
|
|
android:minHeight="36dp"
|
|
|
|
|
|
|
|
android:text="@string/v_direct"
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
android:textAlignment="textStart"
|
|
|
|
android:layout_width="24dp"
|
|
|
|
app:icon="@drawable/ic_compose_visibility_direct" />
|
|
|
|
android:layout_height="24dp"
|
|
|
|
|
|
|
|
android:src="@drawable/ic_compose_visibility_direct"
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
android:id="@+id/button_visibility_private"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/text_area_divider" />
|
|
|
|
style="@style/Widget.Material3.Button.OutlinedButton"
|
|
|
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
|
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
|
|
android:layout_marginStart="6dp"
|
|
|
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
|
|
|
android:text="@string/v_direct"
|
|
|
|
|
|
|
|
android:textAppearance="@style/TextAppearance.Material3.BodyMedium" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageButton
|
|
|
|
|
|
|
|
android:id="@+id/button_close_visibility_panel"
|
|
|
|
|
|
|
|
style="@style/Widget.AppCompat.Button.Borderless"
|
|
|
|
|
|
|
|
android:layout_width="36dp"
|
|
|
|
|
|
|
|
android:layout_height="36dp"
|
|
|
|
|
|
|
|
android:src="@drawable/ic_baseline_close_24" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
|
|
|
|
|
|
android:id="@+id/button_visibility_private"
|
|
|
|
|
|
|
|
style="@style/Widget.AppCompat.Button.Borderless.Colored"
|
|
|
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
|
|
|
|
android:minHeight="36dp">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
|
|
|
|
android:layout_width="24dp"
|
|
|
|
|
|
|
|
android:layout_height="24dp"
|
|
|
|
|
|
|
|
android:src="@drawable/ic_compose_visibility_private"
|
|
|
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/text_area_divider" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
|
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="6dp"
|
|
|
|
android:insetTop="0dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:insetBottom="0dp"
|
|
|
|
|
|
|
|
android:minHeight="36dp"
|
|
|
|
android:text="@string/followers_only"
|
|
|
|
android:text="@string/followers_only"
|
|
|
|
android:textAppearance="@style/TextAppearance.Material3.BodyMedium" />
|
|
|
|
android:textAlignment="textStart"
|
|
|
|
|
|
|
|
app:icon="@drawable/ic_compose_visibility_private" />
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/button_visibility_unlisted"
|
|
|
|
android:id="@+id/button_visibility_unlisted"
|
|
|
|
style="@style/Widget.AppCompat.Button.Borderless.Colored"
|
|
|
|
style="@style/Widget.Material3.Button.OutlinedButton"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
|
|
|
|
android:minHeight="36dp">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
|
|
|
|
android:layout_width="24dp"
|
|
|
|
|
|
|
|
android:layout_height="24dp"
|
|
|
|
|
|
|
|
android:src="@drawable/ic_compose_visibility_unlisted"
|
|
|
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/text_area_divider" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
|
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="6dp"
|
|
|
|
android:insetTop="0dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:insetBottom="0dp"
|
|
|
|
|
|
|
|
android:minHeight="36dp"
|
|
|
|
android:text="@string/v_unlisted"
|
|
|
|
android:text="@string/v_unlisted"
|
|
|
|
android:textAppearance="@style/TextAppearance.Material3.BodyMedium" />
|
|
|
|
android:textAlignment="textStart"
|
|
|
|
|
|
|
|
app:icon="@drawable/ic_compose_visibility_unlisted" />
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.LinearLayoutCompat
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
android:id="@+id/button_visibility_public"
|
|
|
|
android:id="@+id/button_visibility_public"
|
|
|
|
style="@style/Widget.AppCompat.Button.Borderless.Colored"
|
|
|
|
style="@style/Widget.Material3.Button.OutlinedButton"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
|
|
|
|
android:minHeight="36dp">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
|
|
|
|
|
|
android:layout_width="24dp"
|
|
|
|
|
|
|
|
android:layout_height="24dp"
|
|
|
|
|
|
|
|
android:src="@drawable/ic_compose_visibility_public"
|
|
|
|
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/text_area_divider" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
|
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginStart="6dp"
|
|
|
|
android:insetTop="0dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:insetBottom="0dp"
|
|
|
|
|
|
|
|
android:minHeight="36dp"
|
|
|
|
android:text="@string/v_public"
|
|
|
|
android:text="@string/v_public"
|
|
|
|
android:textAppearance="@style/TextAppearance.Material3.BodyMedium" />
|
|
|
|
android:textAlignment="textStart"
|
|
|
|
|
|
|
|
app:icon="@drawable/ic_compose_visibility_public" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</com.google.android.material.button.MaterialButtonToggleGroup>
|
|
|
|
|
|
|
|
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
|
|
|
|
|
|
android:id="@+id/button_close_visibility_panel"
|
|
|
|
|
|
|
|
style="@style/Widget.Material3.Button.IconButton.Outlined"
|
|
|
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
|
|
|
android:layout_marginStart="96dp"
|
|
|
|
|
|
|
|
app:icon="@drawable/ic_baseline_close_24" />
|
|
|
|
|
|
|
|
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
</androidx.appcompat.widget.LinearLayoutCompat>
|
|
|
|
|
|
|
|
|
|
|
|