Reputation: 119
I'm trying to give layout_constraintDimensionRatio attribute in constraint layout different value for hdpi screens and have a default for all others. I made a dimens resource with density hdpi in values-hdpi folder. I want it to be 2:1 value for hdpi and 1:1 as default. I made a string like this <string name="layout_constraintDimensionRatio">2:1</string>
but it still takes the value from base values folder which is 1:1. Is it a problem it being a string instead of dimen?
Upvotes: 0
Views: 135