Skip to content

Instantly share code, notes, and snippets.

@Netlighter
Last active November 21, 2019 11:07
Show Gist options
  • Save Netlighter/aa9cac56c1005d8e6a13b600f36840a5 to your computer and use it in GitHub Desktop.
Save Netlighter/aa9cac56c1005d8e6a13b600f36840a5 to your computer and use it in GitHub Desktop.
XML test code for practice
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="horizontal"
android:background="@android:color/background_light"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_margin="0dp"
tools:ignore="MissingConstraints">
<TextView
android:layout_width="match_parent"
android:layout_height="24dp"
android:text="Last name"
android:textSize="14sp" />
<TextView
android:layout_width="match_parent"
android:layout_height="24dp"
android:text="Name"
android:textSize="14sp" />
<TextView
android:layout_width="match_parent"
android:layout_height="24dp"
android:text="Middle name"
android:textSize="14sp" />
<TextView
android:layout_width="match_parent"
android:layout_height="24dp"
android:text="Year"
android:textSize="14sp" />
<TextView
android:layout_width="match_parent"
android:layout_height="24dp"
android:text="School"
android:textSize="14sp" />
<TextView
android:layout_width="match_parent"
android:layout_height="24dp"
android:text="City"
android:textSize="14sp" />
<TextView
android:layout_width="match_parent"
android:layout_height="24dp"
android:text="Code exp"
android:textSize="14sp" />
<TextView
android:layout_width="match_parent"
android:layout_height="24dp"
android:text="Languages"
android:textSize="14sp" />
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
tools:ignore="MissingConstraints">
<EditText
android:layout_width="48dp"
android:layout_height="24dp" />
<EditText
android:layout_width="48dp"
android:layout_height="24dp" />
<EditText
android:layout_width="48dp"
android:layout_height="24dp" />
<EditText
android:layout_width="48dp"
android:layout_height="24dp" />
<EditText
android:layout_width="48dp"
android:layout_height="24dp" />
<RadioButton
android:layout_width="48dp"
android:layout_height="24dp" />
<RadioButton
android:layout_width="48dp"
android:layout_height="24dp" />
<CheckBox
android:layout_width="48dp"
android:layout_height="24dp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<CalendarView
android:layout_width="match_parent"
android:layout_height="match_parent"
</LinearLayout>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment