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