I would like to set by default layout_width = wrap_content and layout_height = wrap content to all my TextViews. So I tried to modify the theme file with:
<item name="android:textViewStyle">@style/TextViewStyle</item>
<style name="TextViewStyle" parent="@android:style/Widget.TextView">
<item name = "android:layout_width">wrap_content</item>
<item name = "android:layout_height">wrap_content</item>
</style>
But if I set a TextView without layout_width or without layout_height, the app stops at execution time.
Can it be done the way I proppose? With big projects it could save a lot of xml "useless" lines.