I am going to implement a LinearLayout in which the input fields are programmatically generated according to the number of fields of the database table.
LinearLayout
Unf
Use TextViewCompat.setTextAppearance() method which will take care of your sdk version checks.
TextViewCompat.setTextAppearance()