Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <androidx.coordinatorlayout.widget.CoordinatorLayout 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"
- android:fitsSystemWindows="true"
- tools:context="com.okebos.passenger.bosRide.InProgressActivity">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="vertical">
- <com.google.android.material.appbar.AppBarLayout
- android:id="@+id/appbar"
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <androidx.appcompat.widget.Toolbar
- android:id="@+id/toolbar"
- android:layout_width="match_parent"
- android:layout_height="?attr/actionBarSize"
- android:background="@drawable/auth_background"
- app:contentInsetStartWithNavigation="0dp"
- app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
- app:theme="@style/Toolbar.Light" />
- <TextView
- android:id="@+id/rideCar_title"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerInParent="true"
- android:fontFamily="@font/neosanspro_medium"
- android:paddingLeft="@dimen/spacing_large"
- android:paddingTop="@dimen/spacing_regular"
- android:paddingRight="@dimen/spacing_large"
- android:paddingBottom="@dimen/spacing_regular"
- android:text="@string/app_name"
- android:textAllCaps="true"
- android:textColor="@color/fui_bgGoogle"
- android:textSize="18sp"
- android:textStyle="bold" />
- </RelativeLayout>
- </com.google.android.material.appbar.AppBarLayout>
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <fragment
- android:id="@+id/rideCar_mapView"
- android:name="com.google.android.gms.maps.SupportMapFragment"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_marginBottom="155dp"
- android:layout_marginTop="0dp" />
- <androidx.cardview.widget.CardView
- android:id="@+id/cancelBook"
- android:layout_width="wrap_content"
- android:layout_height="40dp"
- android:layout_alignParentRight="true"
- android:layout_alignParentBottom="true"
- android:layout_marginRight="10dp"
- android:layout_marginBottom="165dp"
- android:backgroundTint="@color/white"
- android:elevation="5dp"
- android:tint="@color/material_red_accent_400"
- app:cardCornerRadius="10dp">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <TextView
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:padding="10dp"
- android:text="Batalkan"
- android:tint="@color/material_red_900" />
- </LinearLayout>
- </androidx.cardview.widget.CardView>
- <androidx.cardview.widget.CardView
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_margin="@dimen/spacing_middle"
- app:cardBackgroundColor="@android:color/white"
- app:cardCornerRadius="3dp"
- app:cardUseCompatPadding="false"
- app:elevation="4dp">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:orientation="horizontal">
- <LinearLayout
- android:layout_width="wrap_content"
- android:layout_height="match_parent"
- android:gravity="center_horizontal"
- android:orientation="vertical"
- android:paddingBottom="@dimen/spacing_large"
- android:paddingLeft="12dp"
- android:paddingRight="@dimen/spacing_large"
- android:paddingTop="@dimen/spacing_large">
- <ImageView
- android:layout_width="18dp"
- android:layout_height="18dp"
- android:background="@drawable/shape_circle_solid"
- android:padding="3dp"
- android:src="@drawable/ic_origin" />
- <View
- android:layout_width="2dp"
- android:layout_height="0dp"
- android:layout_weight="1"
- android:background="@drawable/shape_dash_line_vert" />
- <ImageView
- android:layout_width="18dp"
- android:layout_height="18dp"
- android:src="@drawable/shape_circle_outline"
- android:tint="@color/button_green" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_weight="5"
- android:orientation="vertical">
- <com.balysv.materialripple.MaterialRippleLayout
- android:id="@+id/lyt_pickup"
- style="@style/RippleStyleBlack"
- android:layout_width="match_parent"
- android:layout_height="45dp"
- android:background="?attr/selectableItemBackground">
- <TextView
- android:id="@+id/rideCar_pickUpText"
- android:layout_width="match_parent"
- android:layout_gravity="center_vertical"
- android:layout_height="wrap_content"
- android:background="@null"
- android:hint="@string/ride_location"
- android:maxLines="1"
- android:textSize="13sp"
- android:textColor="@color/grey_text"
- />
- </com.balysv.materialripple.MaterialRippleLayout>
- <View
- android:layout_width="match_parent"
- android:layout_height="1dp"
- android:background="@color/grey_bg" />
- <com.balysv.materialripple.MaterialRippleLayout
- android:id="@+id/lyt_destination"
- style="@style/RippleStyleBlack"
- android:layout_width="match_parent"
- android:layout_height="45dp">
- <TextView
- android:id="@+id/rideCar_destinationText"
- android:layout_width="match_parent"
- android:layout_gravity="center_vertical"
- android:layout_height="wrap_content"
- android:background="@null"
- android:hint="@string/ride_setDestination"
- android:maxLines="1"
- android:textSize="13sp"
- android:textColor="@color/grey_text"
- />
- </com.balysv.materialripple.MaterialRippleLayout>
- </LinearLayout>
- </LinearLayout>
- </androidx.cardview.widget.CardView>
- <Space
- android:id="@+id/rideCar_space"
- android:layout_width="0dp"
- android:layout_height="0dp"
- android:layout_centerInParent="true" />
- <RelativeLayout
- android:id="@+id/rideCar_selector"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_alignParentBottom="true"
- android:background="@color/material_light_white"
- android:clickable="true"
- android:paddingBottom="3dp"
- android:paddingLeft="48dp"
- android:paddingRight="48dp"
- android:paddingTop="3dp"
- android:visibility="gone">
- <RelativeLayout
- android:id="@+id/rideCar_select_car_container"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:clickable="true">
- <ImageView
- android:id="@+id/rideCar_select_car"
- android:layout_width="52dp"
- android:layout_height="wrap_content"
- android:layout_centerHorizontal="true"
- android:adjustViewBounds="true"
- android:src="@drawable/icon_mcar_selector" />
- <TextView
- android:id="@+id/rideCar_select_car_text"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_below="@+id/rideCar_select_car"
- android:layout_centerHorizontal="true"
- android:maxLines="1"
- android:text="@string/home_mCar"
- android:textAllCaps="true"
- android:textColor="@color/text_service_selector"
- android:textSize="16sp"
- android:textStyle="bold" />
- </RelativeLayout>
- <RelativeLayout
- android:id="@+id/rideCar_select_ride_container"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentRight="true"
- android:clickable="true">
- <ImageView
- android:id="@+id/rideCar_select_ride"
- android:layout_width="52dp"
- android:layout_height="wrap_content"
- android:layout_centerHorizontal="true"
- android:adjustViewBounds="true"
- android:src="@drawable/icon_mride_selector" />
- <TextView
- android:id="@+id/ride_car_select_ride_text"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_below="@+id/rideCar_select_ride"
- android:layout_centerHorizontal="true"
- android:maxLines="1"
- android:text="@string/home_mRide"
- android:textAllCaps="true"
- android:textColor="@color/text_service_selector"
- android:textSize="16sp"
- android:textStyle="bold" />
- </RelativeLayout>
- </RelativeLayout>
- <View
- android:layout_width="match_parent"
- android:layout_height="5dp"
- android:background="@drawable/bg_gradient_soft"
- android:layout_above="@+id/rideCar_detail"/>
- <LinearLayout
- android:id="@+id/rideCar_detail"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_alignParentBottom="true"
- android:orientation="vertical"
- android:visibility="visible">
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="@color/white"
- android:clickable="true"
- android:padding="8dp">
- <TextView
- android:id="@+id/rideCar_distance"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerVertical="true"
- android:text="@string/ride_price"
- android:textColor="@color/black"
- android:textSize="16sp" />
- <TextView
- android:id="@+id/rideCar_price"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentRight="true"
- android:layout_centerVertical="true"
- android:text="@string/ride_cost"
- android:textColor="@color/black"
- android:textSize="16sp" />
- </RelativeLayout>
- <FrameLayout
- android:layout_width="match_parent"
- android:layout_height="120dp"
- android:background="@color/material_light_white"
- android:clickable="true">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:orientation="horizontal">
- <LinearLayout
- android:layout_width="100dp"
- android:layout_height="match_parent"
- android:gravity="center"
- android:orientation="vertical">
- <com.makeramen.roundedimageview.RoundedImageView
- android:id="@+id/driver_image"
- android:layout_width="@dimen/_50ssp"
- android:layout_height="@dimen/_50ssp"
- android:scaleType="fitXY"
- app:riv_border_color="@color/black"
- app:riv_corner_radius="@dimen/_10ssp" />
- <TextView
- android:id="@+id/driver_name"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginTop="5dp"
- android:gravity="center"
- android:text="Ariana Grande-Butera"
- android:textSize="12dp" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="1.5dp"
- android:layout_height="match_parent"
- android:layout_marginBottom="10dp"
- android:layout_marginTop="10dp"
- android:background="@color/grey" />
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_weight="1"
- android:gravity="center"
- android:orientation="vertical"
- android:paddingLeft="10dp"
- android:paddingRight="10dp">
- <TextView
- android:id="@+id/order_number"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Order No. 343345344" />
- <TextView
- android:id="@+id/driver_police_number"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="B 15 A" />
- <TextView
- android:id="@+id/driver_car"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Toyota 86" />
- <TextView
- android:id="@+id/driver_arriving_time"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:text="Arriving in 5 mins"
- android:textColor="@color/black" />
- </LinearLayout>
- <LinearLayout
- android:layout_width="1.5dp"
- android:layout_height="match_parent"
- android:layout_marginBottom="10dp"
- android:layout_marginTop="10dp"
- android:background="@color/grey" />
- <LinearLayout
- android:layout_width="100dp"
- android:layout_height="match_parent"
- android:gravity="center"
- android:orientation="vertical">
- <ImageView
- android:id="@+id/chat_driver"
- android:layout_width="50dp"
- android:layout_height="50dp"
- android:tint="@color/colorPrimary"
- app:srcCompat="@android:drawable/sym_action_chat" />
- <ImageView
- android:id="@+id/call_driver"
- android:layout_width="50dp"
- android:layout_height="50dp"
- android:src="@drawable/ic_phone"
- android:tint="@color/colorPrimary" />
- </LinearLayout>
- </LinearLayout>
- </FrameLayout>
- <Button
- android:id="@+id/rideCar_order"
- style="@style/Widget.AppCompat.Button.Borderless"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:background="@color/black"
- android:text="@string/text_order"
- android:textColor="@color/material_light_white"
- android:textSize="18sp"
- android:visibility="gone" />
- </LinearLayout>
- </RelativeLayout>
- </LinearLayout>
- </androidx.coordinatorlayout.widget.CoordinatorLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement