Home > Mobile >  Scaling and mobile android layout
Scaling and mobile android layout

Time:10-13

Want to zoom and move the layout, and scaling can not be smaller than the screen, for custom controls basic motionless, ever can greatly help!

Project requirements is die on a layout to write some controls and bind the click event , and background can enlarge , but applied to code is layout amplification, narrow or mobile , and enlarge child controls also need to follow or mobile , but layout cannot be smaller than the screen

Is there any way

CodePudding user response:

Just zoom background?

CodePudding user response:

Zoom in on the parent layout directly effect can be attained

CodePudding user response:

reference m - 1/f, oj response:
just zoom background?

Still need to move, narrow cannot be smaller than the screen, how magnified temporarily didn't say it needs

CodePudding user response:

refer to the second floor the wind light cloud light v10 reply:
directly to zoom in on the parent layout can achieve the effect now

Also need to move, and narrow cannot be smaller than the screen or initial size

CodePudding user response:

The ImageView to get with parent layout is as big as background, the operation of this ImageView

CodePudding user response:

Put your custom controls all converted to graphics, and record hotspots, click hotspots corresponding event,
That is left is a photo viewer, online looking for a open source according to the change
  • Related