1<?xml version="1.0" encoding="utf-8"?> 2 3<GridLayout xmlns:android="http://schemas.android.com/apk/res/android" 4 android:layout_width="match_parent" 5 android:columnCount="2" 6 android:layout_height="match_parent"> 7 8 <TextView 9 android:layout_width="wrap_content" 10 android:layout_height="wrap_content" 11 android:text="Some text"/> 12 <Switch 13 android:layout_height="wrap_content" 14 android:layout_width="wrap_content" 15 android:checked="true" 16 android:layout_gravity="center" 17 /> 18 <com.android.layoutlib.test.myapplication.CustomDate 19 android:layout_width="100dp" 20 android:layout_height="wrap_content"/> 21 <com.android.layoutlib.test.myapplication.CustomCalendar 22 android:layout_width="200dp" 23 android:layout_gravity="center_horizontal" 24 android:layout_height="200dp"/> 25</GridLayout>