Guest User

activity_main.xml

a guest
Feb 12th, 2017
17,951
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.99 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout
  3.         xmlns:android="http://schemas.android.com/apk/res/android"
  4.         xmlns:tools="http://schemas.android.com/tools"
  5.         android:id="@+id/activity_main"
  6.         android:layout_width="match_parent"
  7.         android:layout_height="match_parent"
  8.         android:paddingLeft="@dimen/activity_horizontal_margin"
  9.         android:paddingRight="@dimen/activity_horizontal_margin"
  10.         android:paddingTop="@dimen/activity_vertical_margin"
  11.         android:paddingBottom="@dimen/activity_vertical_margin"
  12.         tools:context="com.okedroid.contohnotification.MainActivity">
  13.  
  14.     <Button
  15.             android:text="TAMPIL NOTIFICATION"
  16.             android:layout_width="wrap_content"
  17.             android:layout_height="wrap_content"
  18.             android:layout_centerVertical="true"
  19.             android:layout_centerHorizontal="true"
  20.             android:onClick="tampilNotification"
  21.             android:id="@+id/button"/>
  22.  
  23. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment