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 -

c# - Chart control: Design messed Up after clearing and re-adding Y-Values -

xml - XMLStarlet - UTF-8 Nordic characters -