How can I use several forms defined in xml as the background for a button in android?
Assuming I have several xml form files, for example: -
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#eeffffff" />
<corners android:bottomRightRadius="8dip"
android:bottomLeftRadius="8dip"
android:topRightRadius="8dip"
android:topLeftRadius="8dip"/>
</shape>
and I want to use multi-user buttons for the button background: -
<Button
android:id="@+id/funkyButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right"
android:text="@string/txt_higher"
android:background="@drawable/funkyShape"/>
How can I combine several shapes so that such a button appears: -?

source
share