java - How to change size of imagebutton in android programatically -


I have to create some button imagebuttons programatically and I do not know how to change their shape, how to change left and right does not work Does

Use this.

  LinearLayout.LayoutParams Parameters = Button.LightoutParam (); Params.width = 80; Button.setLayoutParams (parameter);  

It should work


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

ios - Subclassing UIView and adding a property -

Powerbuilder 12.1 and DataWindow in Design vs Debug and Executable/Runtime -