• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Android Image Button

Hello frndz i have developed an application in android consisting of image viewer and 4 buttons. Every thing is fine but now i would like to add image to these 4 buttons. So that the buttons does not look like buttons but look like an image. Can u help me out in this issue... how can i add images to these buttons...
 
Hey I myself got the solution of this problem... Just add the following code for button in your "main.xml" fike

<Button android:id="@+id/buttonFirst"
android:src="@drawable/one"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:background="@drawable/one"/>
 
Back
Top Bottom