如何创建的Andr​​oid常见的android系统中的所有活动的自定义状态栏? [英] How to create a custom status bar in android common for all activity in android?

查看:133
本文介绍了如何创建的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...

这篇关于如何创建的Andr​​oid常见的android系统中的所有活动的自定义状态栏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆