Facebook
From Scorching Gorilla, 6 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 260
  1. <fragment xmlns:android="http://schemas.android.com/apk/res/android"
  2.     xmlns:app="http://schemas.android.com/apk/res-auto"
  3.     xmlns:tools="http://schemas.android.com/tools"
  4.     android:id="@+id/map"
  5.     android:name="com.google.android.gms.maps.SupportMapFragment"
  6.     android:layout_width="match_parent"
  7.     android:layout_height="match_parent"
  8.     tools:context="com.example.garella.kchfoodtrucktrackingapps.Welcome_">
  9.  
  10.     <RelativeLayout
  11.         android:layout_width="match_parent"
  12.         android:layout_height="match_parent">
  13.  
  14.         <android.support.v7.widget.CardView
  15.             app:cardElevation="10dp"
  16.             android:layout_width="match_parent"
  17.             android:layout_height="wrap_content">
  18.  
  19.             <LinearLayout
  20.                 android:layout_alignParentBottom="true"
  21.                 android:orientation="horizontal"
  22.                 android:weightSum="10"
  23.                 android:layout_margin="16dp"
  24.                 android:layout_width="match_parent"
  25.                 android:layout_height="wrap_content">
  26.  
  27.                 <com.github.glomadrian.materialanimatedswitch.MaterialAnimatedSwitch
  28.                     android:layout_width="0dp"
  29.                     android:layout_height="wrap_content"
  30.                     android:layout_weight="3"
  31.                     android:id="@+id/location_switch"
  32.                     app:icon_release="@drawable/ic_location_off"
  33.                     app:icon_press="@drawable/ic_location_on"
  34.                     app:base_release_color="@color/baseReleaseColor"
  35.                     app:base_press_color="@color/basePressColor"
  36.                     app:ball_release_color="@color/ballReleaseColor"
  37.                     app:ball_press_color="@android:color/white"/>
  38.  
  39.             </LinearLayout>
  40.  
  41.         </android.support.v7.widget.CardView>
  42.  
  43.     </RelativeLayout>
  44. </fragment>
  45.