说明
1,教程比较简单,但是改过状态栏布局的都能看懂;
2,文字布局来自于爱魅族论坛失控的蕾丝
教程开始
1,新建xml文件,名称为zdywb.xml,UTF-8无BOM编码格式,内容如下:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="left|center" android:paddingLeft="42.19998dip" android:paddingTop="1.6999817dip" android:paddingRight="1.1999817dip" android:layout_width="130.0dip" android:layout_height="@android:dimen/status_bar_height"
xmlns:android="http://schemas.android.com/apk/res/android">
<TextView android:textSize="13.5dip" android:textColor="#ffffffff" android:textColorHighlight="#00000000" android:textColorLink="#00000000" android:ellipsize="marquee" android:background="#00000000" android:focusable="true" android:focusableInTouchMode="true" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="大侠阿木就是帅" android:singleLine="true" android:shadowColor="#00000000" android:shadowDx="2.0" android:shadowDy="2.0" android:shadowRadius="1.0" android:marqueeRepeatLimit="marquee_forever" />
</LinearLayout>
2,反编译SystemUI.apk,将自己制作好的zdywb.xml放到res/layout/下面;
3,编辑res/layout/status_bar.xml,在需要添加的位置,加上:
<include layout="@layout/zdywb" />
作用是引用上面写好的布局文件;
4,回编译,替换之,Over;
5,大侠阿木就是帅,几个字是必需的,不能改哟,改了手机会爆炸的;
发表回复