rachmadi

The layout

Feb 5th, 2015
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.68 KB | None | 0 0
  1. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2.    xmlns:tools="http://schemas.android.com/tools"
  3.    android:layout_width="match_parent"
  4.    android:layout_height="match_parent"
  5.    android:paddingBottom="@dimen/activity_vertical_margin"
  6.    android:paddingLeft="@dimen/activity_horizontal_margin"
  7.    android:paddingRight="@dimen/activity_horizontal_margin"
  8.    android:paddingTop="@dimen/activity_vertical_margin"
  9.    tools:context="com.example.owm.MainActivity" >
  10.  
  11.     <EditText
  12.        android:id="@+id/etCity"
  13.        android:layout_width="match_parent"
  14.        android:layout_height="wrap_content"
  15.        android:hint="City Name"
  16.        />
  17.     <Button
  18.        android:id="@+id/btnGet"
  19.        android:layout_width="match_parent"
  20.        android:layout_height="wrap_content"
  21.        android:text="Get Weather"
  22.        android:layout_below="@+id/etCity"
  23.        />
  24.     <TextView
  25.        android:id="@+id/tvCity"
  26.        android:layout_width="wrap_content"
  27.        android:layout_height="wrap_content"
  28.        android:text="City"
  29.        android:textSize="20sp"
  30.        android:layout_below="@+id/btnGet"
  31.        android:layout_marginTop="20dp" />
  32.     <TextView
  33.        android:id="@+id/tvTemperature"
  34.        android:layout_width="wrap_content"
  35.        android:layout_height="wrap_content"
  36.        android:layout_below="@+id/tvCity"
  37.        android:text="Temperature"
  38.        />
  39.     <TextView
  40.        android:id="@+id/tvDescription"
  41.        android:layout_width="wrap_content"
  42.        android:layout_height="wrap_content"
  43.        android:layout_below="@+id/tvTemperature"
  44.        android:text="Description"
  45.        />
  46.  
  47. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment