Skip to content

Commit

Permalink
Fixed width with dynamic height for action buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
kenzo44 committed Oct 20, 2023
1 parent 3ffc75b commit 1c49f20
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions plugins/main/src/main/res/layout/overview_fragment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,29 +34,31 @@

<com.google.android.material.button.MaterialButton
android:id="@+id/active_profile"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_gravity="end"
android:layout_marginEnd="5dp"
android:layout_marginEnd="4dp"
android:layout_weight="1"
android:gravity="center_vertical|center_horizontal"
android:hint="active profile"
android:text="Profile"
android:textAppearance="?android:attr/textAppearanceSmall"
app:icon="@drawable/ic_ribbon_profile"
android:singleLine="false"
tools:ignore="HardcodedText" />

<com.google.android.material.button.MaterialButton
android:id="@+id/temp_target"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_gravity="end"
android:layout_weight="1"
android:gravity="center_vertical|center_horizontal"
android:hint="temp target"
android:text="@string/value_unavailable_short"
android:textAppearance="?android:attr/textAppearanceSmall"
app:icon="@drawable/ic_crosstarget"
android:singleLine="false"
tools:ignore="HardcodedText" />

</LinearLayout>
Expand All @@ -68,7 +70,7 @@
android:layout_height="wrap_content"
android:layout_marginStart="4dp"
android:layout_marginEnd="4dp"
android:layout_marginTop="1dp"
android:layout_marginTop="0dp"
app:cardCornerRadius="4dp"
app:contentPadding="2dp"
app:cardElevation="2dp"
Expand Down

0 comments on commit 1c49f20

Please sign in to comment.