I have read about applying style for whole application in AndroidManifest but I didn't find how to apply style within Linear Layout.
For example I want to change: size, padding and text allignment for all of these TextViews:
<LinearLayout
android:orientation="horizontal"
android:layout_height="0dp"
android:layout_width="match_parent"
android:layout_weight="30"
style="@style/ItemTransacationHeader">
<!--android:theme="@style/ItemTransacationHeader">-->
<TextView
android:text="Client"
android:layout_width="0dp"
android:layout_height="match_parent"
android:id="@+id/textView8"
android:layout_weight="10"
/>
<TextView
android:text="Quantity"
android:layout_width="0dp"
android:layout_height="match_parent"
android:id="@+id/textView9"
android:layout_weight="10"
/>
<TextView
android:text="Product Value"
android:layout_width="0dp"
android:layout_height="match_parent"
android:id="@+id/textView12"
android:layout_weight="10"
/>
</LinearLayout>
so I created style
<style name="ItemTransacationHeader" parent="android:Theme">
<item name="android:textSize">10dp</item>
<item name="android:textAlignment">textStart</item>
<item name="android:padding">4dp</item>
</style>
and I have tried in various way to apply that style to LinearLayout
style="@style/ItemTransacationHeader"
android:theme="@style/ItemTransacationHeader"
app:theme="@style/ItemTransacationHeader"
but I haven't any idea is this even possible(I suppose yes it is) and how can I achieve that