Given the following style in file: res/values/styles.xml
<style name="GiftCardFragment.TitleLLLabelTV">
<item name="android:paddingStart">5dp</item>
<item name="android:paddingLeft">5dp</item>
</style>
android:paddingStart is only valid in Android platform 17 and above, so then I would create a new styles.xml file in "res/values-v17/styles.xml".
But the question is: Do I have to repeat the whole style, or could I just add the styles I want to add extra (alternatively override) for a given platform and above in "res/values-v17/styles.xml"? Like:
<style name="GiftCardFragment.TitleLLLabelTV">
<item name="android:paddingStart">5dp</item>
</style>
And then Android would merge then at runtime. Am I correct? Any pointing in right direction appreciated, I couldnt find documentation really covering this case.
Aucun commentaire:
Enregistrer un commentaire