Martine Leblanc
Martine Leblanc

Reputation: 1

Run AppAndroid on tablet and mobile phone support multi screen

i need that my app Android will be supported by 2 devices phone and tablet .

i can find library to integer in my app and supported all screen size.

Thanks

Upvotes: -1

Views: 24

Answers (1)

sinha-shaurya
sinha-shaurya

Reputation: 577

I am assuming you want to support multiple screen sizes for your app. You can refer to this guide from Android Developers. Tl;dr you should make your layouts as flexible as possible. That includes but not limited to

  1. Use ConstraintLayout to define the percentage of screen covered by a component, ratio of sizes etc etc
  2. Avoid using hardcoded values(like layout_width="100dp" etc)

Also for a tablet, you must design an alternative layout which can take advantage of the larger screen in landscape mode

Upvotes: 0

Related Questions