Created
April 16, 2016 07:43
-
-
Save kurorido/455bc2293e9320498f59bd7d3a55039e to your computer and use it in GitHub Desktop.
Android button different state background
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_height="wrap_content" | |
android:layout_width="fill_parent"> | |
<ImageButton | |
android:id="@+id/title_IB" ; | |
android:layout_height="wrap_content" | |
android:layout_width="wrap_content" | |
android:background="#00000000" | |
android:layout_marginRight="4dp" | |
android:layout_centerVertical="true" | |
android:src="@drawable/selector"> ; | |
</ImageButton> | |
</RelativeLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
shameless copy from http://www.oschina.net/question/54100_34076