0

Refer to the following Example enter image description here


How to make effect of hidding notification icons in Status Bar. (Programmatically please).
I want to add this to my app.

Angel Koh
  • 12,479
  • 7
  • 64
  • 91
  • Watchout this :: https://stackoverflow.com/a/16999638/7812329 – Chintan Joshi Feb 26 '18 at 06:36
  • @ChintanJoshi, no. I want to hide all notifications icons in Status Bar, when app is runned :) –  Feb 26 '18 at 06:37
  • Okay for that try this :: https://stackoverflow.com/a/19268653/7812329 – Chintan Joshi Feb 26 '18 at 06:40
  • @ChintanJoshi I want to create hide effect of all notifications. Look first screenshot (telegram x) –  Feb 26 '18 at 06:44
  • You want to set "text" instead of icon in notification bar. Right? – Chintan Joshi Feb 26 '18 at 06:46
  • 1
    @ChintanJoshi i want to hide notifications in statusbar. Only effect! On first screenshot you can see clear statusbar without WIFI, Mobile Network, Vibration and other icons. Understand me? I want to add this feature to my app (right screenshot) :) –  Feb 26 '18 at 06:49

1 Answers1

1

I just added this code. My problem was solved.

getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_LOW_PROFILE);
        setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR_PORTRAIT);

ScreenShot with result