
Implement a facimile of the new Material 3/You switches in the settings menu. There's no defined spec for this yet, so I just shamelessly ripped the implementation from Doodle.
12 lines
No EOL
394 B
XML
12 lines
No EOL
394 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
|
|
<item>
|
|
<shape android:shape="rectangle">
|
|
<solid android:color="#000000" />
|
|
<corners android:radius="56dp" />
|
|
<size
|
|
android:width="64dp"
|
|
android:height="28dp" />
|
|
</shape>
|
|
</item>
|
|
</layer-list> |