I have a TextView which should have 10dp padding in the top and bottom, and 30dp on the left. I then tried:
android:padding="10dp"
android:paddingLeft="30dp"
That's what I'd do in CSS. But it doesn't work.
Regardless of the order, my left padding is 10dp. Are Android style attributes not overridden in the order they appear? If so, is there any list of priorities? Ex: android:padding always overrides android:paddingLeft
Overriding is an important feature in CSS which saves a lot of coding, so I wanted to know if that's possible in Android.
Maybe I just couldn't find the answer with the right terms. If someone could point me where to understand it I'd be very appreciated.
Aucun commentaire:
Enregistrer un commentaire