Skip to content

Instantly share code, notes, and snippets.

@alphamu
Created October 15, 2016 03:52
Show Gist options
  • Save alphamu/6645240de198c229639bc99944425ef4 to your computer and use it in GitHub Desktop.
Save alphamu/6645240de198c229639bc99944425ef4 to your computer and use it in GitHub Desktop.
<FrameLayout ...>
<ImageView
android:id="@+id/imgBg"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"
android:src="@drawable/baking"/>
<ScrollView
android:id="@+id/scrollView"...>
<RelativeLayout...>
<TextView
android:id="@+id/title"
...
android:text="My Baking (Scroll Up)"/>
<LinearLayout
android:id="@+id/cardview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/spacer"
android:layout_margin="32dp"
android:background="@drawable/white_background"
android:orientation="vertical"
android:padding="16dp">
<TextView
...
android:text="Cinnamon Rolls"/>
<TextView
...
android:text="No description needed!"/>
</LinearLayout>
<LinearLayout
android:id="@+id/cardview2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/cardview"
android:layout_margin="32dp"
android:background="@drawable/white_background"
android:orientation="vertical"
android:padding="16dp">
<TextView
...
android:text="Cookies"/>
<TextView
...
android:text="Yes! please."/>
</LinearLayout>
</RelativeLayout>
</ScrollView>
</FrameLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment