Android App Design: Pizza Ordering Interface, Assignments of Computer Science

The XML layout code for a section of an Android app that allows users to customize their pizza order by selecting toppings and beverages. The interface includes TextViews, CheckBoxes, ImageViews, and a Button for confirming the order.

Typology: Assignments

2019/2020

Uploaded on 04/28/2020

aqeel-zafar
aqeel-zafar 🇵🇰

2 documents

1 / 18

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
RELATIVE
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<TextView
android:id="@+id/pizza"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/hello"
android:layout_alignStart="@+id/hello"
android:layout_alignLeft="@+id/hello"
android:layout_marginStart="-6dp"
android:layout_marginLeft="-6dp"
android:layout_marginTop="18dp"
android:text="Pizza Flavour"
android:textColor="@android:color/black"
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12

Partial preview of the text

Download Android App Design: Pizza Ordering Interface and more Assignments Computer Science in PDF only on Docsity!

RELATIVE

android:textSize="18sp" /> <RadioButton android:id="@+id/f2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignTop="@+id/f1" android:layout_marginStart="11dp" android:layout_marginLeft="11dp" android:layout_marginTop="-2dp" android:layout_toEndOf="@+id/f1" android:layout_toRightOf="@+id/f1" android:checked="true"

android:textSize="24sp" /> <CheckBox android:id="@+id/c2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/c1" android:layout_alignParentStart="true" android:layout_alignParentLeft="true" android:layout_marginStart="3dp"

android:layout_marginLeft="3dp" android:layout_marginTop="20dp" android:text="Chicken" /> <ImageView android:id="@+id/imageView" android:layout_width="135dp" android:layout_height="114dp" android:layout_alignParentStart="true" android:layout_alignParentLeft="true" android:layout_alignParentTop="true"

android:id="@+id/hello" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/imageView" android:layout_alignParentStart="true" android:layout_alignParentLeft="true" android:layout_marginStart="33dp" android:layout_marginLeft="33dp" android:layout_marginTop="19dp" android:text="Hello!" android:textSize="18sp" /> <EditText android:id="@+id/fast" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignTop="@+id/hello" android:layout_alignBottom="@+id/hello" android:layout_marginStart="70dp" android:layout_marginLeft="70dp" android:layout_marginTop="-7dp" android:layout_marginBottom="-18dp" android:layout_toEndOf="@+id/hello" android:layout_toRightOf="@+id/hello" android:ems="10"

android:inputType="textPersonName" android:text="FAST UNI" /> <TextView android:id="@+id/bev" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@+id/c3" android:layout_alignParentStart="true" android:layout_alignParentLeft="true" android:layout_marginStart="7dp" android:layout_marginLeft="7dp"

android:layout_marginTop="17dp" android:text="Confirm order" />

LINEAR

android:layout_marginTop="10dp" android:layout_weight="0" android:text="Pizza Flavour" android:textColor="@android:color/tertiary_text_light" android:textSize="24sp" /> <RadioButton android:id="@+id/radioButton2" android:layout_width="wrap_content"

android:layout_height="wrap_content" android:layout_weight="1" android:checked="true" android:text="Flavour 2" /> <CheckBox android:id="@+id/checkBox" android:layout_width="match_parent"

android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_marginTop="10dp" android:layout_weight="0" android:orientation="horizontal">

<Button android:id="@+id/btn" android:layout_width="194dp" android:layout_height="58dp" android:layout_marginTop="15dp" android:layout_weight="0"