-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
7 changed files
with
105 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
app/src/main/java/com/mapbox/maps/testapp/examples/ScaleBarActivity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.mapbox.maps.testapp.examples | ||
|
||
import android.os.Bundle | ||
import androidx.appcompat.app.AppCompatActivity | ||
import com.mapbox.maps.testapp.R | ||
|
||
/** | ||
* Activity to showcase scale bar custom configuration using xml attributes. | ||
*/ | ||
class ScaleBarActivity : AppCompatActivity() { | ||
|
||
override fun onCreate(savedInstanceState: Bundle?) { | ||
super.onCreate(savedInstanceState) | ||
setContentView(R.layout.activity_scale_bar) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<com.mapbox.maps.MapView xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:id="@+id/mapView" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
app:mapbox_cameraTargetLat="61.489557808394814" | ||
app:mapbox_cameraTargetLng="23.735379149896005" | ||
app:mapbox_cameraZoom="14.940602577615023" | ||
|
||
app:mapbox_scaleBarBorderWidth="1dp" | ||
app:mapbox_scaleBarHeight="5dp" | ||
app:mapbox_scaleBarGravity="bottom|center_horizontal" | ||
app:mapbox_scaleBarIsMetricUnits="true" | ||
app:mapbox_scaleBarMarginBottom="50dp" | ||
app:mapbox_scaleBarMarginRight="0dp" | ||
app:mapbox_scaleBarPrimaryColor="@android:color/black" | ||
app:mapbox_scaleBarRatio="0.8" | ||
app:mapbox_scaleBarSecondaryColor="@android:color/white" | ||
app:mapbox_scaleBarShowTextBorder="true" | ||
app:mapbox_scaleBarTextBarMargin="10dp" | ||
app:mapbox_scaleBarTextBorderWidth="5dp" | ||
app:mapbox_scaleBarTextColor="@android:color/black" | ||
app:mapbox_scaleBarTextSize="10dp" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters