Android - How to place a button on a specific position on different screen densities with XML
问题 I am looking for a way to place a button on a specific spot with the help of XML. I want the button in question to be placed in the middle of the screen, only abit down. This I would like to be working even when changing screen densities. I have tried using android:layout_marginLeft="10dp", but it doesnt show up at the same position when i lower the densities from 240 till 120. It says on androids dev page that dp should be used and will scale with the screen, which in this case doesnt seem