Skip to content

Instantly share code, notes, and snippets.

@RanjitPati
Created January 18, 2019 11:23
Show Gist options
  • Save RanjitPati/37c37925e86ef9698cf7b8fd039aafd2 to your computer and use it in GitHub Desktop.
Save RanjitPati/37c37925e86ef9698cf7b8fd039aafd2 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:id="@+id/scrollable_layout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:adjustViewBounds="true" >
<ImageView
android:id="@+id/image_home"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:gravity="center"
android:layout_above="@+id/imageLabelView"
android:layout_gravity="center"
android:layout_centerHorizontal="true"
android:adjustViewBounds="true" />
<TextView
android:id="@+id/imageLabelView"
style="@style/content_page_medium_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="0dp"
android:layout_centerHorizontal="true"
android:layout_alignParentBottom="true"
/>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment