I've been trying to get a gridlayout to work using:
<GridLayout
android:layout_width="match_parent"
android:layout_height="70dp">
<TextView
android:text="sdfgh"
android:layout_height="wrap_content"
android:id="@+id/AvgGrade"
android:layout_row="2"
android:layout_column="1"
android:layout_rowWeight="0.2"
android:layout_columnWeight="0.5"
android:layout_gravity="fill"
android:textAlignment="gravity"
android:layout_columnSpan="1" />
<TextView
android:text="words"
android:layout_height="wrap_content"
android:id="@+id/Totals"
android:layout_row="1"
android:layout_column="1"
android:textAlignment="gravity"
android:layout_rowWeight="0.2"
android:layout_columnWeight="0.5"
android:layout_gravity="fill"
android:layout_columnSpan="1" />
<TextView
android:text="words"
android:layout_height="wrap_content"
android:id="@+id/textView3"
android:layout_row="2"
android:layout_column="0"
android:textAlignment="center"
android:layout_rowWeight="0.2"
android:layout_columnWeight="0.5"
android:layout_gravity="fill"
android:layout_columnSpan="1" />
<TextView
android:text="words"
android:layout_height="wrap_content"
android:id="@+id/textView4"
android:layout_row="1"
android:layout_column="0"
android:layout_rowWeight="0.2"
android:layout_columnWeight="0.5"
android:layout_gravity="fill"
android:textAlignment="center"
android:layout_columnSpan="1" />
<TextView
android:text="words"
android:layout_height="wrap_content"
android:id="@+id/TotalAvg"
android:layout_row="0"
android:layout_column="1"
android:textAlignment="gravity"
android:layout_rowWeight="0.2"
android:layout_columnWeight="0.5"
android:layout_gravity="fill"
android:layout_columnSpan="1" />
<TextView
android:text="words"
android:layout_height="wrap_content"
android:id="@+id/textView6"
android:layout_row="0"
android:layout_column="0"
android:textAlignment="center"
android:layout_columnWeight="0.5"
android:layout_gravity="fill"
android:layout_columnSpan="1" />
</GridLayout>
My issue is that what the data is loads in the second column the size of the columns changes ever so slightly. I've tried left and center alignment and nothing seems stop the columns from changing. The user will be updating these values repeatedly and the slight 'jiggle' of the columns shifting looks really bad.