I defined in my Layout XML a headline and a basic TextView. I use these elements very often throughout my app. Until now I just copied and pasted every TextView but I guess there must be a way to make a ‘class’ like in CSS where I can define the cut-set of the attributes which are the same for i.e. the headline element.
Any ideas how I can store them into a class or something?
Sounds like you are looking for styles.
TextView implementation
res/values/styles.xml