Ich habe gelesen über das Anwenden von Stil für die ganze Anwendung in AndroidManifest, aber ich habe nicht gefunden, wie man Stil in Linear Layout anwendet.Wie man den allgemeinen Stil nur für ein LinearLayout anwendet
Zum Beispiel möchte ich ändern: Größe, Polsterung und Text allignment für alle diese 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 habe ich Stil
<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>
und ich habe auf vielfältige Weise versucht anzuwenden Dieser Stil zu LinearLayout
style="@style/ItemTransacationHeader"
android:theme="@style/ItemTransacationHeader"
app:theme="@style/ItemTransacationHeader"
aber ich habe keine Ahnung, ist das sogar möglich (ich nehme an, ye s ist es) und wie kann ich das erreichen