Home > Mobile >  Android is the same resolution, the screen size is different, how to fit
Android is the same resolution, the screen size is different, how to fit

Time:10-12

Demand is ten several fixed point on the picture, then I have put away on the night of god, the apk installation, all position to the upper left corner, is not very understanding, because to control size has not been thorough understanding

CodePudding user response:

Should be used to control the px?

Then there is a problem, is that demand is background can zoom in on mobile, but cannot be smaller than the screen size, shrink less than me on the phone screen can be automatically bounce, but in the giant pad and it doesn't work out, there is a solution?

CodePudding user response:

Recommended to today's headlines adaptation scheme of dynamic modification Density or SmallestWidth adaptation scheme,

CodePudding user response:

No see?

CodePudding user response:

To control with DP

CodePudding user response:

refer to 4th floor, the wind light cloud light v10 reply:
use DP to control

Anyway, now is to use dp hard to move, but I feel pretty stupid, so it feels like fly not ah

CodePudding user response:

refer to 4th floor, the wind light cloud light v10 reply:
use DP to control

Anyway, now is to use dp hard to move, but I feel pretty stupid, so it feels like fly not ah

CodePudding user response:


reference 3/f ^ Zhou Zihou ^ reply:
no see?

Is using dp put good location on your computer, use the simulator run ok, but to live 50 inch android tablet, position are flying

CodePudding user response:

You are custom painting, Canvas when drawing is made of px, the coordinate transformation is required

CodePudding user response:

With DP to control first

CodePudding user response:

Use DP to control

refer to 6th floor cannot climb response:
Quote: refer to 4th floor, the wind light cloud light v10 reply:

Use DP to control

Anyway, now is to use dp hard to move, but I feel pretty stupid, so it feels like fly not ah


To turn the PX with DP
  • Related