Androidのボタンの背景としてxmlで定義された複数の形状を使用するにはどうすればよいですか?
次のような複数の形状xmlファイルがあると仮定します:-
<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>
ボタンの背景にマルチシェイプを使用したい:-
<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"/>
どうすれば複数の形状を組み合わせてボタンにすることができますか :- ?
