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

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -