4
xml에 정의 된 여러 모양을 Android의 버튼 배경으로 사용하려면 어떻게해야합니까?Android : 버튼 배경으로 여러 모양 사용
I과 같은 여러 형태의 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>
그리고 난 버튼 배경 multishapes를 사용하려면 : -
<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"/>
어떻게 결국 여러 모양을 결합 할 수 있습니다 그렇게 버튼으로 : -?