Dynamic height of TextView within a GridLayout
问题 I have a problem using GridLayout using library compatibility (not tried without). I am using app:layout_gravity="fill_horizontal" instead of android:layout_gravity="fill_horizontal" but all the content inside the TextView is not displayed. In order to display everything, I have to set the height of the TextView "Title" but I want a dynamic height, not a set height. Any idea? 回答1: You have to set layout_width="0dp" and layout_gravity="fill_horizontal" for the TextView. <TextView android