android - Easy way to scale image based on other image's scalesize? -


i have layout imageview entirely fills view. has gap in middle button positioned. when there no stretching fits eachother. because button has different drawables different states, needs decoupled rest of graphics.

however, when size of phone small, background image scale, centered image ofcourse not. leads being out of proportion, , taking more space needed.

is somehow possible scale imageview based on scale of imageview? or there way make work? (i thinking making button image large other background image transparant space around it, auto shrinks much).

you should use scaling factor each screen density.

maybe can , explain how solve problem http://dexxtr.com/post/50327457086/multiple-screens-and-scaling-android-ui-images


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -