resize - Android change size buttons programatically generic -


i have next problem, need resize buttons in layout depending on screen size. know how write code each button, problem have 50 buttons. there way change size of buttons using something, , not write 100 line codes?

here example of button:

<button  android:id.... android:layout_width="wrap content" android:layout_height="wrap_content" android:layout_marginbottom="4dp" android:layout_marginright="30dp" android:layout_margintop="4dp" android:background="@drawable/..." android:minheight="0dp" android:minwidth="0dp" android:onclick= ... /> 

thanks


Comments

Popular posts from this blog

Upgrade php version of xampp not success -

amazon web services - S3 and apache mod_proxy with basic authentication -

powershell - This solution contains one or more assemblies targeted for the global assembly cache -