I am a beginner in android.I am making a app which has most of its contents generated dynamically. When I am setting size of any content in pixels it looks good on my device (on which i m testing) but its size does not remain the same when I run on other devices(because of different dpi). How to set size of the contents in dp such that it resizes itself as the contents which are created statically ?
Example - On my device I set size of some button as 50 px. how to set the size such that it resizes accordingly ? Thanks in advance.