Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 615659c8 authored by Mihai Nita's avatar Mihai Nita
Browse files

Using a real Button widget for "Add a language"

The initial implementation used a TextView.
But this is cleaner, it is a real button and acts like one.

Bug: 26756569
Change-Id: Ibe3550b0cb81b020dfd4ec6ab29d39a56ba6e1bd
parent d11743c7
Loading
Loading
Loading
Loading
+6 −7
Original line number Diff line number Diff line
@@ -25,20 +25,19 @@
        android:id="@+id/dragList"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1"/>
        android:layout_weight="1"
        android:scrollbars="vertical"/>

    <TextView
    <Button
        android:id="@+id/add_language"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:clickable="true"
        android:contextClickable="true"
        android:drawableStart="@drawable/ic_add_24dp"
        android:drawablePadding="12dp"
        android:gravity="center_vertical"
        android:measureWithLargestChild="false"
        android:padding="16dp"
        android:minHeight="64dp"
        android:textAlignment="textStart"
        android:text="@string/add_a_language"
        style="@style/Base.Widget.AppCompat.Button.Borderless"
        android:textAppearance="?android:attr/textAppearanceListItem"/>

</LinearLayout>