2026年10月31日 · 今日 0 帖 · 会员 6.1万 · 主题 17.4万
登录 · 注册 · 游客,欢迎随便逛逛
返回版块
140862
Lv6胸怀六国志等级图标等级图标等级图标等级图标等级图标
勋章
帖子
82
回复
1,399
积分
1.5万
注册
2013-08-04
[修改美化]

[美化]状态栏下拉悬浮窗

[复制链接]
查看 847 回复 0
楼主 发表于 | 查看全部
3 人收藏

1. 反编译 SystemUI.apk5. 解压 Floating.zip 并放入图片目录下。

2. 打开 status_bar.xml from /res/layout/here 找到这个代码, 修改并保存 :代码:<com.android.systemui.statusbar.DateView android:textAppearance=“@android:style/TextAppearance.StatusBar.Icon“并添加这一句代码:代码:android:background=“@drawable/trans“看起来像这样:代码:<com.android.systemui.statusbar.DateView android:textAppearance=“@android:style/TextAppearance.StatusBar.Icon“ android:textColor=“#00000000“ android:gravity=“center“ android:id=“@id/date“ android:background=“@drawable/trans“ android:paddingLeft=“6.0px“ android:paddingRight=“6.0px“ android:layout_width=“fill_parent“ android:layout_height=“fill_parent“ android:singleLine=“true“ />

3. 打开 status_bar_expanded.xml from /res/layout/here 找到这个代码,修改并保存 :代码:<com.android.systemui.statusbar.ExpandedView android:orientation=“vertical“并添加这一句代码 :代码:android:background=“@drawable/bg“看起来像这样 :Code:<com.android.systemui.statusbar.ExpandedView android:orientation=“vertical“ android:background=“@drawable/bg“ android:focusable=“true“ android:descendantFocusability=“afterDescendants“

4. 打开status_bar_tracking.xml from /res/layout/here 找到这个代码,修改并保存 :Code:<View android:background=“@drawable/shade_bg“ android:layout_width=“wrap_content“ android:layout_height=“wrap_content“ android:layout_weight=“1.0“ />并改成这个样子:代码:<View android:background=“@drawable/shade_bg“ android:layout_width=“0.0px“ android:layout_height=“0.0px“ android:layout_weight=“1.0“ />找到这句 :Code:<ImageView android:layout_gravity=“bottom“ android:layout_width=“fill_parent“ android:layout_height=“wrap_content“ android:src=“@drawable/status_bar_close_on“ android:scaleType=“fitXY“ />并改成这个样子 :代码:<ImageView android:layout_gravity=“bottom“ android:layout_width=“fill_parent“ android:layout_height=“wrap_content“ android:src=“@drawable/trans“ android:scaleType=“fitXY“ />

5.回编译UI并放入系统一定要注意:bg.9.png必须是.9格式的!如果你不喜欢黑色,想要替换下拉悬浮窗的背景,一定先准备好一张.9图片,然后回编译!注意!一定要重新编译!不然它不会成悬浮窗的!

登录回复

登录后可以回复这个帖子。旧账号可使用原密码登录。

登录 注册新号
← 返回版块