Advertisement
Guest User

Untitled

a guest
Mar 5th, 2017
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.78 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2.  
  3. <android.support.design.widget.CoordinatorLayout
  4.    xmlns:android="http://schemas.android.com/apk/res/android"
  5.    xmlns:app="http://schemas.android.com/apk/res-auto"
  6.    android:layout_width="match_parent"
  7.    android:layout_height="match_parent"
  8.    android:background="@android:color/background_light"
  9.    android:fitsSystemWindows="true"
  10.    >
  11. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  12.    xmlns:app="http://schemas.android.com/apk/res-auto"
  13.    xmlns:tools="http://schemas.android.com/tools"
  14.    android:id="@+id/activity_main"
  15.    android:layout_width="match_parent"
  16.    android:layout_height="match_parent"
  17.    android:orientation="vertical">
  18.  
  19.     <android.support.design.widget.AppBarLayout
  20.        android:layout_width="match_parent"
  21.        android:layout_height="wrap_content"
  22.        android:theme="@style/AppTheme.AppBarOverlay"
  23.        app:expanded="false">
  24.  
  25.     <LinearLayout
  26.        android:layout_width="match_parent"
  27.        android:layout_height="match_parent"
  28.        android:weightSum="6"
  29.        android:orientation="horizontal"
  30.        android:paddingTop="8dp"
  31.        android:paddingBottom="8dp">
  32.  
  33.         <LinearLayout
  34.            android:layout_width="0dp"
  35.            android:layout_height="match_parent"
  36.            android:layout_weight="1"
  37.            android:orientation="vertical"
  38.            android:weightSum="3">
  39.             <ImageView
  40.                android:layout_width="match_parent"
  41.                android:layout_height="wrap_content"
  42.                app:srcCompat="@drawable/ic_person_pin_circle_white_24dp"
  43.                android:id="@+id/imageView4"
  44.                android:layout_weight="1"/>
  45.             <ImageView
  46.                android:layout_width="match_parent"
  47.                android:layout_height="wrap_content"
  48.                app:srcCompat="@drawable/ic_more_vert_white_24dp"
  49.                android:id="@+id/imageView5"
  50.                android:layout_weight="1"/>
  51.             <ImageView
  52.                android:layout_width="match_parent"
  53.                android:layout_height="wrap_content"
  54.                app:srcCompat="@drawable/ic_place_white_24dp"
  55.                android:id="@+id/imageView6"
  56.                android:layout_weight="1"/>
  57.         </LinearLayout>
  58.  
  59.         <LinearLayout
  60.            android:layout_width="0dp"
  61.            android:layout_height="match_parent"
  62.            android:layout_weight="4"
  63.            android:orientation="vertical">
  64.             <EditText
  65.                android:layout_width="match_parent"
  66.                android:layout_height="wrap_content"
  67.                android:inputType="textPersonName"
  68.                android:hint="Enter source address"
  69.                android:ems="10"
  70.                android:id="@+id/sourceAddr"
  71.                android:textAppearance="@android:style/TextAppearance.Material.Large"
  72.                android:textSize="20sp" />
  73.  
  74.             <EditText
  75.                android:layout_width="match_parent"
  76.                android:layout_height="wrap_content"
  77.                android:inputType="text"
  78.                android:ems="10"
  79.                android:hint="Enter target address"
  80.                android:id="@+id/targetAddr"
  81.                android:textAppearance="@android:style/TextAppearance.Material.Large"
  82.                android:textSize="20sp" />
  83.         </LinearLayout>
  84.  
  85.         <RelativeLayout
  86.            android:layout_width="0dp"
  87.            android:layout_height="match_parent"
  88.            android:layout_weight="1"
  89.            android:orientation="vertical">
  90.             <ImageButton
  91.                android:layout_width="match_parent"
  92.                android:layout_height="wrap_content"
  93.                android:layout_centerInParent="true"
  94.                app:srcCompat="@drawable/ic_swap_vert_white_36dp"
  95.                android:background="@android:color/transparent"
  96.                android:id="@+id/imageButton2" />
  97.         </RelativeLayout>
  98.     </LinearLayout>
  99.  
  100.     </android.support.design.widget.AppBarLayout>
  101.     <WebView
  102.        android:layout_width="match_parent"
  103.        android:layout_height="match_parent"
  104.        android:layout_alignParentTop="true"
  105.        android:layout_alignParentStart="true"
  106.        android:id="@+id/webView" >
  107.     </WebView>
  108. </LinearLayout>
  109.     <android.support.design.widget.FloatingActionButton
  110.        android:id="@+id/fab"
  111.        android:layout_width="match_parent"
  112.        android:layout_height="wrap_content"
  113.        android:layout_gravity="bottom|right"
  114.        android:layout_margin="@dimen/fab_margin"
  115.        android:layout_weight="1"
  116.        android:adjustViewBounds="false"
  117.        app:fabSize="normal"
  118.        android:src="@drawable/ic_search_white_36dp" />
  119.  
  120. </android.support.design.widget.CoordinatorLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement