• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Single apps for different size devices

One way to achieve this:

1) Create method that calculates the actual physical screen size in inches (using the number of pixels, density, etc).

2) Use the above code in Activity's onCreate() method to set padding/fontsize/etc of all elements (buttons, etc) in the Activity.
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones