I am new in android development. I want to set margin & padding in Xml,not in dp or px but in percentage. Is there any way to do this?
It became possible with Guidelines introduced in ConstraintLayout.
Here's the example of TextView placed at 60% of screen width and 25% of screen height: