Android Activity Fullscreen Simple Code Snippet

To make an Android Activity Fullscreen, There is two ways:

  1. With java code in your Activity file.
  2. With xml code in your AndroidManifest.xml file.
Android Activity Fullscreen with Java code

Android Activity Fullscreen with Xml code

Android Fullscreen Screen Shot Sample
Android Fullscreen
New ADT Update
Create New Android Activity Fullscreen
Create New as Activity Fullscreen

The new ADT comes with the option to make an Android Activity Fullscreen when you create it.


For more reading :

Full Screen

Some content is best experienced full screen, like videos, games, image galleries, books, and slides in a presentation. You can engage users more deeply with content in full screen by minimizing visual distraction from app controls and protecting users from escaping the app accidentally. In version 4.4, Android offers two approaches for making your app go full screen: Lean Back and Immersive. In both approaches, all persistent system bars are hidden. The difference between them is how the user brings the bars back into view.

  • Lean Back : Touch the screen anywhere to bring back system bars.

The Lean Back approach is for full-screen experiences in which users won’t be interacting heavily with the screen while consuming content, like while watching a video.

  • Immersive : Swipe from the any edge of the screen with a hidden bar to bring back system bars.

The Immersive approach is mainly intended for apps in which the user will be heavily interacting with the full screen as part of the primary experience. Examples are games, viewing images in a gallery, or reading paginated content, like a book or slides in a presentation.

If you want to know more, know it here.