ImageButton in Android -


can tell me how resize imagebutton fit image exactly..this code tried, image placed @ position locating using android:scaletype can't able reduce size of imagebutton, pls me out in rectifying issue...the code tried ...

<imagebutton> android:id="@+id/button01" android:scaletype="fitxy" // have tried values attr android:layout_width="wrap_content" android:layout_height="wrap_content" android:croptopadding="false" android:paddingleft="10dp" android:src="@drawable/eye"> // image(eye) </imagebutton> 

kinda late, im 'better late never' had same question today, found explained here: http://www.anddev.org/tutorial_buttons_with_niceley_stretched_background-t4369.html


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -