Monthly archives: September, 2016

Developing Accessible Applications in Android

Android has several accessibility-focused features baked into the platform, which make it easy to optimize your application for those with visual or physical disabilities. However, it’s not always obvious what the correct optimizations are, or the easiest way to leverage the framework toward this purpose. This lesson shows you how to implement the strategies and …

Getting Started in Android

To create apps with material design: Review the material design specification. Apply the material theme to your app. Create your layouts following material design guidelines. Specify the elevation of your views to cast shadows. Use system widgets for lists and cards. Customize the animations in your app. Maintain backward compatibility You can add many material …

Responding to UI Visibility Changes in Android

This lesson describes how to register a listener so that your app can get notified of system UI visibility changes. This is useful if you want to synchronize other parts of your UI with the hiding/showing of system bars. Register a Listener To get notified of system UI visibility changes, register an View.OnSystemUiVisibilityChangeListenerto your view. …

Using Immersive Full-Screen Mode in Android

Android 4.4 (API Level 19) introduces a new SYSTEM_UI_FLAG_IMMERSIVE flag forsetSystemUiVisibility() that lets your app go truly “full screen.” This flag, when combined with theSYSTEM_UI_FLAG_HIDE_NAVIGATION and SYSTEM_UI_FLAG_FULLSCREEN flags, hides the navigation and status bars and lets your app capture all touch events on the screen. When immersive full-screen mode is enabled, your activity continues to …

Hiding the Navigation Bar in Android

This lesson describes how to hide the navigation bar, which was introduced in Android 4.0 (API level 14). Even though this lesson focuses on hiding the navigation bar, you should design your app to hide the status bar at the same time, as described in Hiding the Status Bar. Hiding the navigation and status bars …

Hiding the Status Bar in Android

This lesson describes how to hide the status bar on different versions of Android. Hiding the status bar (and optionally, the navigation bar) lets the content use more of the display space, thereby providing a more immersive user experience. Figure 1 shows an app with a visible status bar: Figure 1. Visible status bar. Figure …