oppor7st什么意思通知栏怎么显示网速

oppor7通知栏显示的流量在哪里设置_百度知道
oppor7通知栏显示的流量在哪里设置
设置 常规 更多(蓝牙下方) 流量控制请采纳
其他类似问题
为您推荐:
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁您现在的位置: &
【玩机评测组】通知栏DIY教程,时间居中,实时网速显示!
粉丝积分31208经验21771 精华15签到889天O币237610
本帖最后由 雲隨風 于
17:56 编辑
今天给大家讲一下DIY通知栏的教程.
ColorOS的通知栏布局已经很不错了,也不需要大改动.唯一能做的就是时间居中,加入流量显示了.
本人之前也查过资料,网络上现在流传的一共就几个版本,大家用的最多的还是三秒刷新版.
什么是三秒刷新版呢?之前用过,就是有流量的时候要等三秒才会刷新显示.并且打开WIFI或者数据链接就会一直显示.感觉并不智能.有时下载一些东西,等你下载完了才会显示出来,流量数据并不准确.
我尝试从别的ROM提取源码,终于找到一个比较不错的.无论你开不开网络,只要有流量就会实时显示.
实时显示真心不错啊...显示数据非常准确.并且当你10秒内无流量时则自动隐藏...需要ROOT.
反编译SystemUI.apk.
打开systemui\res\layout\status_bar.xml
直接进入正题,首先看看官方原代码.
& && &&&&LinearLayout android:gravity=&center& android:orientation=&horizontal& android:id=&@id/signal_battery_cluster& android:paddingLeft=&2.0dip& android:layout_width=&wrap_content& android:layout_height=&fill_parent&&
& && && && &&TextView android:textSize=&17.0dip& android:textColor=&@*android:color/holo_blue_light& android:gravity=&center_vertical& android:id=&@id/percentage& android:paddingLeft=&4.0dip& android:visibility=&gone& android:layout_width=&wrap_content& android:layout_height=&fill_parent& android:layout_marginBottom=&@dimen/oppo_battery_text_margin_bottom& /&
& && && && &&com.android.systemui.statusbar.policy.Clock android:textAppearance=&@style/TextAppearance.StatusBar.Clock& android:textSize=&17.0dip& android:gravity=&left|center& android:id=&@id/clock& android:layout_width=&wrap_content& android:layout_height=&fill_parent& android:layout_marginBottom=&@dimen/oppo_battery_text_margin_bottom& android:singleLine=&true& /&
& && && && &&TextView android:textAppearance=&@style/TextAppearance.StatusBar.Clock& android:textSize=&17.0dip& android:textColor=&#ffffffff& android:gravity=&center& android:id=&@id/battery_text& android:paddingLeft=&3.0dip& android:layout_width=&wrap_content& android:layout_height=&fill_parent& android:layout_marginBottom=&@dimen/oppo_battery_text_margin_bottom& android:singleLine=&true& /&
& && && && &&FrameLayout android:layout_width=&wrap_content& android:layout_height=&fill_parent& android:layout_marginLeft=&2.0dip&&
& && && && && & &ImageView android:layout_gravity=&center_vertical& android:id=&@id/battery& android:layout_width=&wrap_content& android:layout_height=&wrap_content& /&
& && && && && & &TextView android:textAppearance=&@*android:style/TextAppearance.StatusBar.Icon& android:textSize=&@dimen/oppo_battery_percent_textsize& android:textColor=&#ffffffff& android:gravity=&center& android:layout_gravity=&center& android:id=&@id/battery_inside_text& android:layout_width=&wrap_content& android:layout_height=&fill_parent& android:singleLine=&true& /&
& && && && &&/FrameLayout&
& && &&&&/LinearLayout&
对于小白们来说可能比较头疼...呵呵...
这一整段代码呢,就是整个通知栏右边的代码了.包括时间\电源\闹钟等等
我们要改时间居中自然要改动这一段了.其中时间的代码是下面这一句.
&com.android.systemui.statusbar.policy.Clock android:textAppearance=&@style/TextAppearance.StatusBar.Clock& android:textSize=&17.0dip& android:gravity=&left|center& android:id=&@id/clock& android:layout_width=&wrap_content& android:layout_height=&fill_parent& android:layout_marginBottom=&@dimen/oppo_battery_text_margin_bottom& android:singleLine=&true& /&
将其删除,不让其在右边显示.
然后在通知栏右边布局(帖子上面的整段代码粉色那句)前加入一个新的时间布局.
&LinearLayout android:layout_gravity=&center& android:orientation=&horizontal& android:layout_width=&wrap_content& android:layout_height=&fill_parent&&
& && && && &&com.android.systemui.statusbar.policy.Clock android:textAppearance=&@style/TextAppearance.StatusBar.Clock& android:textSize=&17.0dip& android:gravity=&left|center& android:id=&@id/clock& android:layout_width=&wrap_content& android:layout_height=&fill_parent& android:singleLine=&true& /&
& && &&&&/LinearLayout&
这样.也就是重新设定一个时间布局,把时间独立出来.
这是经过众神们不懈努力的成果.是比较成熟的布局方式.
这样时间就会独立显示于通知栏中间.我们可以再加入一些个性化元素.比如字体,颜色,大小等.
这一句中的17就是字体大小 android:textSize=&17.0dip&
如果想要加入颜色,我们可以在上面的代码后面加入一句 android:textColor=&#ffffffff&
注意,代码中的每一句前后都需要有一个空格 以区分.
其中#FFxxxxxx是颜色代码.前FF是透明度.
具体颜色大家可以百度关键词&颜色代码&比如绿色#FF00cd00
时间居中就是这样子了.下面来讲讲加入流量显示.
我们需要将流量显示在通知栏右边...(呃...不然你还想加在左边?)
既然加到右边,我们还是改动帖子开始前讲的右边布局.在整段代码第一句(粉色代码)后面回车.
也就是在第一句下面加入一句,让流量显示一直位于右边布局最左边.
不然它突然出现时把闹钟神马的给挤到一边就不太好了...嘎嘎...代码如下.
&com.android.systemui.statusbar.policy.NetspeedView android:textAppearance=&@style/TextAppearance.StatusBar.Clock& android:textSize=&13.0dip& android:gravity=&center& android:paddingRight=&1.0dip& android:layout_width=&wrap_content& android:layout_height=&fill_parent& /&
DIY个性化跟时间布局一样,字体大小颜色.
这个只是让其显示的布局,我们还需要底层源代码的支持.下载本贴中的附件解压到
systemui\smali\com\android\systemui\statusbar\policy\文件夹下.
这样,我们的改动就已经基本完成了.然后回编译.
需要提醒的是,回编译后的APK是不能直接使用的.需要使用未修改过的原SystemUI.apk
用WinRAR打开未修改的SystemUI.apk和我们修改过的SystemUI.apk.
12:45 上传
12:48 上传
注意红框位置,要选择&存储&!替换res\layout\status_bar.xml和& &classes.dex然后复制手机,替换原文件再重启手机即可.
当有流量时:
13:17 上传
平时待机时:
14:37 上传
我修改的下拉栏:修改了日期显示/右上自动亮度/左下电源键/右下设置键.使用全局主题会出现错位.将全局主题用WinRAR打开,删除com.android.systemui后再使用主题.
修改好的最新版SystemUI.apk 已测试支持N1,Find5,其它机型自测.
直接替换进手机system\app&&包括下拉栏与1%步进精确电量显示...
更新至14.01.03
附件素材,包括修改好的status_bar.xml 下载直接替换即可.不想要我的下拉栏的可以下载这个.
最后附上ROOT教程:
直接替换后,会提示状态栏已停止运行,此时长按电源键8S,强制关机重启即可!
码字好辛苦.转载请注明出处.
祝大家玩机愉快.你的手机你做主.
如果大家需要的话,我可以长期跟随官方更新通知栏.回贴加分支持哦.
能帮忙搞个1.0
color 923的状态栏不啊?.
求最新版状态栏。。。
大神 在你的基础上怎么做半透明的
简直哇塞了
大神啊!!!能不能给R819T做一个.
这么好的办法,为啥工程师们不把这个放入下.
总评分:&经验 + 358&
自从有了精神病,整个人都精神多了!
粉丝积分261920经验202593 精华7签到931天O币481413
寳儿O(∩_∩)O~~
来自Find 5.OPPO乐园4.3.3版
总评分:&经验 + 20&
粉丝积分1442经验1279 精华2签到0天O币20146
前排支持& && && &
总评分:&经验 + 20&
Lv7.学士生O粉
粉丝积分7097经验6859 精华0签到114天O币587
Lv7.学士生O粉, 积分 7097, 距离下一级还需 2903 积分
很强大~~~~~~~~~~
粉丝积分924经验869 精华0签到0天O币547
通知栏DIY教程,时间居中,实时网速显示.
粉丝积分4950经验4567 精华0签到849天O币8419
粉丝积分1714经验1181 精华0签到150天O币2200
瞧瞧。。。
粉丝积分914经验861 精华0签到0天O币568
感谢分享& &
粉丝积分3772经验3194 精华1签到606天O币8421
查看本帖隐藏内容
粉丝积分7580经验6090 精华0签到338天O币12436
今天的测试固件直接改掉不就玩了.......
Lv4.高中生O粉
粉丝积分763经验739 精华0签到0天O币20
Lv4.高中生O粉, 积分 763, 距离下一级还需 237 积分
兔兔图休息休息
来自Find 5.OPPO乐园4.3.3版
粉丝积分761经验722 精华0签到0天O币628
滴答滴答滴答滴答滴答滴答答
粉丝积分5199经验3885 精华0签到387天O币5377
kankanzhege
粉丝积分2910经验2232 精华0签到383天O币4316
收到货方提供ikyhjoli
粉丝积分24513经验22304 精华13签到777天O币109424
给力。。。顶上
粉丝积分556经验332 精华0签到0天O币35
我小白 不懂啊。怎么办?
来自Find 5.OPPO乐园4.3.3版
不懂就直接下载修改好的.
总评分:&经验 + 20&
粉丝积分17976经验15687 精华5签到0天O币3142
丿 丶 雅 痴
看看~~~~~
来自OPPO Find 7 黄金至尊OPPO乐园999版
粉丝积分2641经验2462 精华0签到189天O币2680
支持教程贴& && && &&&
粉丝积分1821经验1678 精华0签到0天O币1672
Lv4.高中生O粉
粉丝积分297经验221 精华0签到1天O币4
Lv4.高中生O粉, 积分 297, 距离下一级还需 703 积分
啥玩意,看看
3月7日 星期一13347人签到
带上R7s去海边拍照,让我惊叹的是小景别和运动画面让我震撼,完美。
玩机教程大搜罗,你需要的,都在这里!
#OPPO闪充用户破千万#感谢千万分之一的你!10台R7s、1000根自拍杆任性送!!!
向日葵勋章
本月做出了特殊贡献的奖励oppor1s手机怎么在通知栏上显示网速_百度知道
oppor1s手机怎么在通知栏上显示网速
我有更好的答案
点设置,点通知栏显示就行了!
其他类似问题
为您推荐:
网速的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁

我要回帖

更多关于 oppo r7st好不好用 的文章

 

随机推荐