I do not like to keep repeating code and I believe there is a way to leave, for example, two fields or more with the same formatting style:
Below I have two EditText
they have something in common, like the left and right margins and the top.
How could I only enter these margins once for these fields and future fields that have been created, without having to enter the same margin settings in all fields?
<EditText
android:id = "@+id/edfirstnumber"
android:layout_width = "match_parent"
android:layout_height = "wrap_content"
android:layout_marginTop = "20dp"
android:layout_marginLeft = "10dp"
android:layout_marginRight = "10dp"
android:hint = "@string/campoNumerico"
android:inputType = "number"
/>
<EditText
android:id = "@+id/edsegundnumber"
android:layout_width = "match_parent"
android:layout_height = "wrap_content"
android:layout_marginTop = "20dp"
android:layout_marginLeft = "10dp"
android:layout_marginRight = "10dp"
android:hint = "@string/campoNumerico"
android:inputType = "number"
/>