Skip to content

Instantly share code, notes, and snippets.

@anagri
Created August 27, 2014 16:47
Show Gist options
  • Save anagri/ce994f1b736cc85de879 to your computer and use it in GitHub Desktop.
Save anagri/ce994f1b736cc85de879 to your computer and use it in GitHub Desktop.
Layout file for InstructionsOverlay demo code
<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="${relativePackage}.${activityClass}" >
<TextView
android:id="@+id/main_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:layout_margin="10dp"
android:text="@string/main_text" />
<TextView
android:id="@+id/current_page"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignRight="@+id/main_text"
android:layout_margin="2dp"
android:text="@string/current_page"
android:textAppearance="?android:attr/textAppearanceSmall" />
<ImageView
android:id="@+id/image_share"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/main_text"
android:layout_alignParentBottom="true"
android:contentDescription="@string/share"
android:src="@android:drawable/ic_menu_share" />
<RelativeLayout
android:id="@+id/container_help"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#88666666"
android:visibility="invisible" >
<ImageView
android:id="@+id/image_help"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clickable="false"
android:contentDescription="@string/help_screen"
android:scaleType="center"
android:src="@drawable/help_screen" />
</RelativeLayout>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment