1<GridLayout xmlns:android="http://schemas.android.com/apk/res/android" 2 android:layout_width="300dp" 3 android:layout_height="50dp" 4 android:alignmentMode="alignBounds" 5 android:columnCount="5" 6 android:padding="0dp" 7 android:rowCount="1" 8 android:rowOrderPreserved="false"> 9 10 <TextView 11 android:layout_width="wrap_content" 12 android:layout_height="wrap_content" 13 android:layout_rowWeight="1" 14 android:layout_columnWeight="1" 15 android:layout_gravity="fill" 16 android:layout_margin="2dp" 17 android:background="@drawable/roundrect" 18 android:backgroundTint="@android:color/system_neutral1_500" 19 android:fontFamily="?android:attr/textAppearanceLarge" 20 android:gravity="center" 21 android:text="N1-500" 22 android:textColor="?android:attr/textColorPrimary" /> 23 24 <TextView 25 android:layout_width="wrap_content" 26 android:layout_height="wrap_content" 27 android:layout_rowWeight="1" 28 android:layout_columnWeight="1" 29 android:layout_gravity="fill" 30 android:layout_margin="2dp" 31 android:background="@drawable/roundrect" 32 android:backgroundTint="@android:color/system_neutral2_500" 33 android:fontFamily="?android:attr/textAppearanceLarge" 34 android:gravity="center" 35 android:text="N2-500" 36 android:textColor="?android:attr/textColorPrimary" /> 37 38 <TextView 39 android:layout_width="wrap_content" 40 android:layout_height="wrap_content" 41 android:layout_rowWeight="1" 42 android:layout_columnWeight="1" 43 android:layout_gravity="fill" 44 android:layout_margin="2dp" 45 android:background="@drawable/roundrect" 46 android:backgroundTint="@android:color/system_accent1_500" 47 android:fontFamily="?android:attr/textAppearanceLarge" 48 android:gravity="center" 49 android:text="A1-500" 50 android:textColor="?android:attr/textColorPrimary" /> 51 52 <TextView 53 android:layout_width="wrap_content" 54 android:layout_height="wrap_content" 55 android:layout_rowWeight="1" 56 android:layout_columnWeight="1" 57 android:layout_gravity="fill" 58 android:layout_margin="2dp" 59 android:background="@drawable/roundrect" 60 android:backgroundTint="@android:color/system_accent2_500" 61 android:fontFamily="?android:attr/textAppearanceLarge" 62 android:gravity="center" 63 android:text="A2-500" 64 android:textColor="?android:attr/textColorPrimary" /> 65 66 <TextView 67 android:layout_width="wrap_content" 68 android:layout_height="wrap_content" 69 android:layout_rowWeight="1" 70 android:layout_columnWeight="1" 71 android:layout_gravity="fill" 72 android:layout_margin="2dp" 73 android:background="@drawable/roundrect" 74 android:backgroundTint="@android:color/system_accent3_500" 75 android:fontFamily="?android:attr/textAppearanceLarge" 76 android:gravity="center" 77 android:text="A3-500" 78 android:textColor="?android:attr/textColorPrimary" /> 79</GridLayout> 80