I’m making out a few menus for my Android App and throughout there is a standard textview that is repeated 5 times, only changing the android:text tag each time, everything else is the same.
There are a good number of properties on this and it feels very inefficient to be copy/pasting all these for each of the textviews.
Is there a way I define the common properties just once and add them to each TextView element?
Yes you can define a style. Create a file in your values res folder names styles.xml and add something like this:
This defines the style. In your layout you might have a field like this:
Notice the style statement refers to the style defined above. Styles can contain almost any property. Read up on them here.