Skip to content

Instantly share code, notes, and snippets.

@sourabh86
Last active August 29, 2015 14:16
Show Gist options
  • Save sourabh86/25255a227f4ede244a4c to your computer and use it in GitHub Desktop.
Save sourabh86/25255a227f4ede244a4c to your computer and use it in GitHub Desktop.
Main activity layout for RemoteDroid example http://goo.gl/xRzfmE
<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" android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity">
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/playPauseButton"
android:clickable="true"
android:background="@android:color/holo_blue_dark"
android:id="@+id/mousePad"/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Play/Pause"
android:id="@+id/playPauseButton"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Previous"
android:id="@+id/previousButton"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Next"
android:id="@+id/nextButton"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true" />
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment