Android Views Not Scaling On Different Sized Devices January 08, 2024 Post a Comment I am using eclipse I have views with images and buttons with their width and height set in dp: Solution 1: If you really need it to have a certain aspect ratio, you should definitely consider using weights.If there are two buttons in a linear layout parent, with both weight 1, they will both take up 1/2 the width of the screenproportion of button relative to screen = (view_weight/(total_weights of all views) Take a look here: http://blog.stylingandroid.com/archives/297Baca JugaTransform And Scale Animation On A ViewAndroid, Webview.getwidth() == Window.innerwidthSave Scaled Image To Sdcard AndroidOtherwise, DP is correct. Share You may like these postsHow To Handle Android Screens Fragmentations?Android Resize Bitmap Keeping Aspect RatioScale Down (or Crop) Dialog Background In AndroidHow To Scale Small Imageview To Fill Large Scrollview? Post a Comment for "Android Views Not Scaling On Different Sized Devices"
Post a Comment for "Android Views Not Scaling On Different Sized Devices"