[Android] Add setPreferredFramesPerSecond for MapView (#13498)
* [Android] Add setPreferredFramesPerSecond for MapView
This commit is contained in:
@@ -71,6 +71,29 @@
|
||||
app:layout_anchor="@id/bottom_sheet"
|
||||
app:layout_anchorGravity="bottom|end"/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/fps_60"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="end|start"
|
||||
app:backgroundTint="@color/primary"
|
||||
android:layout_margin="@dimen/fab_margin"
|
||||
android:text="@string/fps60"
|
||||
app:layout_anchor="@id/bottom_sheet"
|
||||
app:layout_anchorGravity="top|end"/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/fps_30"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="top|end"
|
||||
android:layout_marginBottom="82dp"
|
||||
app:backgroundTint="@color/primary"
|
||||
android:layout_marginEnd="@dimen/fab_margin"
|
||||
android:layout_marginRight="@dimen/fab_margin"
|
||||
android:text="@string/fps30"
|
||||
app:layout_anchor="@id/fps_60"
|
||||
app:layout_anchorGravity="top"/>
|
||||
</android.support.design.widget.CoordinatorLayout>
|
||||
|
||||
<android.support.design.widget.NavigationView
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<string name="app_name">Mapbox Android SDK TestApp</string>
|
||||
<string name="fps30">fps30</string>
|
||||
<string name="fps60">fps60</string>
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user