Single page android app that is an advertisement for a mock discount takeaway coffee shop.
App is the final project for the Udacity course, Android Basics: User Interface
<?xml version="1.0" encoding="utf-8"?> | |
<FrameLayout | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<ImageView | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:src="@drawable/beanz" | |
android:scaleType="centerCrop"/> | |
<LinearLayout | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical" | |
android:gravity="center"> | |
<TextView | |
android:layout_width="match_parent" | |
android:layout_weight="2" | |
android:fontFamily="cursive" | |
android:textColor="#fff" | |
android:gravity="center" | |
android:autoSizeTextType="uniform" | |
android:text="Daily Beanz" /> | |
<TextView | |
android:layout_width="400dp" | |
android:layout_weight="0.5" | |
android:background="#cda29a" | |
android:fontFamily="sans-serif" | |
android:textStyle="italic" | |
android:gravity="center" | |
android:textSize="18dp" | |
android:text="Your daily fix for a price you can daily afford!" /> | |
<TextView | |
android:layout_width="400dp" | |
android:layout_weight="0.1" /> | |
<LinearLayout | |
android:orientation="horizontal" | |
android:layout_width="400dp" | |
android:layout_weight="0.5" | |
android:background="#ad6659" | |
android:gravity="center_vertical"> | |
<TextView | |
android:layout_width="match_parent" | |
android:layout_height="100dp" | |
android:layout_weight="1" | |
android:fontFamily="sans-serif-smallcaps" | |
android:gravity="center" | |
android:textSize="20dp" | |
android:textFontWeight="600" | |
android:text="Sml: $2.00" /> | |
<TextView | |
android:layout_width="match_parent" | |
android:layout_height="100dp" | |
android:layout_weight="1" | |
android:fontFamily="sans-serif-smallcaps" | |
android:gravity="center" | |
android:textSize="20dp" | |
android:text="Reg: $3.00" /> | |
<TextView | |
android:layout_width="match_parent" | |
android:layout_height="100dp" | |
android:layout_weight="1" | |
android:fontFamily="sans-serif-smallcaps" | |
android:gravity="center" | |
android:textSize="20dp" | |
android:text="Lrg: $4.00" /> | |
</LinearLayout> | |
<LinearLayout | |
android:orientation="horizontal" | |
android:layout_width="400dp" | |
android:layout_height="wrap_content" | |
android:gravity="center_vertical" | |
android:background="#ad6659" | |
android:layout_weight="0.5"> | |
<ImageView | |
android:layout_width="match_parent" | |
android:layout_height="80dp" | |
android:layout_weight="1" | |
android:src="@drawable/coffee"/> | |
<ImageView | |
android:layout_width="match_parent" | |
android:layout_height="90dp" | |
android:layout_weight="1" | |
android:src="@drawable/coffee"/> | |
<ImageView | |
android:layout_width="match_parent" | |
android:layout_height="100dp" | |
android:layout_weight="1" | |
android:src="@drawable/coffee"/> | |
</LinearLayout> | |
<TextView | |
android:layout_width="match_parent" | |
android:layout_weight="0.5" | |
android:fontFamily="sans-serif-medium" | |
android:textColor="#fff" | |
android:gravity="center" | |
android:textSize="18dp" | |
android:text="Corner of Imaginary St and Fake Cresent, Perth, Australia, 6020" /> | |
</LinearLayout> | |
</FrameLayout> |