Skip to content

Instantly share code, notes, and snippets.

/map layout.xml Secret

Created March 9, 2017 11:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/a23aea4b1a61faa2b417402bf792cfdf to your computer and use it in GitHub Desktop.
Save anonymous/a23aea4b1a61faa2b417402bf792cfdf to your computer and use it in GitHub Desktop.
map layout.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#fff"
tools:context="com.xeline.levelapp.NeighbourHoodMapFragment">
<fragment xmlns:android="http://schemas.android.com/apk/res/android"
android:name="com.google.android.gms.maps.MapFragment"
android:id="@+id/neighbour_map"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
<RelativeLayout
android:layout_width="match_parent"
android:background="@color/colorPrimaryDark"
android:layout_height="44dp">
<ImageButton
android:id="@+id/backbutton"
android:layout_marginLeft="15dp"
android:background="@android:color/transparent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/back_button"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentRight="true"
android:gravity="center_vertical"
android:orientation="horizontal">
</LinearLayout>
</RelativeLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_alignParentBottom="true"
android:layout_height="200dp">
<com.lsjwzh.widget.recyclerviewpager.RecyclerViewPager
android:id="@+id/map_item_rv"
android:layout_width="match_parent"
android:layout_height="200dp"
app:rvp_triggerOffset="0.1"
app:rvp_singlePageFling="true"
android:clipToPadding="false"/>
</RelativeLayout>
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment