Advertisement
dexs

Untitled

Feb 3rd, 2020
619
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 20.20 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.     xmlns:app="http://schemas.android.com/apk/res-auto"
  4.     xmlns:tools="http://schemas.android.com/tools"
  5.     android:layout_width="match_parent"
  6.     android:layout_height="match_parent"
  7.     android:fitsSystemWindows="true"
  8.     tools:context="com.okebos.passenger.bosRide.InProgressActivity">
  9.  
  10.     <LinearLayout
  11.         android:layout_width="match_parent"
  12.         android:layout_height="match_parent"
  13.         android:orientation="vertical">
  14.  
  15.         <com.google.android.material.appbar.AppBarLayout
  16.             android:id="@+id/appbar"
  17.             android:layout_width="match_parent"
  18.             android:layout_height="wrap_content">
  19.  
  20.             <RelativeLayout
  21.                 android:layout_width="match_parent"
  22.                 android:layout_height="wrap_content">
  23.  
  24.                 <androidx.appcompat.widget.Toolbar
  25.                     android:id="@+id/toolbar"
  26.                     android:layout_width="match_parent"
  27.                     android:layout_height="?attr/actionBarSize"
  28.                     android:background="@drawable/auth_background"
  29.                     app:contentInsetStartWithNavigation="0dp"
  30.                     app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
  31.                     app:theme="@style/Toolbar.Light" />
  32.  
  33.  
  34.                 <TextView
  35.                     android:id="@+id/rideCar_title"
  36.                     android:layout_width="wrap_content"
  37.                     android:layout_height="wrap_content"
  38.                     android:layout_centerInParent="true"
  39.                     android:fontFamily="@font/neosanspro_medium"
  40.                     android:paddingLeft="@dimen/spacing_large"
  41.                     android:paddingTop="@dimen/spacing_regular"
  42.                     android:paddingRight="@dimen/spacing_large"
  43.                     android:paddingBottom="@dimen/spacing_regular"
  44.                     android:text="@string/app_name"
  45.                     android:textAllCaps="true"
  46.                     android:textColor="@color/fui_bgGoogle"
  47.                     android:textSize="18sp"
  48.                     android:textStyle="bold" />
  49.  
  50.             </RelativeLayout>
  51.  
  52.         </com.google.android.material.appbar.AppBarLayout>
  53.  
  54.  
  55.  
  56.         <RelativeLayout
  57.             android:layout_width="match_parent"
  58.             android:layout_height="match_parent">
  59.  
  60.             <fragment
  61.                 android:id="@+id/rideCar_mapView"
  62.                 android:name="com.google.android.gms.maps.SupportMapFragment"
  63.                 android:layout_width="match_parent"
  64.                 android:layout_height="match_parent"
  65.                 android:layout_marginBottom="155dp"
  66.                 android:layout_marginTop="0dp" />
  67.  
  68.             <androidx.cardview.widget.CardView
  69.                 android:id="@+id/cancelBook"
  70.                 android:layout_width="wrap_content"
  71.                 android:layout_height="40dp"
  72.                 android:layout_alignParentRight="true"
  73.                 android:layout_alignParentBottom="true"
  74.                 android:layout_marginRight="10dp"
  75.                 android:layout_marginBottom="165dp"
  76.                 android:backgroundTint="@color/white"
  77.                 android:elevation="5dp"
  78.                 android:tint="@color/material_red_accent_400"
  79.                 app:cardCornerRadius="10dp">
  80.  
  81.                 <LinearLayout
  82.                     android:layout_width="match_parent"
  83.                     android:layout_height="match_parent">
  84.  
  85.                     <TextView
  86.                         android:layout_width="match_parent"
  87.                         android:layout_height="match_parent"
  88.                         android:padding="10dp"
  89.                         android:text="Batalkan"
  90.                         android:tint="@color/material_red_900" />
  91.                 </LinearLayout>
  92.  
  93.             </androidx.cardview.widget.CardView>
  94.  
  95.  
  96.  
  97.             <androidx.cardview.widget.CardView
  98.                 android:layout_width="match_parent"
  99.                 android:layout_height="wrap_content"
  100.                 android:layout_margin="@dimen/spacing_middle"
  101.                 app:cardBackgroundColor="@android:color/white"
  102.                 app:cardCornerRadius="3dp"
  103.                 app:cardUseCompatPadding="false"
  104.                 app:elevation="4dp">
  105.  
  106.                 <LinearLayout
  107.                     android:layout_width="match_parent"
  108.                     android:layout_height="wrap_content"
  109.                     android:orientation="horizontal">
  110.  
  111.  
  112.                     <LinearLayout
  113.                         android:layout_width="wrap_content"
  114.                         android:layout_height="match_parent"
  115.                         android:gravity="center_horizontal"
  116.                         android:orientation="vertical"
  117.                         android:paddingBottom="@dimen/spacing_large"
  118.                         android:paddingLeft="12dp"
  119.                         android:paddingRight="@dimen/spacing_large"
  120.                         android:paddingTop="@dimen/spacing_large">
  121.  
  122.                         <ImageView
  123.                             android:layout_width="18dp"
  124.                             android:layout_height="18dp"
  125.                             android:background="@drawable/shape_circle_solid"
  126.                             android:padding="3dp"
  127.                             android:src="@drawable/ic_origin" />
  128.  
  129.                         <View
  130.                             android:layout_width="2dp"
  131.                             android:layout_height="0dp"
  132.                             android:layout_weight="1"
  133.                             android:background="@drawable/shape_dash_line_vert" />
  134.  
  135.                         <ImageView
  136.                             android:layout_width="18dp"
  137.                             android:layout_height="18dp"
  138.                             android:src="@drawable/shape_circle_outline"
  139.                             android:tint="@color/button_green" />
  140.  
  141.                     </LinearLayout>
  142.  
  143.                     <LinearLayout
  144.                         android:layout_width="0dp"
  145.                         android:layout_height="wrap_content"
  146.                         android:layout_weight="5"
  147.                         android:orientation="vertical">
  148.  
  149.                         <com.balysv.materialripple.MaterialRippleLayout
  150.                             android:id="@+id/lyt_pickup"
  151.                             style="@style/RippleStyleBlack"
  152.                             android:layout_width="match_parent"
  153.                             android:layout_height="45dp"
  154.                             android:background="?attr/selectableItemBackground">
  155.  
  156.  
  157.                             <TextView
  158.                                 android:id="@+id/rideCar_pickUpText"
  159.                                 android:layout_width="match_parent"
  160.                                 android:layout_gravity="center_vertical"
  161.                                 android:layout_height="wrap_content"
  162.                                 android:background="@null"
  163.                                 android:hint="@string/ride_location"
  164.                                 android:maxLines="1"
  165.                                 android:textSize="13sp"
  166.                                 android:textColor="@color/grey_text"
  167.                                 />
  168.  
  169.                         </com.balysv.materialripple.MaterialRippleLayout>
  170.  
  171.                         <View
  172.                             android:layout_width="match_parent"
  173.                             android:layout_height="1dp"
  174.                             android:background="@color/grey_bg" />
  175.  
  176.  
  177.                         <com.balysv.materialripple.MaterialRippleLayout
  178.                             android:id="@+id/lyt_destination"
  179.                             style="@style/RippleStyleBlack"
  180.                             android:layout_width="match_parent"
  181.                             android:layout_height="45dp">
  182.  
  183.                             <TextView
  184.                                 android:id="@+id/rideCar_destinationText"
  185.                                 android:layout_width="match_parent"
  186.                                 android:layout_gravity="center_vertical"
  187.                                 android:layout_height="wrap_content"
  188.                                 android:background="@null"
  189.                                 android:hint="@string/ride_setDestination"
  190.                                 android:maxLines="1"
  191.                                 android:textSize="13sp"
  192.                                 android:textColor="@color/grey_text"
  193.                                 />
  194.  
  195.                         </com.balysv.materialripple.MaterialRippleLayout>
  196.                     </LinearLayout>
  197.  
  198.                 </LinearLayout>
  199.  
  200.             </androidx.cardview.widget.CardView>
  201.  
  202.  
  203.  
  204.  
  205.             <Space
  206.                 android:id="@+id/rideCar_space"
  207.                 android:layout_width="0dp"
  208.                 android:layout_height="0dp"
  209.                 android:layout_centerInParent="true" />
  210.  
  211.  
  212.             <RelativeLayout
  213.                 android:id="@+id/rideCar_selector"
  214.                 android:layout_width="match_parent"
  215.                 android:layout_height="wrap_content"
  216.                 android:layout_alignParentBottom="true"
  217.                 android:background="@color/material_light_white"
  218.                 android:clickable="true"
  219.                 android:paddingBottom="3dp"
  220.                 android:paddingLeft="48dp"
  221.                 android:paddingRight="48dp"
  222.                 android:paddingTop="3dp"
  223.                 android:visibility="gone">
  224.  
  225.                 <RelativeLayout
  226.                     android:id="@+id/rideCar_select_car_container"
  227.                     android:layout_width="wrap_content"
  228.                     android:layout_height="wrap_content"
  229.                     android:clickable="true">
  230.  
  231.                     <ImageView
  232.                         android:id="@+id/rideCar_select_car"
  233.                         android:layout_width="52dp"
  234.                         android:layout_height="wrap_content"
  235.                         android:layout_centerHorizontal="true"
  236.                         android:adjustViewBounds="true"
  237.                         android:src="@drawable/icon_mcar_selector" />
  238.  
  239.                     <TextView
  240.                         android:id="@+id/rideCar_select_car_text"
  241.                         android:layout_width="wrap_content"
  242.                         android:layout_height="wrap_content"
  243.                         android:layout_below="@+id/rideCar_select_car"
  244.                         android:layout_centerHorizontal="true"
  245.                         android:maxLines="1"
  246.                         android:text="@string/home_mCar"
  247.                         android:textAllCaps="true"
  248.                         android:textColor="@color/text_service_selector"
  249.                         android:textSize="16sp"
  250.                         android:textStyle="bold" />
  251.                 </RelativeLayout>
  252.  
  253.                 <RelativeLayout
  254.                     android:id="@+id/rideCar_select_ride_container"
  255.                     android:layout_width="wrap_content"
  256.                     android:layout_height="wrap_content"
  257.                     android:layout_alignParentRight="true"
  258.                     android:clickable="true">
  259.  
  260.                     <ImageView
  261.                         android:id="@+id/rideCar_select_ride"
  262.                         android:layout_width="52dp"
  263.                         android:layout_height="wrap_content"
  264.                         android:layout_centerHorizontal="true"
  265.                         android:adjustViewBounds="true"
  266.                         android:src="@drawable/icon_mride_selector" />
  267.  
  268.                     <TextView
  269.                         android:id="@+id/ride_car_select_ride_text"
  270.                         android:layout_width="wrap_content"
  271.                         android:layout_height="wrap_content"
  272.                         android:layout_below="@+id/rideCar_select_ride"
  273.                         android:layout_centerHorizontal="true"
  274.                         android:maxLines="1"
  275.                         android:text="@string/home_mRide"
  276.                         android:textAllCaps="true"
  277.                         android:textColor="@color/text_service_selector"
  278.                         android:textSize="16sp"
  279.                         android:textStyle="bold" />
  280.                 </RelativeLayout>
  281.  
  282.  
  283.             </RelativeLayout>
  284.  
  285.             <View
  286.                 android:layout_width="match_parent"
  287.                 android:layout_height="5dp"
  288.                 android:background="@drawable/bg_gradient_soft"
  289.                 android:layout_above="@+id/rideCar_detail"/>
  290.  
  291.             <LinearLayout
  292.                 android:id="@+id/rideCar_detail"
  293.                 android:layout_width="match_parent"
  294.                 android:layout_height="wrap_content"
  295.                 android:layout_alignParentBottom="true"
  296.                 android:orientation="vertical"
  297.                 android:visibility="visible">
  298.  
  299.                 <RelativeLayout
  300.                     android:layout_width="match_parent"
  301.                     android:layout_height="wrap_content"
  302.                     android:background="@color/white"
  303.                     android:clickable="true"
  304.                     android:padding="8dp">
  305.  
  306.                     <TextView
  307.                         android:id="@+id/rideCar_distance"
  308.                         android:layout_width="wrap_content"
  309.                         android:layout_height="wrap_content"
  310.                         android:layout_centerVertical="true"
  311.                         android:text="@string/ride_price"
  312.                         android:textColor="@color/black"
  313.                         android:textSize="16sp" />
  314.  
  315.                     <TextView
  316.                         android:id="@+id/rideCar_price"
  317.                         android:layout_width="wrap_content"
  318.                         android:layout_height="wrap_content"
  319.                         android:layout_alignParentRight="true"
  320.                         android:layout_centerVertical="true"
  321.                         android:text="@string/ride_cost"
  322.                         android:textColor="@color/black"
  323.                         android:textSize="16sp" />
  324.                 </RelativeLayout>
  325.  
  326.                 <FrameLayout
  327.                     android:layout_width="match_parent"
  328.                     android:layout_height="120dp"
  329.                     android:background="@color/material_light_white"
  330.                     android:clickable="true">
  331.  
  332.                     <LinearLayout
  333.                         android:layout_width="match_parent"
  334.                         android:layout_height="match_parent"
  335.                         android:orientation="horizontal">
  336.  
  337.                         <LinearLayout
  338.                             android:layout_width="100dp"
  339.                             android:layout_height="match_parent"
  340.                             android:gravity="center"
  341.                             android:orientation="vertical">
  342.  
  343.                             <com.makeramen.roundedimageview.RoundedImageView
  344.                                 android:id="@+id/driver_image"
  345.                                 android:layout_width="@dimen/_50ssp"
  346.                                 android:layout_height="@dimen/_50ssp"
  347.                                 android:scaleType="fitXY"
  348.                                 app:riv_border_color="@color/black"
  349.                                 app:riv_corner_radius="@dimen/_10ssp" />
  350.  
  351.                             <TextView
  352.                                 android:id="@+id/driver_name"
  353.                                 android:layout_width="wrap_content"
  354.                                 android:layout_height="wrap_content"
  355.                                 android:layout_marginTop="5dp"
  356.                                 android:gravity="center"
  357.                                 android:text="Ariana Grande-Butera"
  358.                                 android:textSize="12dp" />
  359.                         </LinearLayout>
  360.  
  361.                         <LinearLayout
  362.                             android:layout_width="1.5dp"
  363.                             android:layout_height="match_parent"
  364.                             android:layout_marginBottom="10dp"
  365.                             android:layout_marginTop="10dp"
  366.                             android:background="@color/grey" />
  367.  
  368.                         <LinearLayout
  369.                             android:layout_width="match_parent"
  370.                             android:layout_height="match_parent"
  371.                             android:layout_weight="1"
  372.                             android:gravity="center"
  373.                             android:orientation="vertical"
  374.                             android:paddingLeft="10dp"
  375.                             android:paddingRight="10dp">
  376.  
  377.                             <TextView
  378.                                 android:id="@+id/order_number"
  379.                                 android:layout_width="match_parent"
  380.                                 android:layout_height="wrap_content"
  381.                                 android:text="Order No. 343345344" />
  382.  
  383.                             <TextView
  384.                                 android:id="@+id/driver_police_number"
  385.                                 android:layout_width="match_parent"
  386.                                 android:layout_height="wrap_content"
  387.                                 android:text="B 15 A" />
  388.  
  389.                             <TextView
  390.                                 android:id="@+id/driver_car"
  391.                                 android:layout_width="match_parent"
  392.                                 android:layout_height="wrap_content"
  393.                                 android:text="Toyota 86" />
  394.  
  395.                             <TextView
  396.                                 android:id="@+id/driver_arriving_time"
  397.                                 android:layout_width="match_parent"
  398.                                 android:layout_height="wrap_content"
  399.                                 android:text="Arriving in 5 mins"
  400.                                 android:textColor="@color/black" />
  401.  
  402.  
  403.                         </LinearLayout>
  404.  
  405.                         <LinearLayout
  406.                             android:layout_width="1.5dp"
  407.                             android:layout_height="match_parent"
  408.                             android:layout_marginBottom="10dp"
  409.                             android:layout_marginTop="10dp"
  410.                             android:background="@color/grey" />
  411.  
  412.                         <LinearLayout
  413.                             android:layout_width="100dp"
  414.                             android:layout_height="match_parent"
  415.                             android:gravity="center"
  416.                             android:orientation="vertical">
  417.  
  418.                             <ImageView
  419.                                 android:id="@+id/chat_driver"
  420.                                 android:layout_width="50dp"
  421.                                 android:layout_height="50dp"
  422.                                 android:tint="@color/colorPrimary"
  423.                                 app:srcCompat="@android:drawable/sym_action_chat" />
  424.  
  425.                             <ImageView
  426.                                 android:id="@+id/call_driver"
  427.                                 android:layout_width="50dp"
  428.                                 android:layout_height="50dp"
  429.                                 android:src="@drawable/ic_phone"
  430.                                 android:tint="@color/colorPrimary" />
  431.  
  432.                         </LinearLayout>
  433.  
  434.  
  435.                     </LinearLayout>
  436.  
  437.  
  438.                 </FrameLayout>
  439.  
  440.                 <Button
  441.                     android:id="@+id/rideCar_order"
  442.                     style="@style/Widget.AppCompat.Button.Borderless"
  443.                     android:layout_width="match_parent"
  444.                     android:layout_height="wrap_content"
  445.                     android:background="@color/black"
  446.                     android:text="@string/text_order"
  447.                     android:textColor="@color/material_light_white"
  448.                     android:textSize="18sp"
  449.                     android:visibility="gone" />
  450.             </LinearLayout>
  451.  
  452.         </RelativeLayout>
  453.     </LinearLayout>
  454.  
  455. </androidx.coordinatorlayout.widget.CoordinatorLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement