[android] LocationComponent animator throttling tests and examples
This commit is contained in:
committed by
Łukasz Paczos
parent
953e6dca5b
commit
f897f128e6
@@ -174,6 +174,10 @@ public class LocationModesActivity extends AppCompatActivity implements OnMapRea
|
||||
} else if (id == R.id.action_gestures_management_enabled) {
|
||||
enableGesturesManagement();
|
||||
return true;
|
||||
} else if (id == R.id.action_component_throttling_enabled) {
|
||||
locationComponent.setMaxAnimationFps(5);
|
||||
} else if (id == R.id.action_component_throttling_disabled) {
|
||||
locationComponent.setMaxAnimationFps(Integer.MAX_VALUE);
|
||||
}
|
||||
|
||||
return super.onOptionsItemSelected(item);
|
||||
|
||||
@@ -24,4 +24,12 @@
|
||||
<item android:id="@+id/action_gestures_management_disabled"
|
||||
android:title="Disable Gestures Management"
|
||||
app:showAsAction="never"/>
|
||||
|
||||
<item android:id="@+id/action_component_throttling_enabled"
|
||||
android:title="Enable animation throttling (5 FPS)"
|
||||
app:showAsAction="never"/>
|
||||
|
||||
<item android:id="@+id/action_component_throttling_disabled"
|
||||
android:title="Disable animation throttling"
|
||||
app:showAsAction="never"/>
|
||||
</menu>
|
||||
Reference in New Issue
Block a user