I am using dimen.xml for supporting multiple screen sizes.
How can I access the file and get the dimen from code so can be used in the application?
Yoav
You can use the following:
float yourDimen = getResources().getDimension(R.dimen.your_dimen_name);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With