Combine multiple backgrounds on android XML? -
can combine own android drawable , ?android:selectableitembackground...? searched lot can't find right answer... example lets have simple button , want this:
<button android:id="@+id/btest" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="?android:selectableitembackground" | @drawable/mydrawable/>
any ideas?
how using framelayout
<framelayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@drawable/mydrawable"> <button android:id="@+id/btest" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="?android:selectableitembackground"/> </framelayout>
or using imagebutton
<imagebutton android:id="@+id/btest" android:src="@drawable/mydrawable" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="?android:selectableitembackground"/>
Comments
Post a Comment