如何创建的Andr​​oid常见的android系统中的所有活动的自定义状态栏?

如何创建的Andr​​oid常见的android系统中的所有活动的自定义状态栏?

问题描述:

我开发一个小应用程序。我想在我与包含电池,3G,网络和我选择的图标黑色背景应用程序的顶部添加自己的状态栏。请guyz帮我在提前创建自定义状态bar..Thanks

I am developing a small application. I want to add my own Status bar at the top of my application with black background containing the battery, 3g,network and an icon of my choice. Please guyz help me out in creating a custom status bar..Thanks in advance

是的,这是完全可能的......

yes that is quite possible...

1 - 使应用程序全屏显示。

1- Make your application full screen.

2 - 创建一个线性布局(如你所愿)

2- Create a linear layout (as you wish)

3,如果应用程序包含多个活动,包括布局,每个布局...

3- if app contains more than one activity, include the layout in every layout...

有关应用程序全屏:

requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, 
                            WindowManager.LayoutParams.FLAG_FULLSCREEN);

状态栏的设计取决于你...

Status bar design depends on you...