3

I've read from another post that it's possible to set attributes like color to every TextView in an application: Setting global styles for Views in Android. However, I can't set layout_margin nor layout_height and layout_width attribute using that method to any textView, using "android:textviewStyle". On the other hand, if I use the style attribute and reference it to a style with all the attributes above, it works. Is there a way that you can use global styles and still set margin?

Thank you in advance

Community
  • 1
  • 1
Noir
  • 119
  • 1
  • 8

1 Answers1

-2

You can set padding instead of margin and you will have the same result.

Egis
  • 5,081
  • 5
  • 39
  • 61