Advertisement
khamim

Untitled

Jul 16th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.25 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:tools="http://schemas.android.com/tools"
  4.    android:layout_width="match_parent"
  5.    android:layout_height="match_parent"
  6.    android:paddingBottom="@dimen/activity_vertical_margin"
  7.    android:paddingLeft="@dimen/activity_horizontal_margin"
  8.    android:paddingRight="@dimen/activity_horizontal_margin"
  9.    android:paddingTop="@dimen/activity_vertical_margin"
  10.    tools:context=".MainActivity">
  11.  
  12.     <Button
  13.        android:layout_width="wrap_content"
  14.        android:layout_height="wrap_content"
  15.        android:text="@string/button_main"
  16.        android:id="@+id/button_main"
  17.        android:layout_alignParentBottom="true"
  18.        android:layout_alignParentRight="true"
  19.        android:layout_alignParentEnd="true"
  20.        android:onClick="launchSecondActivity"/>
  21.  
  22.     <EditText
  23.        android:id="@+id/editText_main"
  24.        android:layout_width="match_parent"
  25.        android:layout_height="wrap_content"
  26.        android:layout_alignParentBottom="true"
  27.        android:layout_toLeftOf="@+id/button_main"
  28.        android:layout_toStartOf="@+id/button_main"
  29.        android:hint="@string/editText_second"/>
  30. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement