1. Are you ready for the Galaxy S20? Here is everything we know so far!

Remove Title Bar?

Discussion in 'Android Development' started by ac4android, Jun 5, 2017.

  1. ac4android

    ac4android Well-Known Member
    Thread Starter

    I am trying to reclaim the screen real estate taken up by the title bar.
    I looked up stack overflow and other sites, none of which work. A/S2.3 will not yield back the screen space. How do I reclaim the space?

    NoTitleBar.JPG
     



    1. Download the Forums for Android™ app!


      Download

       
  2. wseng92

    wseng92 Android Enthusiast

    You want to hide the action bar ? You can add below code to your onCreate method before setContentView.

    Code (Text):
    1. requestWindowFeature(Window.FEATURE_NO_TITLE);
    2. getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, 0);
     
    scary alien and ac4android like this.
  3. ac4android

    ac4android Well-Known Member
    Thread Starter

    Thanks for your input.

    I managed to fix it up another way without touching my own java and reclaimed the space for pictures. ;)
     
    wseng92 likes this.
Loading...
Similar Threads - Remove Title Bar
  1. spman
    Replies:
    33
    Views:
    911
  2. Mina392
    Replies:
    3
    Views:
    556
  3. rizzoports
    Replies:
    4
    Views:
    557
  4. Winfried
    Replies:
    1
    Views:
    247
  5. Radetailer
    Replies:
    4
    Views:
    1,567
  6. AdiA
    Replies:
    7
    Views:
    593
  7. rogerbid
    Replies:
    4
    Views:
    717
  8. Ajrox22
    Replies:
    9
    Views:
    907
  9. joshkrupinsky
    Replies:
    3
    Views:
    587
  10. corvairbob
    Replies:
    1
    Views:
    397

Share This Page

Loading...