Skip to content

Instantly share code, notes, and snippets.

@FeherMarcell
Created June 5, 2013 08:56
Show Gist options
  • Save FeherMarcell/5712591 to your computer and use it in GitHub Desktop.
Save FeherMarcell/5712591 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<TextView
android:id="@+id/activityTitleTextview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:textAppearance="?android:attr/textAppearanceLarge" />
<TextView
android:id="@+id/receivedTextView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="16dp"
android:layout_below="@id/activityTitleTextview"
android:hint="Received text will come here..."
android:textAppearance="?android:attr/textAppearanceMedium"/>
<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
>
<Button
android:id="@+id/returnOkBtn"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/return_ok_label" />
<Button
android:id="@+id/returnStringBtn"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/return_string_label" />
</LinearLayout>
<EditText
android:id="@+id/resultStringEdittext"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_above="@id/linearLayout1"
android:layout_marginBottom="20dp"
android:hint="@string/result_string_hint"
/>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment