Search code examples
androidfill-parent

Question about DP in Android


Let's say I prefer using "dp" rather than "fill_parent" or "wrap_content", what would be the appropriate number to use in order to fill the screen with a picture?


Solution

  • This depends of the screen and of its density. Check this article to learn more about that.

    (This may lead you to reconsider using fill_parent / wrap_content by the way).