 <p>You specify the size in your xml layout file using DP (DIP: Density Independent Pixels) instead of Pixels, you can also use wrap_content and match_parent.</p> <p>For more info, <a href="http://developer.android.com/guide/practices/screens_support.html" rel="nofollow">http://developer.android.com/guide/practices/screens_support.html</a></p>