Advertisement
Shishu

main activity xml file for alarm clock

Dec 6th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.08 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    xmlns:app="http://schemas.android.com/apk/res-auto"
  4.    xmlns:tools="http://schemas.android.com/tools"
  5.    android:layout_width="match_parent"
  6.    android:layout_height="match_parent"
  7.    tools:context=".MainActivity">
  8.  
  9.     <TextView
  10.        android:layout_width="match_parent"
  11.        android:layout_height="wrap_content"
  12.        android:text="Enter The Second"
  13.        android:textSize="30dp"
  14.        android:gravity="center"
  15.        android:id="@+id/t1" />
  16.  
  17.     <EditText
  18.        android:layout_width="match_parent"
  19.        android:layout_height="wrap_content"
  20.        android:gravity="center"
  21.        android:id="@+id/e1"
  22.        android:layout_below="@+id/t1" />
  23.     <Button
  24.        android:id="@+id/b1"
  25.        android:layout_width="wrap_content"
  26.        android:layout_height="wrap_content"
  27.        android:layout_below="@+id/e1"
  28.        android:gravity="center"
  29.        android:text="Click"
  30.        android:layout_marginLeft="100dp"/>
  31. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement