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 -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -