1

I am developing an android app but problem is, it's design doesn't remain consistent on different devices.

I studied about it on internet but finally I am stuck on the same problem. I Created layout folders like layout-sw300dp, layout-sw320dp, layout-sw330dp, layout-sw360dp, layout-sw480dp, layout-sw600dp, layout-sw720dp, layout-sw800dp. I create and design xml for each of this layout. In my Nexus S (4.3 inch) emulator it works perfectly as i designed but in my real device: Xiaomi Redmi 4 Prime (5 inch), it doesn't apply. How can i fix this cause i stuck in it for about few days and counting. Below i provided some images of emulator device and real device enter image description here enter image description here

2
  • What layout are you using? Commented May 22, 2020 at 17:45
  • Relative layout as root layout Commented May 22, 2020 at 17:53

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.