Commit 352d1d48 authored by Anupama Balasooriya's avatar Anupama Balasooriya

Edit spare parts interfaces

parent c66ccc39
......@@ -4,7 +4,8 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".spareparts.DisplayPriceActivity">
tools:context=".spareparts.DisplayPriceActivity"
android:background="#1DB7AE">
<LinearLayout
android:orientation="vertical"
......@@ -12,22 +13,32 @@
android:layout_height="match_parent">
<RelativeLayout
android:layout_marginTop="100dp"
android:layout_marginTop="60dp"
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp"
android:layout_marginBottom="50dp"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/img_parts"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:srcCompat="@drawable/bumper_img"
android:layout_marginTop="50dp"
android:layout_centerHorizontal="true"/>
<!-- Display spare part name -->
<TextView
android:id="@+id/txt_spare_part_name"
android:textSize="30dp"
android:textStyle="bold"
android:text="- Spare part name -"
android:textColor="@color/black"
android:textAlignment="center"
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:layout_below="@id/img_parts"
android:layout_marginTop="50dp">
</TextView>
<!-- Display average price -->
......@@ -37,7 +48,8 @@
android:layout_marginTop="50dp"
android:layout_below="@id/txt_spare_part_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:textColor="@color/black">
</TextView>
<TextView
......@@ -48,39 +60,28 @@
android:layout_marginTop="50dp"
android:layout_below="@id/txt_spare_part_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:textColor="@color/black">
</TextView>
<!-- Display average replacement cost -->
<TextView
android:text="Average replacement\ncost:"
android:textSize="20dp"
android:layout_marginTop="50dp"
android:layout_below="@id/txt_avg_price"
<!-- Display stores in google map -->
<ImageView
android:id="@+id/img_location"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
</TextView>
<TextView
android:id="@+id/txt_avg_replacement_cost"
android:text="- cost -"
android:textSize="20dp"
android:layout_alignParentRight="true"
android:layout_marginTop="50dp"
android:layout_height="wrap_content"
app:srcCompat="@drawable/location_img"
android:layout_below="@id/txt_avg_price"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
</TextView>
android:layout_marginTop="50dp"
android:layout_centerHorizontal="true"/>
<!-- Display stores in google map -->
<TextView
android:id="@+id/txt_stores"
android:text="Available stores nearby:"
android:textSize="20dp"
android:layout_marginTop="70dp"
android:layout_below="@id/txt_avg_replacement_cost"
android:layout_below="@id/img_location"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:textColor="@color/black">
</TextView>
<Button
......@@ -94,14 +95,24 @@
</Button>
<!-- Replacing video tutorials -->
<ImageView
android:id="@+id/img_replacing"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:srcCompat="@drawable/replacing_img"
android:layout_below="@id/btn_launch_stores"
android:layout_marginTop="50dp"
android:layout_centerHorizontal="true"/>
<TextView
android:id="@+id/txt_replacing_videos"
android:text="How to replace the spare part:"
android:textSize="20dp"
android:layout_below="@id/btn_launch_stores"
android:layout_below="@id/img_replacing"
android:layout_marginTop="60dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:textColor="@color/black">
</TextView>
<Button
......
......@@ -4,7 +4,8 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
tools:context=".spareparts.SparePartsMainActivity"
android:background="#1DB7AE">
<LinearLayout
android:orientation="vertical"
......@@ -12,13 +13,20 @@
android:layout_height="match_parent">
<RelativeLayout
android:layout_marginTop="100dp"
android:layout_marginTop="60dp"
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp"
android:layout_marginBottom="50dp"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
android:id="@+id/imageView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:srcCompat="@drawable/parts_img"
android:layout_centerHorizontal="true">
</ImageView>
<!-- Topic -->
<TextView
android:id="@+id/txt_topic"
......@@ -26,8 +34,10 @@
android:textSize="30dp"
android:textStyle="bold"
android:textAlignment="center"
android:textColor="@color/black"
android:layout_width="match_parent"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:layout_below="@id/imageView">
</TextView>
<!-- Vehicle model input -->
......@@ -38,7 +48,8 @@
android:text="Vehicle model:"
android:textSize="20dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:textColor="@color/black">
</TextView>
<Spinner
......@@ -47,7 +58,8 @@
android:layout_below="@id/txt_vehicle_model"
android:layout_alignParentRight="true"
android:layout_width="match_parent"
android:layout_height="30dp">
android:layout_height="40dp"
android:textColor="@color/black">
</Spinner>
<!-- Vehicle type input -->
......@@ -58,7 +70,8 @@
android:text="Vehicle type:"
android:textSize="20dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:textColor="@color/black">
</TextView>
<Spinner
......@@ -67,7 +80,8 @@
android:layout_below="@id/txt_vehicle_type"
android:layout_alignParentRight="true"
android:layout_width="match_parent"
android:layout_height="30dp">
android:layout_height="40dp"
android:textColor="@color/black">
</Spinner>
<!-- Spare part type input -->
......@@ -78,7 +92,8 @@
android:text="Spare part type:"
android:textSize="20dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
android:layout_height="wrap_content"
android:textColor="@color/black">
</TextView>
<Spinner
......@@ -87,7 +102,8 @@
android:layout_below="@id/txt_spare_part"
android:layout_alignParentRight="true"
android:layout_width="match_parent"
android:layout_height="30dp">
android:layout_height="40dp"
android:textColor="@color/black">
</Spinner>
<!-- Select the year -->
......@@ -98,7 +114,8 @@
android:text="For the year of:"
android:textSize="20dp"
android:layout_marginTop="40dp"
android:layout_below="@+id/spin_spare_part">
android:layout_below="@+id/spin_spare_part"
android:textColor="@color/black">
</TextView>
<Spinner
......@@ -107,7 +124,8 @@
android:layout_below="@id/txt_year"
android:layout_alignParentRight="true"
android:layout_width="match_parent"
android:layout_height="40dp">
android:layout_height="40dp"
android:textColor="@color/black">
</Spinner>
<!-- Search button -->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment