Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Commit

Permalink
Refactoring RelativeLayout to FrameLayout
Browse files Browse the repository at this point in the history
  • Loading branch information
Langston Smith committed Sep 2, 2019
1 parent c3332c5 commit 0c2f16a
Show file tree
Hide file tree
Showing 69 changed files with 214 additions and 282 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:mapbox="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
Expand All @@ -15,4 +15,4 @@
mapbox:mapbox_cameraTargetLng="-18.167040"
mapbox:mapbox_cameraZoom="4.5" />

</RelativeLayout>
</FrameLayout>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:mapbox="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
Expand All @@ -15,4 +15,4 @@
mapbox:mapbox_cameraTargetLng="18.52982"
mapbox:mapbox_cameraZoom="8"/>

</RelativeLayout>
</FrameLayout>

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:mapbox="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
Expand All @@ -15,4 +15,4 @@
mapbox:mapbox_cameraTargetLng="-0.11968"
mapbox:mapbox_cameraZoom="15"/>

</RelativeLayout>
</FrameLayout>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:mapbox="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
Expand All @@ -15,4 +15,4 @@
mapbox:mapbox_cameraTargetLng="-120.981"
mapbox:mapbox_cameraZoom="4"/>

</RelativeLayout>
</FrameLayout>
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:mapbox="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".examples.camera.BoundingBoxCameraActivity">
tools:context=".examples.camera.RestrictCameraActivity">

<com.mapbox.mapboxsdk.plugins.china.maps.ChinaMapView
android:id="@id/mapView"
android:layout_width="match_parent"
android:layout_height="match_parent"
mapbox:mapbox_cameraTargetLat="-26.145"
mapbox:mapbox_cameraTargetLng="134.312"
mapbox:mapbox_cameraZoom="2"
/>
mapbox:mapbox_cameraZoom="2" />

</RelativeLayout>
</FrameLayout>
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:mapbox="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".examples.basics.SimpleMapViewActivity">
tools:context=".examples.labs.MarkerFollowingRouteActivity">

<com.mapbox.mapboxsdk.plugins.china.maps.ChinaMapView
android:id="@+id/mapView"
Expand All @@ -15,4 +15,4 @@
mapbox:mapbox_cameraTargetLng="-122.3915"
mapbox:mapbox_cameraZoom="12"/>

</RelativeLayout>
</FrameLayout>
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">

<com.mapbox.mapboxsdk.plugins.china.maps.ChinaMapView
android:id="@+id/mapView"
android:layout_width="match_parent"
android:layout_height="match_parent"
/>
android:layout_height="match_parent" />

</RelativeLayout>
</FrameLayout>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:mapbox="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
Expand All @@ -21,8 +21,7 @@
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="match_parent"
android:layout_height="25dp"
android:layout_centerHorizontal="true"
android:layout_centerInParent="true"
android:layout_gravity="center"
android:paddingLeft="25dp"
android:paddingRight="25dp"
android:visibility="gone"/>
Expand All @@ -32,7 +31,7 @@
style="?android:attr/buttonBarStyle"
android:layout_width="match_parent"
android:layout_height="56dp"
android:layout_alignParentBottom="true"
android:layout_gravity="bottom"
android:background="@color/colorAccent"
android:elevation="8dp"
android:orientation="horizontal"
Expand Down Expand Up @@ -66,4 +65,4 @@
android:textSize="12sp"/>

</LinearLayout>
</RelativeLayout>
</FrameLayout>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:mapbox="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
Expand All @@ -21,10 +21,9 @@
style="?android:attr/progressBarStyleHorizontal"
android:layout_width="match_parent"
android:layout_height="25dp"
android:layout_centerHorizontal="true"
android:layout_centerInParent="true"
android:layout_gravity="center"
android:paddingLeft="25dp"
android:paddingRight="25dp"
android:visibility="gone"/>

</RelativeLayout>
</FrameLayout>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:mapbox="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
Expand All @@ -15,4 +15,4 @@
mapbox:mapbox_cameraTargetLng="-95.3625"
mapbox:mapbox_cameraZoom="16"/>

</RelativeLayout>
</FrameLayout>
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:mapbox="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".examples.basics.SimpleMapViewActivity">
tools:context=".examples.query.HighlightedLineActivity">

<com.mapbox.mapboxsdk.plugins.china.maps.ChinaMapView
android:id="@+id/mapView"
android:layout_width="match_parent"
android:layout_height="match_parent"
mapbox:mapbox_cameraTargetLat="50.844999"
mapbox:mapbox_cameraTargetLng="4.356449"
mapbox:mapbox_cameraZoom="15"
/>
mapbox:mapbox_cameraZoom="15" />

</RelativeLayout>
</FrameLayout>
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:mapbox="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".examples.query.QueryFeatureActivity">
tools:context=".examples.query.SelectBuildingActivity">

<com.mapbox.mapboxsdk.plugins.china.maps.ChinaMapView
android:id="@+id/mapView"
Expand All @@ -14,4 +14,4 @@
mapbox:mapbox_cameraTargetLng="-95.3625"
mapbox:mapbox_cameraZoom="16" />

</RelativeLayout>
</FrameLayout>
Original file line number Diff line number Diff line change
@@ -1,31 +1,41 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:mapbox="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".examples.styles.ColorSwitcherActivity">


<com.mapbox.mapboxsdk.maps.MapView
android:id="@+id/mapView"
android:layout_width="match_parent"
android:layout_height="match_parent"
mapbox:mapbox_cameraTargetLat="45.4385"
mapbox:mapbox_cameraTargetLng="12.338"
mapbox:mapbox_cameraZoom="17.4"/>

<LinearLayout
android:id="@+id/color_picker_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_gravity="bottom"
android:background="#ffffff"
android:orientation="vertical"
android:paddingStart="24dp"
android:paddingLeft="24dp"
android:paddingTop="24dp"
android:paddingBottom="10dp"
android:paddingEnd="24dp"
android:paddingLeft="24dp"
android:paddingRight="24dp"
android:paddingBottom="10dp">
android:paddingStart="24dp"
android:paddingTop="24dp">

<Spinner
android:id="@+id/spinner_layer_picker"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:entries="@array/layer_spinner_array" />
android:entries="@array/layer_spinner_array"/>

<LinearLayout
android:layout_width="match_parent"
Expand All @@ -35,14 +45,14 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Red" />
android:text="Red"/>

<SeekBar
android:id="@+id/red_seek_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:max="255"
android:progress="202" />
android:progress="202"/>

</LinearLayout>

Expand All @@ -54,14 +64,14 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Green" />
android:text="Green"/>

<SeekBar
android:id="@+id/green_seek_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:max="255"
android:progress="210" />
android:progress="210"/>

</LinearLayout>

Expand All @@ -73,25 +83,17 @@
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Blue" />
android:text="Blue"/>

<SeekBar
android:id="@+id/blue_seek_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:max="255"
android:progress="211" />
android:progress="211"/>

</LinearLayout>
</LinearLayout>

<com.mapbox.mapboxsdk.plugins.china.maps.ChinaMapView
android:id="@+id/mapView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@id/color_picker_content"
mapbox:mapbox_cameraTargetLat="45.4385"
mapbox:mapbox_cameraTargetLng="12.338"
mapbox:mapbox_cameraZoom="17.4" />

</RelativeLayout>
</FrameLayout>
Loading

0 comments on commit 0c2f16a

Please sign in to comment.