Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<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