Skip to content

Instantly share code, notes, and snippets.

@ssaurel
Created March 20, 2017 13:38
Show Gist options
  • Save ssaurel/22f63cda7d0e292f0f12eaa2dc72e18a to your computer and use it in GitHub Desktop.
Save ssaurel/22f63cda7d0e292f0f12eaa2dc72e18a to your computer and use it in GitHub Desktop.
Layout for the phone call tutorial on Android
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.ssaurel.phonetut.MainActivity">
<EditText
android:id="@+id/number"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="100dp"/>
<Button
android:id="@+id/dial"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/number"
android:layout_marginTop="20dp"
android:text="Dial"
android:layout_centerHorizontal="true"/>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment