Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
56 lines (49 sloc) 1.8 KB
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="co.twoh.kotlin.twohkotlin.MainActivity">
<TextView
android:layout_gravity="center_horizontal"
android:textAppearance="@android:style/TextAppearance.DeviceDefault.Large"
android:id="@+id/tv_hello"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="TWOH's Kotlin Tutorial"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
/>
<Button
android:id="@+id/bt_1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Button Click Tutorial"
android:layout_below="@id/tv_hello"
/>
<Button
android:id="@+id/bt_2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/bt_1"
android:text="Activity Basic"/>
<Button
android:id="@+id/bt_3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/bt_2"
android:text="Activity Intent Basic"/>
<Button
android:id="@+id/bt_4"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/bt_3"
android:text="Kotlin If-Then"/>
<Button
android:id="@+id/bt_5"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/bt_4"
android:text="Kotlin Looping"/>
</RelativeLayout>