[AC-1641] Dealing with left/top/bottom for different screen sizes
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-04-19T09:23:55.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | iphone6, view |
Reporter | Samie Syed |
Assignee | Shuo Liang |
Created | 2015-03-08T16:45:52.000+0000 |
Updated | 2016-03-08T07:38:07.000+0000 |
Description
I am having trouble dealing with different screen sizes. I initially coded my app for iphone 4, now with the higher models and bigger screens , everything is out of position.
Left: '100dp'
will not visually sit in the same place as on the iphone 6 because the screen is wider.
How can I resolve this?
Hi, You'd better use percentage instead of dimension string, like ( left: '10%', ) Regards, Shuo