唯我styles吧 关注:610贴子:7,253

[GUIDE]下拉栏悬浮窗模式

只看楼主收藏回复

[GUIDE] How to make a Floating Statusbar Like a Phablet/Tablet For Galaxy Y
--------------------------------------------------------------------------------
Oke the first method is :
1. 下载 Floating.zip
2. Pull the Framework-res.apk and SystemUI.apk
3. Do "if framework" on your Apktool/ApkManager/ToolAlite by KuyaGaol
4. 反编译 SystemUI.apk
5. 解压 Floating.zip 并放入图片目录下。
6. 打开 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" />
7. 打开 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"
8. 打开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" />
9.回编译UI并放入系统
一定要注意:bg.9.png必须是.9格式的!如果你不喜欢黑色,想要替换下拉悬浮窗的背景,一定先准备好一张.9图片,然后回编译!注意!一定要重新编译!不然它不会成悬浮窗的!


1楼2014-06-17 10:27回复
    附件链接:http://pan.baidu.com/s/1dD28Hmp


    2楼2014-06-17 10:30
    回复


      3楼2014-06-17 10:33
      收起回复
        看到通知了
           --来自助手版贴吧客户端


        来自Android客户端4楼2014-06-17 11:14
        收起回复
          射精


          IP属地:上海来自Android客户端5楼2014-06-17 11:20
          回复
            +++++++++++
            顶啊@


            来自Android客户端6楼2014-06-18 00:07
            回复
              挺不错的


              来自Android客户端8楼2014-06-20 23:23
              回复
                卤煮 前面三步什么意思


                来自Android客户端9楼2014-07-16 06:14
                回复
                  4.0不行。。。


                  IP属地:上海来自手机贴吧10楼2014-07-18 14:14
                  回复
                    问个问题,为什么MIUI没有status_bar_tracking呢?


                    来自Android客户端13楼2014-07-26 21:05
                    收起回复
                      楼主,我爱你的bg.9


                      来自Android客户端14楼2014-07-27 10:56
                      回复
                        背景P不好


                        来自Android客户端15楼2014-07-27 13:10
                        收起回复
                          @________私有丶


                          16楼2014-07-28 15:42
                          收起回复