[Q] remove title and status bar - Android Software Development

How do you completely remove the title and status bar from the screen?

Its a property of each activity, and you specify it in the AndroidManifest
example:
<activity
android:name="com.my.MainActivity"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
/>
Theme.NoTitleBar.Fullscreen = no title bar or notication bar
Theme.NoTitleBar = no title bar, keeps the notification bar

Activity Fullscreen
other way is to do it programatically in onCreate of your Activity.
Code:
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
-didi

Related

[Q] hide status bar but show title bar

how do you hide the the status bar (the very top one with battery, wifi, etc...) but keep the title bar (one that says apps name)?
hyperbyteX said:
how do you hide the the status bar (the very top one with battery, wifi, etc...) but keep the title bar (one that says apps name)?
Click to expand...
Click to collapse
Code:
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);

[Q] update title bar on timer call

how do I change the text inside of the title bar from within a timer class?

status bar

how change home screen
status bar colour
I think the picture is in the /system/framework/framework-res.apk file.
whats the whole process

Dynamically can not change action bar's background color when the action bar is split

I was dynamically trying to change the action bar color in my android app. I am using v7-appcompat library. I am trying with the code provided below in my onCreate() method.
getSupportActionBar().setBackgroundDrawable(new ColorDrawable(Color
.parseColor(colorCode1)));
For the ActionBar's background, it only change the color which is in top portion of the app, but not in the split portion which is in bottom side of the app. I have also included
android:uiOptions="splitActionBarWhenNarrow"
in all the activity decalration <activity /> and in the <application /> tag in manifest file.
I also tried to change the Action Bar's item color, by using the function,`getLayoutInflater().setFactory( new Factory(){.... }
but it crashes on me.
So the Action Bar's top portion changes the color, but lower portion doesn't. Also, can not change the color of menu items at the action Bar. I have to change these through java files, not in xml. Please help.

[HELP] White Status Bar with White Text

Are there any ways I can make the text in the status bar grey/black. I am rooted.

Categories

Resources