When applying styles, many of their parameters are for some reason ignored.
<LinearLayout android:id="@+id/regionColumn" android:layout_width="170dp" android:layout_height="match_parent" android:orientation="vertical"> <TextView android:id="@+id/regionHeader" style="@style/AppTheme.TableHeaderTextView" android:layout_width="80dp" android:text="@string/region" /> </LinearLayout>
For example, when adding a TextView with a style to such a container, all indents and height are ignored. The style itself:
<style name="AppTheme.TableTextView"> <item name="android:textSize">8pt</item> <item name="android:paddingTop">10dp</item> <item name="android:paddingBottom">10dp</item> <item name="android:paddingLeft">10dp</item> <item name="android:paddingRight">10dp</item> <item name="android:layout_height">80dp</item> </style>
Why is this happening and how to solve this problem?
PS TableHeaderTextView
is a column header. TableTextView
is a regular table cell.