Professional Documents
Culture Documents
Fisac Android Project
Fisac Android Project
Fisac Android Project
DESCRIPTION:
Coffee ordering app makes it incredibly simple for your customers to order.
In just 4 steps a customer can find and order from your coffee shop.
Coffee ordering app has made it incredibly simple for users to save their favorite
orders.
When your coffee shop is added as a favorite by the user it makes it incredibly
simple for them to order from you again.
It means that customers that have favorite an order at your coffee shop can order
in just 2-clicks within the app!
As well as getting more orders, increasing the order value is a great way of making
your coffee shop more profitable.
WELCOME PAGE:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="16dp"
android:paddingTop="60dp"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:background="@drawable/welcome_backgrund">
<TextView
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:orientation="vertical"
android:text="Order Coffee"
android:textColor="@color/colorWhite"
android:textSize="50sp"
android:textStyle="bold"
android:fontFamily="@fonts/nabila"/>
<TextView
android:gravity="center"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:orientation="vertical"
android:textColor="@color/colorWhite"
android:textSize="25sp"
android:textStyle="bold"
android:fontFamily="@fonts/nabila"
android:layout_marginTop="120dp"
android:layout_marginLeft="20dp"/>
<Button
android:gravity="center"
android:id="@+id/btnLoginWelcom"
android:layout_width="220dp"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="270dp"
android:background="@drawable/duongvien_xanh"
android:text="Login"
android:textColor="@color/colorWhite"
android:textSize="@dimen/size20dp" />
<Button
android:id="@+id/btnRegisterWelcom"
android:layout_width="220dp"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_marginTop="340dp"
android:background="@drawable/duongvien_xanh"
android:text="Register"
android:textColor="@color/colorWhite"
android:textSize="@dimen/size20dp" />
</RelativeLayout>
Register Page:
<RelativeLayout android:textSize="25sp"
xmlns:android="http://schemas.android.com/apk/res/android"
android:inputType="textEmailAddress"
xmlns:app="http://schemas.android.com/apk/res-auto"
app:met_baseColor="@color/colorPrimary"
android:layout_width="match_parent"
app:met_floatingLabel="highlight"
android:layout_height="match_parent"
app:met_primaryColor="@color/colorPrimary"
android:paddingBottom="16dp"
app:met_singleLineEllipsis="true"
android:paddingTop="30dp"
android:paddingLeft="10dp" android:drawableLeft="@drawable/ic_email_black_36dp"
android:paddingRight="10dp" android:drawablePadding="@dimen/size10dp"
android:orientation="vertical" />
android:background="@color/colorWhite"> <com.rengwuxian.materialedittext.MaterialEditText
<TextView android:layout_width="match_parent"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_height="80dp" android:hint="Password"
android:layout_centerHorizontal="true" android:textColorHint="#FAF8F8"
android:fontFamily="@fonts/nabila" android:id="@+id/txtPass"
android:text="Register" android:textColor="@color/colorPrimary"
android:textColor="@color/colorBlue" android:textSize="25sp"
android:textSize="40sp" android:inputType="textPassword"
<LinearLayout app:met_floatingLabel="highlight"
android:layout_width="match_parent" app:met_primaryColor="@color/colorPrimary"
android:layout_height="wrap_content" app:met_minCharacters="6"
android:orientation="vertical" app:met_singleLineEllipsis="true"
android:layout_marginTop="50dp">
android:drawableLeft="@drawable/ic_lock_black_36dp"
<com.rengwuxian.materialedittext.MaterialEditText
android:drawablePadding="@dimen/size10dp"
android:layout_width="match_parent"
/>
android:layout_height="wrap_content"
android:hint="Email"
android:textColorHint="@color/colorPrimary”
<com.rengwuxian.materialedittext.MaterialEditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColorHint="#FAF8F8"
android:id="@+id/txtRePass"
android:textColor="@color/colorPrimary"
android:textSize="25sp"
android:inputType="textPassword"
app:met_baseColor="@color/colorPrimary"
app:met_floatingLabel="highlight"
app:met_primaryColor="@color/colorPrimary"
app:met_minCharacters="6"
app:met_singleLineEllipsis="true"
android:drawableLeft="@drawable/ic_lock_black_36dp"
android:drawablePadding="@dimen/size10dp"
/>
<com.rengwuxian.materialedittext.MaterialEditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Name"
android:textColorHint="@color/colorPrimary"
android:id="@+id/txtName"
android:textColor="@color/colorPrimary"
android:textSize="25sp"
android:inputType="text"
app:met_baseColor="@color/colorPrimary"
app:met_floatingLabel="highlight"
app:met_primaryColor="@color/colorPrimary"
app:met_singleLineEllipsis="true"
android:drawableLeft="@drawable/ic_create_black_24dp"
android:drawablePadding="@dimen/size10dp"
/>
<com.rengwuxian.materialedittext.MaterialEditText <LinearLayout
android:layout_width="match_parent" android:layout_marginTop="15dp"
android:layout_height="wrap_content" android:layout_gravity="center"
android:textColorHint="@color/colorPrimary" android:layout_height="wrap_content"
android:id="@+id/txtPhone" android:orientation="horizontal">
android:textColor="@color/colorPrimary"
android:textSize="25sp" <Button
android:inputType="phone" android:id="@+id/btnReg"
app:met_baseColor="@color/colorPrimary" android:layout_width="wrap_content"
app:met_floatingLabel="highlight" android:layout_height="wrap_content"
app:met_primaryColor="@color/colorPrimary" android:layout_marginRight="20dp"
app:met_singleLineEllipsis="true" android:layout_marginLeft="20dp"
android:layout_weight="1"
android:drawableLeft="@drawable/ic_phone_android_black_24d
p"
android:background="@drawable/duongvien_xanh"
android:drawablePadding="@dimen/size10dp"
android:text="Register"
app:met_maxCharacters="11"
android:textColor="@color/colorWhite"
/>
android:textAllCaps="false"
<com.rengwuxian.materialedittext.MaterialEditText
android:textSize="25sp" />
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Enter Address"
</LinearLayout>
android:textColorHint="@color/colorPrimary"
android:id="@+id/txtAddress"
</LinearLayout>
android:textColor="@color/colorWhite"
android:textSize="25sp"
android:inputType="text"
</RelativeLayout>
app:met_baseColor="@color/colorPrimary"
app:met_floatingLabel="highlight"
app:met_primaryColor="@color/colorPrimary"
app:met_singleLineEllipsis="true"
android:drawableLeft="@drawable/ic_place_red_24dp"
android:drawablePadding="@dimen/size10dp"
/>
Login Page:
<?xml version="1.0" encoding="utf-8"?> android:hint="Email"
<RelativeLayout android:inputType="textEmailAddress"
xmlns:android="http://schemas.android.com/apk/res/android"
android:textColor="@color/colorBlack"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:textColorHint="#FAF8F8"
android:layout_width="match_parent"
android:textSize="30sp"
android:layout_height="match_parent"
app:met_baseColor="@color/black"
android:paddingBottom="16dp"
app:met_floatingLabel="highlight"
android:paddingTop="90dp"
app:met_primaryColor="@color/black"
android:paddingLeft="10dp"
app:met_singleLineEllipsis="true" />
android:paddingRight="10dp"
<com.rengwuxian.materialedittext.MaterialEditText
android:background="@drawable/login_order_coffee_app">
android:id="@+id/edtPassLog"
<TextView
android:layout_width="match_parent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_height="wrap_content"
android:hint="Password"
android:layout_centerHorizontal="true"
android:textColorHint="#FAF8F8"
android:fontFamily="@fonts/nabila"
android:textColor="@color/colorBlack"
android:text="Login"
android:textSize="30sp"
android:textColor="@color/colorBlack"
android:inputType="textPassword"
android:textSize="40sp"
app:met_baseColor="@color/black"
android:textStyle="bold" />
app:met_floatingLabel="highlight"
<LinearLayout
app:met_primaryColor="#FFFFFF"
android:id="@+id/lnKhungDangNhap"
app:met_minCharacters="6"
android:layout_width="match_parent"
app:met_singleLineEllipsis="true"
android:layout_height="wrap_content"
android:drawableLeft="@drawable/ic_lock_black_36dp"
android:orientation="vertical"
android:drawablePadding="@dimen/size10dp" />
android:layout_marginTop="120dp">
<LinearLayout
<com.rengwuxian.materialedittext.MaterialEditText
android:layout_width="wrap_content"
android:id="@+id/edtEmailLog"
android:layout_height="wrap_content">
android:layout_width="match_parent"
<CheckBox
android:layout_height="wrap_content"
android:id="@+id/ckbRemember"
android:drawableLeft="@demail_black_36dp"
android:layout_width="wrap_content"
android:drawablePadding="@dimen/size10dp"
android:layout_height="wrap_content"
android:outlineAmbientShadowColor="@color/colorWhite"
android:outlineSpotShadowColor="@color/colorWhite"
android:paddingLeft="10dp"
android:text="Remember me"
android:textColor="@color/colorBlack"
android:textSize="18sp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginTop="20dp">
<Button
android:id="@+id/btnLog"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="@dimen/size10dp"
android:layout_weight="1"
android:background="@drawable/duongvien_xanh"
android:text="Sign-In"
android:textColor="@color/colorWhite"
android:textSize="20sp"
android:textAllCaps="false"/>
</LinearLayout>
<TextView
android:layout_marginTop="10dp"
android:id="@+id/forgotPass"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Forgot password?"
android:textColor="@color/colorBlack"
android:textIsSelectable="true"
android:textSize="18sp"
android:layout_gravity="center" />
</LinearLayout> </RelativeLayout>
Main File 1:
xmlns:app="http://schemas.android.com/apk/r
es-auto"
xmlns:tools="http://schemas.android.com/too
ls"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<android.support.v7.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/recyclerView"/>
<android.support.design.widget.FloatingActi
onButton
android:id="@+id/btnCart"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_margin="@dimen/fab_margin"
app:srcCompat="@drawable/shoping_cart_white
"/>
</android.support.design.widget.Coordinator
Layout>
Main File 2:
xmlns:app="http://schemas.android.com/apk/re android:layout_alignParentEnd="true"
s-auto"
android:layout_marginTop="20dp"
xmlns:tools="http://schemas.android.com/tool
s" android:layout_marginRight="60dp"
android:layout_width="match_parent" android:textStyle="bold"
android:layout_height="match_parent" android:textSize="16sp"
android:padding="10dp"
tools:context=".InfoActivity"> android:layout_below="@+id/imageViewInfo"
android:layout_height="250dp" <RelativeLayout
android:layout_centerHorizontal="true" android:layout_width="match_parent"
android:layout_marginTop="10dp"
android:id="@+id/imageViewInfo"
android:layout_height="wrap_content">
android:src="@drawable/greentea"/>
<ImageButton
<TextView android:layout_width="30dp"
android:layout_height="30dp"
android:layout_width="wrap_content"
android:layout_marginLeft="130dp”
android:layout_height="wrap_content" android:id="@+id/addquantity"
android:background="@drawable/plus"/>
android:layout_below="@+id/imageViewInfo"
android:text="Drink Name" <TextView
android:layout_width="wrap_content"
android:textColor="@android:color/holo_red_l android:layout_height="wrap_content"
ight" android:text="0"
android:textSize="30sp" android:textStyle="bold"
android:layout_margin="10dp" android:layout_marginLeft="20dp"
android:textStyle="bold" android:layout_marginRight="20dp"
android:id="@+id/quantity"
android:id="@+id/drinkNameinInfo"/> android:textSize="28sp"
<TextView
android:layout_width="wrap_content" android:layout_toRightOf="@+id/addquantity
android:layout_height="wrap_content" "/>
android:text="$5 per cup" <ImageButton
android:layout_width="30dp"
android:textColor="@android:color/holo_red_l android:layout_height="30dp"
ight" android:id="@+id/subquantity"
android:id="@+id/addquantity" android:text="Green tea. Mixed with mint,
android:background="@drawable/plus"/> lemongrass and lemon verbena, then
moderately sweetened and put in a shake
<TextView glass with ice, it's refreshing!"
android:layout_width="wrap_content" android:id="@+id/descriptioninfo"
android:layout_height="wrap_content" android:textStyle="italic"
android:text="0" android:textSize="15sp"
android:textStyle="bold" android:layout_below="@+id/addCream"/>
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:id="@+id/quantity" <Button
android:textSize="28sp" android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_toRightOf="@+id/addquantity" android:layout_marginLeft="30dp"
/> android:layout_marginRight="30dp"
android:layout_marginBottom="10dp"
<ImageButton android:layout_below="@+id/descriptioninfo"
android:layout_width="30dp" android:background="#3F51B5"
android:layout_height="30dp" android:textStyle="bold"
android:id="@+id/subquantity" android:id="@+id/addtocart"
android:layout_marginBottom="10dp"
android:textColor="@android:color/white"
android:layout_toRightOf="@+id/quantity" android:text="Add to cart"/>
android:background="@drawable/minus"/> </RelativeLayout>
<RadioGroup </android.support.v7.widget.CardView>
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal" <android.support.design.button.MaterialButt
android:layout_centerHorizontal="true" on
android:id="@+id/radioGroup"
android:layout_below="@id/subquantity"> android:layout_below="@+id/secondCardView"
android:id="@+id/back"
<RadioButton style="@style/Widget.AppCompat.Button.Borde
android:layout_width="wrap_content" rless"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hot" android:layout_height="wrap_content"
android:layout_marginRight="10dp" android:text="Back"
android:id="@+id/hotradioButton"/> android:textColor="@color/white"
<RadioButton android:background="@drawable/button_border
android:layout_width="wrap_content" "
/>
android:layout_height="wrap_content"
android:text="Iced" </RelativeLayout>
android:id="@+id/coldRadioButton"/>
</RadioGroup>
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/radioGroup"
android:id="@+id/addToppings"
android:text="Toppings $3"/>
<CheckBox
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/addCream"
android:layout_below="@+id/addToppings"
android:text="Add Extra Cream $2"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="10dp"
Main File 3:
</android.support.v7.widget.CardView>
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout <android.support.design.button.MaterialButt
xmlns:android="http://schemas.android.com/apk on
/res/android" android:layout_below="@+id/sum"
android:id="@+id/back"
xmlns:app="http://schemas.android.com/apk/res
-auto" style="@style/Widget.AppCompat.Button.Borde
rless"
xmlns:tools="http://schemas.android.com/tools android:layout_width="wrap_content"
" android:layout_marginLeft="20dp"
android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="wrap_content"
tools:context=".SummaryActivity"> android:text="Back"
android:textColor="@color/white"
<android.support.v7.widget.CardView
android:layout_width="match_parent" android:background="@drawable/button_border
android:layout_height="500dp" "
app:cardCornerRadius="10dp" />
android:id="@+id/sum"
app:cardElevation="10dp" <android.support.design.button.MaterialButt
android:layout_margin="10dp"> on
android:layout_below="@+id/sum"
<RelativeLayout
android:layout_alignRight="@+id/sum"
android:layout_width="match_parent" android:id="@+id/logout"
android:layout_height="match_parent"> style="@style/Widget.AppCompat.Button.Borde
rless"
<TextView android:layout_width="wrap_content"
android:layout_marginLeft="20dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_height="wrap_content" android:text="Logout"
android:gravity="center" android:textColor="@color/white"
android:layout_marginTop="10dp" android:background="@drawable/button_border
android:textSize="30sp" "
/>
android:id="@+id/orderSummary"
android:text="ORDER </RelativeLayout>
SUMMARY"/>
<ListView
android:layout_width="match_parent"
android:paddingTop="40dp"
android:layout_height="match_parent"
android:id="@+id/list"/>
<Button
android:id="@+id/clearthedatabase"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerInParent="true"
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp"
android:background="@android:color/holo_red_d
ark"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:text="Remove a Product"
android:textColor="@android:color/white" />
</RelativeLayout>
Database: