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

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

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

unit testing - How to mock PreferenceManager in Android? -