Liang Cui
Liang Cui

Reputation: 33

Android studio - Different device is using the same layout, but everything looks good only on one of them

This app is very different than regular ones since it has a lot of image views in a relative layout arranged in a specific pattern. Problem is that the system is using xxhdpi resource and layout on both of the device. How do I fix it in a situation like this?

Thanks!

Upvotes: 0

Views: 315

Answers (1)

Chandan
Chandan

Reputation: 197

enter image description hereI faced the same problem few days ago.Use dimen.xml which is lacated under values folder.Make folder like values-sw600dp and make dimen.xml under this. Define all the relations in there and call it using @dimen/.... Android automatically will choose best match for your device.

Upvotes: 1

Related Questions