I got a layout design which states sizes in px which I save in the dimen
resource file.
Is there an automatic way to somehow let Android convert the px unit automatically to sp for strings or dp for other sizes, without the need for me to call a method every single time which converts the unit?
If not, how can I define specific sizes in the layout's xml if all the units are in px?