is there a way to define a style that affects all Views in an Activity of a given type, without editing all of the xml View tags to define the style. is there a way to define something like “all TextViews in this Activity have a minHeight of 70sp”?
Share
A theme is what you want. Each android widget has a default style that you could override to make it as you want. For example:
a theme that overrides the style for a
TextView.SpecialTextViewis a style like this:Then simply set the
TextViewSpecialtheme in the manifest to the desired activity. You can use this method to ovreride the style of what widget you want.