Search code examples
androidscreen-resolution

What is the method for general screen resolution?


I have a problem with overlapping views on other test phones.

The way I figured out is to get dpScale and set the size again when the view is drawn.

But I guess that this way has the performance problem.

What is a general development method that changes the size of the view according to the screen resolution?


Solution

  • you need to define margin/padding in values folder like 360dp, 720dp 
    For image use vector asset.
    
    For reference follow : 
    

    https://developer.android.com/guide/practices/screens_support.html