mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-01-30 17:51:37 -05:00
[app] put primary app details buttons side by side
now each button gets always half of the screen space which looks more harmonic and allows long button text (when localized) to wrap lines. This prevents issues like https://social.tchncs.de/@phanthomas/112130265198845303
This commit is contained in:
committed by
Hans-Christoph Steiner
parent
26ea5fb947
commit
fdf878293f
@@ -99,28 +99,30 @@
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/secondaryButtonView"
|
||||
style="@style/DetailsSecondaryButtonStyle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="4dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:layout_weight="0"
|
||||
android:ellipsize="marquee"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toStartOf="@+id/primaryButtonView"
|
||||
app:layout_constraintHorizontal_bias="1.0"
|
||||
app:layout_constraintHorizontal_chainStyle="packed"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/repoChooserView"
|
||||
tools:text="Uninstall"
|
||||
tools:text="Uninstall may be longer"
|
||||
tools:visibility="visible" />
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/primaryButtonView"
|
||||
style="@style/DetailsPrimaryButtonStyle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="4dp"
|
||||
android:layout_weight="0"
|
||||
android:ellipsize="marquee"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@+id/secondaryButtonView"
|
||||
app:layout_constraintTop_toBottomOf="@+id/repoChooserView"
|
||||
tools:text="Open"
|
||||
tools:visibility="visible" />
|
||||
|
||||
Reference in New Issue
Block a user