I have some problem with setting params to my view in xml file with values from dimen files.
For example when i'm adding layout_height param to my EditText in laytout xml file:
<EditText
....
android:layout_height="@dimen/et_height"
....
/>
File dimens:
<resources>
.........
<dimen name="example">16dp</dimen>
<dimen name="et_height">20dp</dimen>
.........
</resources>
It works fine. But sometimes when i open this file again AndroidStudio replace @dimen/et_height with value 20dp in layout xml file. And i must change it again to @dimen/et_height. How can i fix this ?
This is the normal case:
But in my case AndroidStudio replaces with value: