Commit 84f099ef authored by Pearl Jen Santos's avatar Pearl Jen Santos

Finished layout save for the change in toolbar

parent 4863d05c
......@@ -72,9 +72,11 @@
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dex" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/dex-cache" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/appcompat-v7/23.1.0/jars" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/cardview-v7/23.1.1/jars" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/design/23.1.0/jars" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/recyclerview-v7/23.1.0/jars" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.android.support/support-v4/23.1.0/jars" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/exploded-aar/com.pkmmte.view/circularimageview/1.1/jars" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/incremental" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/jacoco" />
<excludeFolder url="file://$MODULE_DIR$/build/intermediates/javaResources" />
......@@ -93,6 +95,8 @@
<orderEntry type="jdk" jdkName="Android API 23 Platform" jdkType="Android SDK" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" exported="" name="recyclerview-v7-23.1.0" level="project" />
<orderEntry type="library" exported="" name="circularimageview-1.1" level="project" />
<orderEntry type="library" exported="" name="cardview-v7-23.1.1" level="project" />
<orderEntry type="library" exported="" name="support-v4-23.1.0" level="project" />
<orderEntry type="library" exported="" name="design-23.1.0" level="project" />
<orderEntry type="library" exported="" name="appcompat-v7-23.1.0" level="project" />
......
......@@ -23,4 +23,6 @@ dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.0.1'
compile 'com.android.support:design:23.1.0'
compile 'com.android.support:cardview-v7:23.1.1'
compile 'com.pkmmte.view:circularimageview:1.1'
}
......@@ -38,13 +38,9 @@ import java.util.Locale;
public class ActionBarAttempt extends AppCompatActivity {
private DrawerLayout mDrawerLayout;
private ListView mDrawerList;
private ActionBarDrawerToggle mDrawerToggle;
private CharSequence mDrawerTitle;
private CharSequence mTitle;
private String[] options;
private NavigationView nvDrawer;
// private int[] optionIcons = {R.mipmap.ic_search, R.mipmap.ic_search, R.mipmap.ic_search, R.mipmap.ic_settings, R.mipmap.ic_logout};;
Toolbar toolbar;
ActionBar actionBar;
@Override
protected void onCreate(Bundle savedInstanceState) {
......@@ -52,20 +48,22 @@ public class ActionBarAttempt extends AppCompatActivity {
setContentView(R.layout.activity_action_bar_attempt);
//setting the toolbar
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
final ActionBar actionBar = getSupportActionBar();
actionBar = getSupportActionBar();
actionBar.setDisplayHomeAsUpEnabled(true);
actionBar.setHomeButtonEnabled(true);
actionBar.setDisplayShowTitleEnabled(true);
toolbar.setNavigationIcon(R.drawable.ic_action_menu);
mTitle = mDrawerTitle = "About";
options = getResources().getStringArray(R.array.options);
mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);
nvDrawer = (NavigationView) findViewById(R.id.left_drawer);
setupDrawerContent(nvDrawer);
FragmentManager fragmentManager = getSupportFragmentManager();
fragmentManager.beginTransaction().replace(R.id.content_frame, new SearchFragment()).commit();
//mDrawerList = (ListView) findViewById(R.id.left_drawer);
......@@ -127,21 +125,22 @@ public class ActionBarAttempt extends AppCompatActivity {
Class fragmentClass;
switch(menuItem.getItemId()){
case R.id.search:
fragmentClass = SearchFragment.class;
break;
case R.id.schedules:
fragmentClass = Schedules.class;
break;
// case R.id.search:
// fragmentClass = SearchFragment.class;
// break;
case R.id.editProfile:
fragmentClass = ChangeInfoFragment.class;
actionBar.setDisplayHomeAsUpEnabled(true);
actionBar.setHomeButtonEnabled(true);
actionBar.setDisplayShowTitleEnabled(true);
toolbar.setNavigationIcon(R.drawable.ic_action_menu);
break;
case R.id.viewPastTrips:
fragmentClass = PastTrips.class;
break;
case R.id.settings:
//settings
fragmentClass = Help.class;
fragmentClass = Settings.class;
break;
case R.id.logout:
//logout
......
......@@ -8,6 +8,8 @@ import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;
import android.os.Bundle;
import android.support.v7.app.ActionBar;
import android.support.v7.widget.Toolbar;
import android.text.format.DateFormat;
import android.view.LayoutInflater;
import android.view.View;
......@@ -47,7 +49,8 @@ public class SearchFragment extends Fragment {
}
});
// Toolbar toolbar = (Toolbar) rootView.findViewById(R.id.toolbar);
// toolbar.setNavigationIcon(R.mipmap.ic_search);
return rootView;
......
package com.example.pearlsantos.project;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
/**
* Created by Pearl Santos on 11/20/2015.
*/
public class Settings extends Fragment {
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle SavedInstance) {
View rootView = inflater.inflate(R.layout.fragment_settings, container, false);
return rootView;
}
}
......@@ -5,7 +5,7 @@
<solid
android:color="@color/deep_orange_500"/>
<size
android:height="1dp"
android:width="70dp"/>
android:height="3dp"
android:width="300dp"/>
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid
android:color="@color/deep_orange_400"/>
<size
android:height="1dp"
android:width="300dp"/>
</shape>
......@@ -17,12 +17,22 @@
android:background="#ff5722"
app:contentInsetEnd="0dp"
app:contentInsetStart="0dp"
/>
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dp"
android:text="title"
android:textAppearance="@style/TextAppearance.AppCompat.Widget.ActionBar.Title"/>
</android.support.v7.widget.Toolbar>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/content_frame"
/>
</LinearLayout>
<!-- The navigation drawer -->
<!--<ListView android:id="@+id/left_drawer"-->
......@@ -35,6 +45,7 @@
<!--android:background="@color/deep_orange_300"/>-->
<android.support.design.widget.NavigationView
app:headerLayout="@layout/header"
android:id="@+id/left_drawer"
android:layout_width="wrap_content"
android:layout_height="match_parent"
......
......@@ -29,7 +29,7 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textAppearance="@style/TextAppearance.AppCompat.Headline"
android:hint="Reserve your tickets."
android:layout_gravity="center"
android:id="@+id/textView"
......
......@@ -6,7 +6,5 @@
android:paddingBottom="@dimen/activity_vertical_margin"
tools:context="com.example.pearlsantos.project.PastTrips">
<TextView android:text="@string/hello_world" android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</RelativeLayout>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<android.support.v7.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:card_view = "http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
card_view:cardCornerRadius="5dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="10dp"
>
<LinearLayout
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/LinearLayout1"
android:layout_width="match_parent"
......@@ -21,7 +31,7 @@
android:text="00 "
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:textAppearance="?android:attr/textAppearanceLarge" />
android:textAppearance="@style/TextAppearance.AppCompat.Headline" />
<TextView
android:id="@+id/noOfSeatsLabel"
......@@ -30,7 +40,7 @@
android:text="Seats Reserved!"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:textAppearance="?android:attr/textAppearanceLarge" />
android:textAppearance="@style/TextAppearance.AppCompat.Title" />
</LinearLayout>
......@@ -61,6 +71,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_gravity="center"
android:layout_weight="2">
<TextView
......@@ -68,25 +79,23 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="From"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:textAppearance="?android:attr/textAppearanceMedium" />
android:textAppearance="@style/TextAppearance.AppCompat.Button" />
<TextView
android:id="@+id/from"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="PlaceA"
android:textAppearance="?android:attr/textAppearanceMedium" />
android:text="PLACE A"
android:textAppearance="@style/TextAppearance.AppCompat.Body2" />
<TextView
android:id="@+id/depTime"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="ETD 00:00"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:textAppearance="?android:attr/textAppearanceMedium" />
android:textAppearance="@style/TextAppearance.AppCompat.Body2" />
</LinearLayout>
......@@ -95,6 +104,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_gravity="center"
android:layout_weight="2">
<TextView
......@@ -102,23 +112,22 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="To"
android:textAppearance="?android:attr/textAppearanceMedium" />
android:textAppearance="@style/TextAppearance.AppCompat.Button" />
<TextView
android:id="@+id/to"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="PlaceB"
android:textAppearance="?android:attr/textAppearanceMedium" />
android:text="PLACE B"
android:textAppearance="@style/TextAppearance.AppCompat.Body2" />
<TextView
android:id="@+id/arrTime"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="ETA 00:00"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:textAppearance="?android:attr/textAppearanceMedium" />
android:textAppearance="@style/TextAppearance.AppCompat.Body2" />
</LinearLayout>
</LinearLayout>
......@@ -148,8 +157,9 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginLeft="10dp"
android:text="00"
android:textAppearance="?android:attr/textAppearanceMedium" />
android:textAppearance="@style/TextAppearance.AppCompat.Headline" />
......@@ -161,22 +171,37 @@
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_weight="2"
android:orientation="horizontal" >
android:orientation="vertical" >
<TextView
android:id="@+id/purchaseLabel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="TOTAL: P "
android:textAppearance="?android:attr/textAppearanceLarge" />
<TextView
android:id="@+id/purchase"
android:layout_gravity="left"
android:text="TOTAL:"
android:textAppearance="@style/TextAppearance.AppCompat.Button" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:text="00"
android:textAppearance="?android:attr/textAppearanceMedium" />
android:layout_weight="2"
android:orientation="horizontal" >
<TextView
android:id="@+id/purchaseLabelP"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="left"
android:text="P"
android:textAppearance="@style/TextAppearance.AppCompat.Headline" />
<TextView
android:id="@+id/purchase"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="left"
android:layout_marginLeft="5dp"
android:text="00.00"
android:textAppearance="@style/TextAppearance.AppCompat.Headline" />
</LinearLayout>
......@@ -200,3 +225,4 @@
android:layout_marginRight="20dp"/>
</LinearLayout>
</LinearLayout>
</android.support.v7.widget.CardView>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<android.support.v7.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:card_view = "http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
card_view:cardCornerRadius="5dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="10dp"
>
<LinearLayout
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.pearlsantos.project.Help"
......@@ -9,11 +19,12 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textAppearance="@style/TextAppearance.AppCompat.Display1"
android:text="About uBus"
android:layout_gravity="top|center"
android:layout_marginTop="20dp"
android:layout_marginBottom="50dp"
android:id="@+id/about"
android:layout_weight="1"
android:layout_centerVertical="true"
android:layout_centerHorizontal="true" />
......@@ -22,10 +33,11 @@
android:layout_height="wrap_content"
android:layout_marginRight="20dp"
android:layout_marginLeft="20dp"
android:text="uBus is lorem ipsum dolor uBus is lorem ipsum dolor uBus is lorem ipsum dolor uBus is lorem ipsum dolor uBus is lorem ipsum dolor uBus is lorem ipsum dolor uBus is lorem ipsum dolor uBus is lorem ipsum dolor uBus is lorem ipsum dolor uBus is lorem ipsum dolor uBus is lorem ipsum dolor uBus is lorem ipsum dolor uBus is lorem ipsum dolor uBus is lorem ipsum dolor uBus is lorem ipsum dolor uBus is lorem ipsum dolor uBus is lorem ipsum dolor uBus is lorem ipsum dolor uBus is lorem ipsum dolor uBus is lorem ipsum dolor "
android:layout_marginBottom="40dp"
android:text=" uBus is lorem ipsum dolor uBus is lorem ipsum dolor uBus is lorem ipsum dolor uBus is lorem ipsum dolor uBus is lorem ipsum dolor uBus is lorem ipsum dolor uBus is lorem ipsum dolor uBus is lorem ipsum dolor uBus is lorem ipsum dolor uBus is lorem ipsum dolor uBus is lorem ipsum dolor uBus is lorem ipsum dolor uBus is lorem ipsum dolor uBus is lorem ipsum dolor uBus is lorem ipsum dolor uBus is lorem ipsum dolor uBus is lorem ipsum dolor uBus is lorem ipsum dolor uBus is lorem ipsum dolor uBus is lorem ipsum dolor "
android:layout_gravity="center"
android:textAppearance="@style/TextAppearance.AppCompat.Body2"
android:id="@+id/uBus_about"
android:layout_weight="2"
android:layout_centerVertical="true"
android:layout_centerHorizontal="true" />
......@@ -39,10 +51,12 @@
android:text="OK"
android:id="@+id/okayButton"
android:layout_gravity="right"
android:layout_weight="1" />
android:layout_marginRight="15dp"
android:layout_marginBottom="10dp"/>
</LinearLayout>
</LinearLayout>
</android.support.v7.widget.CardView>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app = "http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
>
<!--
**************************IMPORTANT***********************************
change this id attribute values as "frag2_icon" and "frag2_text" for
fragment_layout_two.xml and "frag3_icon" and "frag3_text" for
fragment_layout_three.xml
**********************************************************************
-->
<LinearLayout
android:orientation="vertical"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:layout_weight="1">
<TextView
android:gravity="center"
android:id="@+id/frag1_text"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="10dp"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="Change Info"/>
</LinearLayout>
<LinearLayout
android:orientation="vertical"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:layout_weight="1">
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:background="@color/deep_orange_500">
<EditText
android:layout_width="wrap_content"
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<com.pkmmte.view.CircularImageView
android:id="@+id/profile_image"
app:border="true"
app:border_color="@color/white"
app:border_width="4dp"
app:shadow="true"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_margin="10dp"
android:src="@mipmap/ic_launcher"
android:layout_centerVertical="true"
android:layout_alignParentStart="true" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_gravity="center"
android:layout_marginRight="10dp">
<EditText
android:layout_width="242dp"
android:layout_height="match_parent"
android:id="@+id/firstNameChange"
android:textAppearance="@style/TextAppearance.AppCompat.Title"
android:textColorHint="@color/white"
android:hint="Kunyari"/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/lastNameChange"
android:textAppearance="@style/TextAppearance.AppCompat.Title"
android:textColorHint="@color/white"
android:hint="Lang"/>
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:inputType="textPersonName"
android:hint="Name"
android:ems="20"
android:id="@+id/editText" />
android:orientation="vertical"
android:layout_marginLeft="10dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Upload Photo"
android:layout_marginTop="5dp"
android:layout_marginBottom="2dp"
android:textAppearance="@style/TextAppearance.AppCompat.Button"
android:textColorLink="@color/blue_500"
android:clickable="true"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Delete Photo"
android:layout_marginBottom="5dp"
android:textAppearance="@style/TextAppearance.AppCompat.Button"
android:textColorLink="@color/blue_500"
android:clickable="true"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:hint="0917 123 4567"
android:textAppearance="@style/TextAppearance.AppCompat.Title"
android:textColorHint="@color/white"/>
</LinearLayout>
</LinearLayout>
<android.support.v7.widget.CardView
xmlns:card_view = "http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
card_view:cardCornerRadius="5dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
>
<LinearLayout
android:orientation="vertical"
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:layout_weight="1">
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Change Password"
android:layout_margin="10dp"
android:textAppearance="@style/TextAppearance.AppCompat.Headline"/>
<EditText
android:layout_width="wrap_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/editText2"
android:ems="20"
android:hint="Number" />
</LinearLayout>
android:hint="Old Password"
android:textAppearance="@style/TextAppearance.AppCompat.Body2"
android:layout_margin="5dp"/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="New Password"
android:textAppearance="@style/TextAppearance.AppCompat.Body2"
android:layout_margin="5dp"/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Re-enter New Password"
android:textAppearance="@style/TextAppearance.AppCompat.Body2"
android:layout_margin="5dp"/>
</LinearLayout>
</android.support.v7.widget.CardView>
</LinearLayout>
\ No newline at end of file
......@@ -5,22 +5,6 @@
android:orientation="vertical"
>
<!--
**************************IMPORTANT***********************************
change this id attribute values as "frag2_icon" and "frag2_text" for
fragment_layout_two.xml and "frag3_icon" and "frag3_text" for
fragment_layout_three.xml
**********************************************************************
-->
<TextView
android:id="@+id/frag2_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="Past Trips"/>
<ListView
android:layout_width="wrap_content"
......
......@@ -7,119 +7,144 @@
tools:context="com.example.pearlsantos.project.SearchFragment"
android:orientation="vertical">
<LinearLayout
<android.support.v7.widget.CardView
xmlns:card_view = "http://schemas.android.com/apk/res-auto"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:layout_gravity="center"
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp"
android:layout_marginTop="10dp"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="Saan ka pupunta?"
android:layout_marginBottom="5dp"
android:id="@+id/destinationLabel" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceSmall"
android:text="GALING"
android:id="@+id/fromLabelSearch"
android:layout_marginBottom="5dp" />
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Pangunahing Terminal"
android:id="@+id/fromSearch"
android:layout_marginBottom="5dp" />
card_view:cardCornerRadius="5dp"
android:layout_margin="10dp"
>
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:textAppearance="?android:attr/textAppearanceSmall"
android:text="PAPUNTANG"
android:id="@+id/toLabelSearch"
android:layout_marginBottom="5dp" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/change"
android:src="@mipmap/ic_change"
android:layout_gravity="right" />
</LinearLayout>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Destinasyon"
android:id="@+id/toSearch"
android:layout_marginBottom="5dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceSmall"
android:text="BUS LINER"
android:id="@+id/busLinersLabel"
android:layout_marginBottom="5dp" />
<Spinner
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/busLiners"
android:layout_marginBottom="5dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceSmall"
android:text="ANONG ORAS?"
android:id="@+id/timeLabel"
android:layout_marginBottom="5dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_height="fill_parent"
android:orientation="vertical"
android:layout_gravity="center"
android:textAppearance="?android:attr/textAppearanceLarge"
android:id="@+id/digitalClock" />
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp"
android:layout_marginTop="10dp"
>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="@style/TextAppearance.AppCompat.Headline"
android:text="Saan ka pupunta?"
android:layout_marginBottom="5dp"
android:id="@+id/destinationLabel" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="@style/TextAppearance.AppCompat.Button"
android:text="GALING"
android:id="@+id/fromLabelSearch"
android:layout_marginBottom="5dp"
android:layout_marginLeft="10dp"/>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Pangunahing Terminal"
android:id="@+id/fromSearch"
android:layout_marginBottom="5dp"
android:layout_marginLeft="10dp"/>
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:textAppearance="@style/TextAppearance.AppCompat.Button"
android:text="PAPUNTANG"
android:id="@+id/toLabelSearch"
android:layout_marginBottom="5dp"
android:layout_marginLeft="10dp"/>
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/change"
android:src="@mipmap/ic_change"
android:layout_gravity="right" />
</LinearLayout>
<EditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="Destinasyon"
android:id="@+id/toSearch"
android:layout_marginBottom="5dp"
android:layout_marginLeft="10dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="@style/TextAppearance.AppCompat.Button"
android:text="BUS LINER"
android:id="@+id/busLinersLabel"
android:layout_marginBottom="5dp"
android:layout_marginLeft="10dp"/>
<Spinner
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/busLiners"
android:textAppearance="@style/TextAppearance.AppCompat.Spinner"
android:layout_marginBottom="5dp"
android:layout_marginLeft="10dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="@style/TextAppearance.AppCompat.Button"
android:text="ANONG ORAS?"
android:id="@+id/timeLabel"
android:layout_marginBottom="5dp"
android:layout_marginLeft="10dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:textAppearance="?android:attr/textAppearanceLarge"
android:id="@+id/digitalClock" />
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:orientation="horizontal"
android:layout_marginBottom="5dp"
android:gravity="right">
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="ULITIN"
android:id="@+id/reset"
android:layout_gravity="center_horizontal" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="HANAPIN"
android:id="@+id/searchFor"
android:layout_gravity="center_horizontal" />
</LinearLayout>
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:orientation="horizontal"
android:gravity="right">
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="ULITIN"
android:id="@+id/reset"
android:layout_gravity="center_horizontal" />
<Button
android:layout_width="wrap_content"
</LinearLayout>
</android.support.v7.widget.CardView>
<ListView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="HANAPIN"
android:id="@+id/searchFor"
android:id="@+id/schedule"
android:layout_gravity="center_horizontal" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
......@@ -16,7 +16,7 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textAppearance="@style/TextAppearance.AppCompat.Button"
android:text="SORT AVAILABLE TRIPS BY"
android:id="@+id/textView4"
android:layout_marginBottom="10dp"
......@@ -27,12 +27,13 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:drawableBottom="@drawable/underline2"
android:id="@+id/spinner"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textAppearance="@style/TextAppearance.AppCompat.Button"
android:text="CLEAR DATA"
android:layout_marginBottom="10dp"
android:id="@+id/textView5"
......@@ -41,32 +42,35 @@
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_marginBottom="10dp">
android:layout_marginBottom="5dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
android:textAppearance="?android:attr/textAppearanceMedium"
android:layout_marginTop="5dp"
android:layout_marginBottom="5dp"
android:drawableBottom="@drawable/underline2"
android:text="Clear Search Data"
android:id="@+id/clearSearchData"
android:drawableBottom="@drawable/underline" />
android:id="@+id/clearSearchData"/>
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:drawableBottom="@drawable/underline2"
android:layout_marginBottom="10dp">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
android:textAppearance="?android:attr/textAppearanceLarge"
android:layout_marginTop="5dp"
android:layout_marginBottom="5dp"
android:drawableBottom="@drawable/underline2"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="Clear Past Trips"
android:id="@+id/clearPastTrips"/>
</LinearLayout>
......
<?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"
android:layout_width="match_parent"
android:layout_height="192dp"
android:padding="16dp"
android:background="@color/deep_orange_500">
<com.pkmmte.view.CircularImageView
android:id="@+id/profile_image"
app:border="true"
app:border_color="@color/white"
app:border_width="4dp"
app:shadow="true"
android:layout_width="100dp"
android:layout_height="100dp"
android:src="@mipmap/ic_launcher"
android:layout_centerVertical="true"
android:layout_alignParentStart="true" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="5dp"
android:text="Kunyari"
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
android:textColor="@color/white"
android:id="@+id/textView6"
android:layout_alignTop="@+id/profile_image"
android:layout_centerHorizontal="true"
android:layout_marginBottom="5dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Lang"
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
android:textColor="@color/white"
android:id="@+id/textView8"
android:layout_alignTop="@+id/textView6"
android:layout_toEndOf="@+id/textView6"
android:layout_marginBottom="5dp"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="0917 123 4567"
android:layout_marginBottom="5dp"
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
android:textColor="@color/white"
android:id="@+id/textView9"
android:layout_below="@+id/textView6"
android:layout_alignStart="@+id/textView6" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="LOAD: "
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
android:textColor="@color/white"
android:id="@+id/textView10"
android:layout_below="@+id/textView9"
android:layout_alignStart="@+id/textView9" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="P100.00"
android:textAppearance="@style/TextAppearance.AppCompat.Body1"
android:textColor="@color/white"
android:id="@+id/textView11"
android:layout_below="@+id/textView9"
android:layout_toEndOf="@+id/textView10" />
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<group android:checkableBehavior="single">
<item
android:id="@+id/search"
android:icon="@mipmap/ic_search"
android:title="Search"/>
<item
android:id="@+id/schedules"
android:icon="@mipmap/ic_new_profile"
android:title="Edit Profile"/>
<!--<item-->
<!--android:id="@+id/search"-->
<!--android:checked="true"-->
<!--android:icon="@mipmap/ic_search"-->
<!--android:title="Search"/>-->
<!--<item-->
<!--android:id="@+id/schedules"-->
<!--android:icon="@mipmap/ic_new_profile"-->
<!--android:title="Schedules"/>-->
<item
android:id="@+id/editProfile"
android:icon="@mipmap/ic_new_profile"
......
......@@ -4,11 +4,11 @@
tools:context="com.example.pearlsantos.project.ActionBarAttempt">
<item android:id="@+id/action_search"
android:title="Search"
android:icon="@mipmap/ic_search"
android:orderInCategory="100"
app:showAsAction="ifRoom|collapseActionView"
app:actionViewClass="android.support.v7.widget.SearchView"/>
<!--<item android:id="@+id/action_search"-->
<!--android:title="Search"-->
<!--android:icon="@mipmap/ic_search"-->
<!--android:orderInCategory="100"-->
<!--app:showAsAction="ifRoom|collapseActionView"-->
<!--app:actionViewClass="android.support.v7.widget.SearchView"/>-->
</menu>
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