Guest User

XML of the Layout

a guest
Nov 11th, 2016
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 23.97 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    android:orientation="vertical" android:layout_width="match_parent"
  4.    android:layout_height="match_parent"
  5.    android:background="#FFFFFF">
  6.  
  7.     <include layout="@layout/toolbar" android:id="@+id/toolbar"/>
  8.     <ScrollView
  9.        android:layout_width="wrap_content"
  10.        android:layout_height="wrap_content"
  11.        android:id="@+id/scrollView4"
  12.        android:layout_gravity="left|top">
  13.  
  14.  
  15.         <LinearLayout
  16.            android:orientation="vertical"
  17.            android:layout_width="match_parent"
  18.            android:layout_height="match_parent">
  19.  
  20.  
  21.             <LinearLayout
  22.                android:orientation="horizontal"
  23.                android:layout_width="wrap_content"
  24.                android:layout_height="wrap_content"
  25.                android:layout_marginLeft="12dp"
  26.                android:layout_marginTop="12dp"
  27.                android:layout_marginRight="12dp">
  28.  
  29.                 <TextView
  30.                    android:layout_width="wrap_content"
  31.                    android:layout_height="wrap_content"
  32.                    android:text="Select Ship Name"
  33.                    android:id="@+id/l_shipDetail"
  34.                    android:textColor="@color/colorPrimary"
  35.                    android:textStyle="bold"
  36.                    android:singleLine="true"
  37.                    android:textSize="14dp"
  38.                    android:layout_marginTop="12dp"
  39.                    android:layout_marginRight="12dp" />
  40.  
  41.                 <ImageButton
  42.                    android:layout_width="wrap_content"
  43.                    android:layout_height="wrap_content"
  44.                    android:id="@+id/btnsearch"
  45.                    android:src="@drawable/search"
  46.                    android:background="#FFFFFF"
  47.                    android:layout_marginLeft="180dp"
  48.                    android:layout_gravity="center" />
  49.  
  50.             </LinearLayout>
  51.  
  52.             <View
  53.                android:layout_height="1.5dp"
  54.                android:layout_width="wrap_content"
  55.                android:background="@color/colorPrimary"
  56.                android:layout_marginLeft="14dp"
  57.                android:layout_marginRight="14dp"
  58.                android:alpha="0.6"/>
  59.  
  60.             <TextView
  61.                android:layout_width="wrap_content"
  62.                android:layout_height="wrap_content"
  63.                android:id="@+id/n_ship"
  64.                android:layout_margin="12dp"
  65.                android:textSize="16dp"
  66.                android:text="SHIP NAME  |"
  67.                android:textColor="@color/myEditTextColor" />
  68.             <TextView
  69.                android:layout_width="wrap_content"
  70.                android:layout_height="wrap_content"
  71.                android:text="Ship Details"
  72.                android:id="@+id/l_shipName"
  73.                android:textColor="@color/colorPrimary"
  74.                android:textStyle="bold"
  75.                android:singleLine="true"
  76.                android:textSize="14dp"
  77.                android:layout_marginTop="12dp"
  78.                android:layout_marginRight="12dp"
  79.                android:layout_marginLeft="12dp" />
  80.             <View
  81.                android:layout_height="1.6dp"
  82.                android:layout_width="wrap_content"
  83.                android:background="@color/colorPrimary"
  84.                android:layout_marginLeft="14dp"
  85.                android:layout_marginRight="14dp"
  86.                android:alpha="0.6"/>
  87.  
  88.             <TextView
  89.                android:layout_width="wrap_content"
  90.                android:layout_height="wrap_content"
  91.                android:text="L.O.A     |"
  92.                android:id="@+id/loa"
  93.                android:layout_margin="12dp"
  94.                android:textSize="16dp"
  95.                android:textColor="@color/myEditTextColor" />
  96.  
  97.             <View
  98.                android:layout_height="0.5dp"
  99.                android:layout_width="fill_parent"
  100.                android:background="@color/colorAccent"
  101.  
  102.                android:alpha="0.6"/>
  103.  
  104.             <TextView
  105.                android:layout_width="wrap_content"
  106.                android:layout_height="wrap_content"
  107.                android:text="G.R.T     |"
  108.                android:id="@+id/grt"
  109.                android:textColor="@color/myEditTextColor"
  110.                android:layout_margin="12dp"
  111.                android:textSize="16dp" />
  112.  
  113.             <View
  114.                android:layout_height="0.5dp"
  115.                android:layout_width="fill_parent"
  116.                android:background="@color/colorAccent"
  117.  
  118.                android:alpha="0.6"/>
  119.  
  120.             <TextView
  121.                android:layout_width="wrap_content"
  122.                android:layout_height="wrap_content"
  123.                android:text="N.R.T     |"
  124.                android:id="@+id/nrt"
  125.                android:textColor="@color/myEditTextColor"
  126.                android:layout_margin="12dp"
  127.                android:textSize="16dp" />
  128.  
  129.             <View
  130.                android:layout_height="0.5dp"
  131.                android:layout_width="fill_parent"
  132.                android:background="@color/colorAccent"
  133.                android:alpha="0.6"/>
  134.  
  135.             <TextView
  136.                android:layout_width="wrap_content"
  137.                android:layout_height="wrap_content"
  138.                android:text="BEAM    |"
  139.                android:id="@+id/beam"
  140.                android:textColor="@color/myEditTextColor"
  141.                android:layout_margin="12dp"
  142.                android:textSize="16dp" />
  143.             <View
  144.                android:layout_height="0.5dp"
  145.                android:layout_width="fill_parent"
  146.                android:background="@color/colorAccent"
  147.  
  148.                android:alpha="0.6"/>
  149.  
  150.  
  151.             <TextView
  152.                android:layout_width="wrap_content"
  153.                android:layout_height="wrap_content"
  154.                android:text="P.C No.  |"
  155.                android:id="@+id/pc"
  156.                android:textColor="@color/myEditTextColor"
  157.                android:layout_margin="12dp"
  158.                android:textSize="16dp" />
  159.  
  160.             <View
  161.                android:layout_height="0.5dp"
  162.                android:layout_width="fill_parent"
  163.                android:background="@color/colorAccent"
  164.                android:layout_marginBottom="12dp"
  165.                android:alpha="0.6"/>
  166.  
  167.  
  168.  
  169.  
  170.             <TextView
  171.                android:layout_width="wrap_content"
  172.                android:layout_height="wrap_content"
  173.                android:text="Commodity"
  174.                android:id="@+id/l_commd"
  175.                android:textColor="@color/colorPrimary"
  176.                android:textStyle="bold"
  177.                android:singleLine="false"
  178.                android:textSize="14dp"
  179.                android:layout_marginTop="12dp"
  180.                android:layout_marginRight="12dp"
  181.                android:layout_marginLeft="12dp"/>
  182.  
  183.             <View
  184.                android:layout_height="1.6dp"
  185.                android:layout_width="wrap_content"
  186.                android:background="@color/colorPrimary"
  187.                android:layout_marginLeft="14dp"
  188.                android:layout_marginRight="14dp"/>
  189.             <!--       android:alpha="0.6"/>
  190.           <TextView
  191.               android:layout_width="wrap_content"
  192.               android:layout_height="wrap_content"
  193.               android:id="@+id/commd"
  194.               android:textSize="16dp"
  195.               android:text="COMMODITY  |"
  196.               android:textColor="@color/myEditTextColor"
  197.               android:layout_marginRight="12dp"
  198.               android:layout_marginTop="12dp"
  199.               android:layout_marginLeft="12dp" />-->
  200.             <LinearLayout
  201.                android:orientation="horizontal"
  202.                android:layout_width="match_parent"
  203.                android:layout_height="wrap_content"
  204.                >
  205.  
  206.                 <!--   <android.widget.Spinner
  207.                       android:layout_width="210dp"
  208.                       android:layout_height="47dp"
  209.                       android:id="@+id/spnr_commodity"
  210.                       android:clickable="true"
  211.                       android:spinnerMode="dialog"
  212.                       android:touchscreenBlocksFocus="false"
  213.                       android:focusableInTouchMode="true"
  214.                       android:contextClickable="false"
  215.                       style="@android:style/Widget.Holo.Light.Spinner"
  216.  
  217.                       android:popupBackground="#FFFFFF"
  218.                       android:popupElevation="1.2dp"
  219.                       android:layout_marginTop="12dp"
  220.                       android:layout_marginBottom="12dp"
  221.                       android:layout_marginRight="12dp"
  222.                       android:layout_marginLeft="12dp"
  223.                       android:theme="@style/Animation.AppCompat.DropDownUp" />-->
  224.                 <Spinner
  225.                    android:layout_width="210dp"
  226.                    android:layout_height="60dp"
  227.                    android:id="@+id/spnr_commodity"
  228.                    android:clickable="false"
  229.                    android:spinnerMode="dialog"
  230.  
  231.                    style="@android:style/Widget.Holo.Light.Spinner"
  232.  
  233.  
  234.                    android:layout_marginTop="12dp"
  235.                    android:layout_marginBottom="12dp"
  236.                    android:layout_marginRight="12dp"
  237.                    android:layout_marginLeft="12dp"
  238.                    android:popupBackground="@color/colorPrimary"
  239.                    android:theme="@style/Theme.AppCompat.Light.DarkActionBar" />
  240.                 <Spinner
  241.                    android:layout_width="100dp"
  242.                    android:layout_height="60dp"
  243.                    android:id="@+id/spnr_ImpExp"
  244.                    android:clickable="false"
  245.                    android:spinnerMode="dropdown"
  246.  
  247.                    android:layout_marginTop="12dp"
  248.                    android:layout_marginBottom="12dp"
  249.                    android:layout_marginRight="12dp"
  250.                    android:layout_marginLeft="12dp"
  251.                    android:popupElevation="0.9dp"
  252.                    style="@android:style/Widget.Holo.Light.Spinner"
  253.                    android:elevation="0.8dp" />
  254.             </LinearLayout>
  255.             <TextView
  256.                android:layout_width="wrap_content"
  257.                android:layout_height="wrap_content"
  258.                android:text="CARGO QTY."
  259.                android:id="@+id/l_qty"
  260.                android:textColor="@color/colorPrimary"
  261.                android:textStyle="bold"
  262.                android:singleLine="true"
  263.                android:textSize="14dp"
  264.                android:layout_marginTop="12dp"
  265.                android:layout_marginRight="12dp"
  266.                android:layout_marginLeft="12dp" />
  267.             <View
  268.                android:layout_height="1.6dp"
  269.                android:layout_width="wrap_content"
  270.                android:background="@color/colorPrimary"
  271.                android:layout_marginLeft="14dp"
  272.                android:layout_marginRight="14dp"
  273.                android:alpha="0.6"/>
  274.  
  275.             <LinearLayout
  276.                android:orientation="horizontal"
  277.                android:layout_width="match_parent"
  278.                android:layout_height="wrap_content"
  279.                >
  280.  
  281.                 <EditText
  282.                    android:id="@+id/c_qty"
  283.                    android:layout_width="210dp"
  284.                    android:layout_height="wrap_content"
  285.                    android:layout_centerHorizontal="true"
  286.  
  287.                    android:hint="Quantity"
  288.                    android:padding="12dp"
  289.                    android:textColor="#000000"
  290.                    android:textColorHint="#897"
  291.                    android:textSize="14dp"
  292.                    android:layout_margin="12dp"
  293.                    android:autoText="false"
  294.                    android:editable="false"
  295.                    android:focusable="false"
  296.                    android:focusableInTouchMode="false"
  297.                    android:background="@android:drawable/editbox_background"
  298.                    android:backgroundTint="#f6f6f6"
  299.                    android:backgroundTintMode="multiply" />
  300.  
  301.                 <Spinner
  302.                    android:layout_width="100dp"
  303.                    android:layout_height="60dp"
  304.                    android:id="@+id/spnr_unit"
  305.                    android:spinnerMode="dropdown"
  306.                    android:touchscreenBlocksFocus="false"
  307.                    android:focusableInTouchMode="false"
  308.                    android:contextClickable="false"
  309.                    style="@android:style/Widget.Holo.Light.Spinner"
  310.  
  311.                    android:layout_marginTop="5dp"
  312.                    android:layout_marginBottom="12dp"
  313.                    android:layout_marginRight="12dp"
  314.                    android:layout_marginLeft="12dp"
  315.                    android:popupElevation="0.9dp"
  316.                    android:elevation="0.9dp"
  317.                    android:dropDownSelector="@color/colorPrimary"
  318.                    android:prompt="@string/unitprompt"
  319.                    android:theme="@style/Theme.AppCompat.Light.DarkActionBar" />
  320.             </LinearLayout>
  321.  
  322.             <!-- <LinearLayout
  323.                 android:orientation="horizontal"
  324.                 android:layout_width="wrap_content"
  325.                 android:layout_height="wrap_content"
  326.                 android:layout_marginRight="12dp"
  327.  
  328.                 android:layout_marginLeft="12dp" >
  329.  
  330.                 <TextView
  331.                     android:layout_width="wrap_content"
  332.                     android:layout_height="wrap_content"
  333.                     android:text="Select Terminal"
  334.                     android:id="@+id/l_terminal"
  335.                     android:textColor="@color/colorPrimary"
  336.                     android:textStyle="bold"
  337.                     android:singleLine="false"
  338.                     android:textSize="14dp"
  339.                     android:layout_marginTop="12dp"
  340.                     android:layout_marginRight="12dp" />
  341.  
  342.                 <ImageButton
  343.                     android:layout_width="wrap_content"
  344.                     android:layout_height="wrap_content"
  345.                     android:id="@+id/imageButton4"
  346.                     android:src="@drawable/search"
  347.                     android:background="#FFFFFF"
  348.                     android:layout_gravity="center"
  349.                     android:baselineAlignBottom="false"
  350.                     android:layout_marginLeft="190dp" />
  351.             </LinearLayout>-->
  352.             <TextView
  353.                android:layout_width="wrap_content"
  354.                android:layout_height="wrap_content"
  355.                android:text="Terminal"
  356.                android:id="@+id/l_terminal"
  357.                android:textColor="@color/colorPrimary"
  358.                android:textStyle="bold"
  359.                android:singleLine="true"
  360.                android:textSize="14dp"
  361.                android:layout_marginTop="12dp"
  362.                android:layout_marginRight="12dp"
  363.                android:layout_marginLeft="12dp" />
  364.             <View
  365.                android:layout_height="1.6dp"
  366.                android:layout_width="wrap_content"
  367.                android:background="@color/colorPrimary"
  368.                android:layout_marginLeft="14dp"
  369.                android:layout_marginRight="14dp"
  370.                android:alpha="0.6"/>
  371.  
  372.             <Spinner
  373.                android:layout_width="match_parent"
  374.                android:layout_height="60dp"
  375.                android:id="@+id/spnr_terminal"
  376.  
  377.                android:clickable="false"
  378.                android:spinnerMode="dialog"
  379.                android:touchscreenBlocksFocus="false"
  380.                android:focusableInTouchMode="false"
  381.                android:contextClickable="false"
  382.                style="@android:style/Widget.Holo.Light.Spinner"
  383.                android:layout_margin="12dp"
  384.  
  385.                />
  386.             <!--  <TextView
  387.                   android:layout_width="wrap_content"
  388.                   android:layout_height="wrap_content"
  389.                   android:id="@+id/terminal"
  390.                   android:textSize="16dp"
  391.                   android:text="TERMINAL  |"
  392.                   android:textColor="@color/myEditTextColor"
  393.                   android:layout_marginRight="12dp"
  394.                   android:layout_marginTop="12dp"
  395.                   android:layout_marginLeft="12dp" />-->
  396.             <TextView
  397.                android:layout_width="wrap_content"
  398.                android:layout_height="wrap_content"
  399.                android:text="Arival Date Time"
  400.                android:id="@+id/l_arrival_dt"
  401.                android:textColor="@color/colorPrimary"
  402.                android:textStyle="bold"
  403.                android:singleLine="true"
  404.                android:textSize="14dp"
  405.                android:layout_marginTop="12dp"
  406.                android:layout_marginRight="12dp"
  407.                android:layout_marginLeft="12dp" />
  408.             <View
  409.                android:layout_height="1.6dp"
  410.                android:layout_width="wrap_content"
  411.                android:background="@color/colorPrimary"
  412.                android:layout_marginLeft="14dp"
  413.                android:layout_marginRight="14dp"
  414.                android:alpha="0.6"/>
  415.             <LinearLayout
  416.                android:orientation="horizontal"
  417.                android:layout_width="match_parent"
  418.                android:layout_height="wrap_content"
  419.                >
  420.  
  421.                 <EditText
  422.                    android:id="@+id/a_date"
  423.                    android:layout_width="210dp"
  424.                    android:layout_height="wrap_content"
  425.                    android:layout_centerHorizontal="true"
  426.  
  427.                    android:hint="Date"
  428.                    android:textColor="#000000"
  429.                    android:textColorHint="#897"
  430.                    android:textSize="14dp"
  431.                    android:layout_margin="12dp"
  432.                    android:autoText="false"
  433.                    android:editable="false"
  434.                    android:focusable="false"
  435.                    android:focusableInTouchMode="false"
  436.                    android:background="@android:drawable/editbox_background"
  437.                    android:backgroundTint="#f6f6f6"
  438.                    android:backgroundTintMode="multiply"
  439.                    android:padding="12dp" />
  440.  
  441.                 <EditText
  442.                    android:id="@+id/a_time"
  443.                    android:layout_width="100dp"
  444.                    android:layout_height="wrap_content"
  445.                    android:layout_centerHorizontal="true"
  446.                    android:hint="Time"
  447.                    android:padding="12dp"
  448.                    android:textColor="#000000"
  449.                    android:textColorHint="#897"
  450.                    android:textSize="14dp"
  451.                    android:layout_margin="12dp"
  452.                    android:autoText="false"
  453.                    android:editable="false"
  454.                    android:focusable="false"
  455.                    android:focusableInTouchMode="false"
  456.                    android:background="@android:drawable/editbox_background"
  457.                    android:backgroundTint="#f6f6f6"
  458.                    android:backgroundTintMode="multiply" />
  459.  
  460.             </LinearLayout>
  461.  
  462.             <TextView
  463.                android:layout_width="wrap_content"
  464.                android:layout_height="wrap_content"
  465.                android:text="Departure Date"
  466.                android:id="@+id/l_departure_dt"
  467.                android:textColor="@color/colorPrimary"
  468.                android:textStyle="bold"
  469.                android:singleLine="true"
  470.                android:textSize="14dp"
  471.                android:layout_marginTop="12dp"
  472.                android:layout_marginRight="12dp"
  473.                android:layout_marginLeft="12dp" />
  474.  
  475.             <View
  476.                android:layout_height="1.6dp"
  477.                android:layout_width="wrap_content"
  478.                android:background="@color/colorPrimary"
  479.                android:layout_marginLeft="14dp"
  480.                android:layout_marginRight="14dp"
  481.                android:alpha="0.6"/>
  482.  
  483.             <EditText
  484.                android:id="@+id/d_date"
  485.                android:layout_width="210dp"
  486.                android:layout_height="wrap_content"
  487.                android:layout_centerHorizontal="true"
  488.  
  489.                android:hint="Date"
  490.                android:padding="12dp"
  491.                android:textColor="#000000"
  492.                android:textColorHint="#897"
  493.                android:textSize="14dp"
  494.                android:layout_margin="12dp"
  495.                android:autoText="false"
  496.                android:editable="false"
  497.                android:focusable="false"
  498.                android:focusableInTouchMode="false"
  499.                android:background="@android:drawable/editbox_background"
  500.                android:backgroundTint="#f6f6f6"
  501.                android:backgroundTintMode="multiply" />
  502.  
  503.  
  504.             <TextView
  505.                android:layout_width="wrap_content"
  506.                android:layout_height="wrap_content"
  507.                android:text="Last Port"
  508.                android:id="@+id/l_lastport"
  509.                android:textColor="@color/colorPrimary"
  510.                android:textStyle="bold"
  511.                android:singleLine="true"
  512.                android:textSize="14dp"
  513.                android:layout_marginTop="12dp"
  514.                android:layout_marginRight="12dp"
  515.                android:layout_marginLeft="12dp" />
  516.             <View
  517.                android:layout_height="1.6dp"
  518.                android:layout_width="wrap_content"
  519.                android:background="@color/colorPrimary"
  520.                android:layout_marginLeft="14dp"
  521.                android:layout_marginRight="14dp"
  522.                android:alpha="0.6"/>
  523.  
  524.             <Spinner
  525.                android:layout_width="210dp"
  526.                android:layout_height="60dp"
  527.                android:id="@+id/spnr_lastport"
  528.  
  529.                android:spinnerMode="dialog"
  530.  
  531.                android:layout_marginTop="5dp"
  532.                android:layout_marginBottom="12dp"
  533.                android:layout_marginRight="12dp"
  534.                android:layout_marginLeft="12dp"
  535.                android:popupBackground="@color/colorPrimary"
  536.                android:prompt="@string/lastportprompt"
  537.                style="@android:style/Widget.Holo.Light.Spinner"
  538.                android:theme="@style/agentTheme" />
  539.  
  540.             <Spinner
  541.                android:layout_width="100dp"
  542.                android:layout_height="60dp"
  543.                android:id="@+id/spnr_eta"
  544.                android:clickable="false"
  545.                android:spinnerMode="dialog"
  546.                android:touchscreenBlocksFocus="false"
  547.                android:focusableInTouchMode="false"
  548.                android:contextClickable="false"
  549.                style="@android:style/Widget.Holo.Light.Spinner"
  550.  
  551.                android:layout_marginTop="5dp"
  552.                android:layout_marginBottom="12dp"
  553.                android:layout_marginRight="12dp"
  554.                android:layout_marginLeft="12dp"
  555.                android:theme="@style/Animation.AppCompat.DropDownUp" />
  556.  
  557.         </LinearLayout>
  558.     </ScrollView>
  559.  
  560.  
  561. </LinearLayout>
  562.  
  563.     <!--  <android.support.v7.widget.SearchView
  564.            android:layout_width="wrap_content"
  565.            android:layout_height="wrap_content"
  566.            android:id="@+id/searchView" />-->
  567.  
  568.     <!--  <EditText
  569.            android:layout_width="250dp"
  570.            android:layout_height="wrap_content"
  571.            android:id="@+id/edt_shipName"
  572.            android:layout_gravity="center"
  573.            android:layout_marginTop="15dp"
  574.  
  575.  
  576.  
  577.            android:foreground="#f1f1f1"
  578.            android:hint="Select Ship Name"
  579.            android:clickable="false"
  580.            android:focusableInTouchMode="false"
  581.            android:focusable="false" />-->
Add Comment
Please, Sign In to add comment