Skip to content

Instantly share code, notes, and snippets.

@corsc
Last active December 11, 2015 08:59
Show Gist options
  • Save corsc/4577246 to your computer and use it in GitHub Desktop.
Save corsc/4577246 to your computer and use it in GitHub Desktop.
Sage42.org Blog Entry - Example V1
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity" >
<TextView
android:id="@+id/title_v1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:gravity="center"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="@string/title_v1" />
<LinearLayout
android:layout_below="@+id/title_v1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<Button
android:id="@+id/btn_cancel"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:drawableLeft="@drawable/ic_cancel"
android:minHeight="48dp"
android:onClick="onClickCancel"
android:text="@android:string/cancel" />
<Button
android:id="@+id/btn_ok"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:drawableLeft="@drawable/ic_ok"
android:minHeight="48dp"
android:onClick="onClickOk"
android:text="@android:string/ok" />
</LinearLayout>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment