I want to use different layout width ratios for larger tablet screens. Is there a way to set percentage based (fraction-type) values such as layout_widthPercent
and layout_marginStartPercent
in dimens.xml
?
I just solved it. The values in dimens.xml
will be something like this :
<resources>
<item name="width_percent" type="dimen">60%</item>
</resources>