fix draft/schedule view for large display sizes

cc @LucasGGamerM
see 77e19b4d6f
This commit is contained in:
sk 2023-10-13 13:39:51 +02:00
parent 4d49b10585
commit 6a65edd089
1 changed files with 33 additions and 29 deletions

View File

@ -390,37 +390,41 @@
android:gravity="center_vertical" android:gravity="center_vertical"
android:visibility="gone" android:visibility="gone"
android:minHeight="48dp" android:minHeight="48dp"
android:paddingVertical="4dp"> android:paddingVertical="6dp">
<TextView <org.joinmastodon.android.ui.views.AutoOrientationLinearLayout
android:id="@+id/schedule_draft_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="6dp"
android:ellipsize="end"
android:drawableStart="@drawable/ic_fluent_drafts_20_regular"
android:drawableTint="?android:textColorSecondary"
android:drawablePadding="16dp"
android:text="@string/sk_compose_draft" />
<Button
android:id="@+id/scheduled_time_btn"
style="@style/Widget.Mastodon.M3.Button.Outlined.Icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="12dp"
android:gravity="center"
android:textSize="14sp"
android:textColor="?android:textColorSecondary"
android:fontFamily="sans-serif"
android:drawableStart="@drawable/ic_fluent_clock_20_regular"
android:drawableTint="?android:textColorSecondary"
tools:text="Dec 12, 2021, 12:42 PM"/>
<Space
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="match_parent" android:layout_weight="1"
android:layout_weight="1" /> android:layout_height="wrap_content">
<TextView
android:id="@+id/schedule_draft_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginHorizontal="6dp"
android:layout_marginVertical="2dp"
android:ellipsize="end"
android:drawableStart="@drawable/ic_fluent_drafts_20_regular"
android:drawableTint="?android:textColorSecondary"
android:drawablePadding="16dp"
android:text="@string/sk_compose_draft" />
<Button
android:id="@+id/scheduled_time_btn"
style="@style/Widget.Mastodon.M3.Button.Outlined.Icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="6dp"
android:layout_marginVertical="2dp"
android:gravity="center"
android:textSize="14sp"
android:textColor="?android:textColorSecondary"
android:fontFamily="sans-serif"
android:drawableStart="@drawable/ic_fluent_clock_20_regular"
android:drawableTint="?android:textColorSecondary"
tools:text="Dec 12, 2021, 12:42 PM"/>
</org.joinmastodon.android.ui.views.AutoOrientationLinearLayout>
<ImageButton <ImageButton
android:id="@+id/schedule_draft_dismiss" android:id="@+id/schedule_draft_dismiss"