<?
xml
version
=
"1.0"
encoding
=
"utf-8"
?>
<
RelativeLayout
android:layout_width
=
"match_parent"
android:layout_height
=
"match_parent"
tools:context
=
".MainActivity"
>
<
LinearLayout
android:layout_width
=
"wrap_content"
android:layout_height
=
"wrap_content"
android:layout_centerInParent
=
"true"
android:layout_gravity
=
"center"
android:orientation
=
"vertical"
>
<
Button
android:layout_margin
=
"10dp"
android:id
=
"@+id/button_warning"
android:layout_width
=
"wrap_content"
android:layout_height
=
"wrap_content"
android:onClick
=
"showToast"
android:text
=
"show warning toast"
/>
<
Button
android:layout_margin
=
"10dp"
android:id
=
"@+id/button_info"
android:layout_width
=
"wrap_content"
android:layout_height
=
"wrap_content"
android:onClick
=
"showToast"
android:text
=
"show info toast"
/>
<
Button
android:layout_margin
=
"10dp"
android:id
=
"@+id/button_success"
android:layout_width
=
"wrap_content"
android:layout_height
=
"wrap_content"
android:onClick
=
"showToast"
android:text
=
"show success toast"
/>
<
Button
android:layout_margin
=
"10dp"
android:id
=
"@+id/button_error"
android:layout_width
=
"wrap_content"
android:layout_height
=
"wrap_content"
android:onClick
=
"showToast"
android:text
=
"show error toast"
/>
<
Button
android:layout_margin
=
"10dp"
android:id
=
"@+id/button_normal"
android:layout_width
=
"wrap_content"
android:layout_height
=
"wrap_content"
android:onClick
=
"showToast"
android:text
=
"show normal toast with an icon"
/>
</
LinearLayout
>
</
RelativeLayout
>