I've got this super simple question I can't find an answer to. I want to make a variable which I could then use for multiple elements. Something like this in strings.xml:
<resources>
<string name="textSize">20sp</string>
</resources>
...
<EditText android:textSize="@string/textSize" />
But this does not work. I was able to accomplish what I wanted the following way in themes.xml:
<style name="textSize">
<item name="android:textSize">20sp</item>
</style>
...
<EditText android:theme="@style/textSize" />
But it seems too complicated for just a single value, is there a better way?