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

Commit c860f878 authored by shaoweishen's avatar shaoweishen
Browse files

[Sound Panel] Set inset for button background

add inset for button of Sound panel, to prevent truncated when set
Display/Font size to biggest.
attached screenshots in bug.

Test: Verified on device
Bug: 252952472
Change-Id: I407d4d6cdac47cfcc63470aa8b5d4e5817e1705b
parent 02cf722b
Loading
Loading
Loading
Loading
+17 −14
Original line number Diff line number Diff line
@@ -14,9 +14,11 @@
     See the License for the specific language governing permissions and
     limitations under the License.
  -->

<shape xmlns:android="http://schemas.android.com/apk/res/android"
<inset xmlns:android="http://schemas.android.com/apk/res/android"
       xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
       android:insetTop="6dp"
       android:insetBottom="6dp">
    <shape
           android:shape="rectangle">
        <stroke
            android:color="?androidprv:attr/colorAccentPrimaryVariant"
@@ -29,3 +31,4 @@
            android:bottom="8dp" />
        <solid android:color="@android:color/transparent" />
    </shape>
</inset>
 No newline at end of file
+16 −13
Original line number Diff line number Diff line
@@ -15,9 +15,11 @@
     limitations under the License.
  -->

<shape xmlns:android="http://schemas.android.com/apk/res/android"
<inset xmlns:android="http://schemas.android.com/apk/res/android"
       xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
       android:shape="rectangle">
       android:insetTop="6dp"
       android:insetBottom="6dp">
    <shape android:shape="rectangle">
        <stroke
            android:color="@android:color/transparent"
            android:width="1dp"/>
@@ -29,3 +31,4 @@
            android:bottom="8dp" />
        <solid android:color="?androidprv:attr/colorAccentPrimary" />
    </shape>
</inset>
 No newline at end of file
+2 −2
Original line number Diff line number Diff line
@@ -117,7 +117,7 @@
                android:id="@+id/see_more"
                style="@style/PanelOptionRoundedOutlinedButton"
                android:layout_width="wrap_content"
                android:layout_height="36dp"
                android:layout_height="wrap_content"
                android:minWidth="0dp"
                android:text="@string/settings_button"/>

@@ -130,7 +130,7 @@
                android:id="@+id/done"
                style="@style/PanelOptionRoundedSolidButton"
                android:layout_width="wrap_content"
                android:layout_height="36dp"
                android:layout_height="wrap_content"
                android:minWidth="0dp"
                android:text="@string/done"/>
        </LinearLayout>