laptop and a wrench

Erro

The zoom level is reset when the AppBar is initially hidden in the ArcGIS Runtime SDK for Android application.

Última Publicação: November 15, 2018 ArcGIS Runtime SDK
Número de ID do Erro BUG-000116700
EnviadoSeptember 11, 2018
Última ModificaçãoJune 5, 2024
Aplica-se àArcGIS Runtime SDK
Versão encontrada100.3
Sistema OperacionalAndroid
Versão do Sistema Operacional8.1x
StatusWill Not Be Addressed

Informações Adicionais

This is not an issue with the ArcGIS Runtime SDK for Android. The Android documentation found here: https://developer.android.com/training/system-ui/immersive shows recommended steps to enable full screen mode which does not display jerky map movement behavior. Below is modified code that smoothly shows/hides the ActionBar. ``` @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); mMapView = findViewById(R.id.esri_map_view); ArcGISMap map = new ArcGISMap(Basemap.Type.TOPOGRAPHIC, 34.056295, -117.195800, 16); getWindow().getDecorView().setSystemUiVisibility (View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN); mMapView.setMap(map); FloatingActionButton fab = findViewById(R.id.fab_zoom_full_extent); fab.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { if (getSupportActionBar().isShowing()) { getWindow().getDecorView().setSystemUiVisibility (View.SYSTEM_UI_FLAG_IMMERSIVE // Set the content to appear under the system bars so that the // content doesn't resize when the system bars hide and show. | View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN // Hide the nav bar and status bar | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_FULLSCREEN); } else { getWindow().getDecorView().setSystemUiVisibility (View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN); } } }); } ```

Etapas para Reproduzir

ID do Erro: BUG-000116700

Software:

  • ArcGIS Runtime SDK

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download