92mey吧 关注:402贴子:10,163
  • 11回复贴,共1

【教程】安卓6.0添加下拉高斯模糊(修)

只看楼主收藏回复

教程来自于小u哥,地址:http://m.galaxyclub.cn/thread-352518-29-15.html
近原生的SystemUI,会存在一个问题,顶栏消息弹出会显示模糊背景,影响正常体验了。
参考了daxgirl的背景图片教程,地址:https://forum.xda-developers.com/showpost.php?p=67120717&postcount=6704,解决了消息弹出会显示模糊背景的问题。教程在楼下公布。


IP属地:广东来自Android客户端1楼2017-07-30 08:32回复
    在小U哥的教程,最后两步不要添加。
    即不要添加以下代码
    move-object/from16 v0, p0
    + invoke-virtual {v0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->updatePulldownBlurBackground()V
    .method updatePulldownBlurBackground()V方法


    IP属地:广东来自Android客户端2楼2017-07-30 08:35
    回复
      搜索.method public onHeadsUpPinned(Lcom/android/systemui/statusbar/ExpandableNotificationRow;)V,将.locals 0改为.locals 5,在return上面添加
      const v3, 0x8
      iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarWindow:Lcom/android/systemui/statusbar/phone/StatusBarWindowView;
      const v6, 0x7f12022a ## panel_blur_bg" id=要改为你的ID
      invoke-virtual {v5, v6}, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->findViewById(I)Landroid/view/View;
      move-result-object v4
      invoke-virtual {v4, v3}, Landroid/widget/LinearLayout;->setVisibility(I)V


      IP属地:广东来自Android客户端3楼2017-07-30 08:38
      收起回复
        搜索.method public onHeadsUpUnPinned(Lcom/android/systemui/statusbar/ExpandableNotificationRow;)V,将.locals 0改为.locals 7,在return上面添加
        iget-object v1, p0, Lcom/android/systemui/SystemUI;->mContext:Landroid/content/Context;
        invoke-virtual {v1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
        move-result-object v1
        const-string v2, "pulldown_blur_bg"
        const/4 v3, 0x0
        invoke-static {v1, v2, v3}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I
        move-result v1
        if-nez v1, :cond_0
        const v3, 0x8
        iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarWindow:Lcom/android/systemui/statusbar/phone/StatusBarWindowView;
        const v6, 0x7f12022a ## panel_blur_bg" id=要改为你的ID
        invoke-virtual {v5, v6}, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->findViewById(I)Landroid/view/View;
        move-result-object v4
        invoke-virtual {v4, v3}, Landroid/widget/LinearLayout;->setVisibility(I)V
        goto/16 :goto_0
        :cond_0
        const v3, 0x3
        iget-object v5, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mStatusBarWindow:Lcom/android/systemui/statusbar/phone/StatusBarWindowView;
        const v6, 0x7f12022a ## panel_blur_bg" id=要改为你的ID
        invoke-virtual {v5, v6}, Lcom/android/systemui/statusbar/phone/StatusBarWindowView;->findViewById(I)Landroid/view/View;
        move-result-object v4
        invoke-virtual {v4, v3}, Landroid/widget/LinearLayout;->setVisibility(I)V
        :goto_0


        IP属地:广东来自Android客户端4楼2017-07-30 08:40
        回复
          完成!效果



          IP属地:广东来自Android客户端5楼2017-07-30 08:41
          回复
            小u哥6.0的链接:http://m.galaxyclub.cn/thread-312898-29-15.html


            IP属地:广东来自Android客户端6楼2017-07-30 08:44
            回复
              感谢!希望92能学编译。
                 --来自『天生急性子』版Cherry Mini Plus 好 · 快,不等待!


              IP属地:上海来自Android客户端7楼2017-07-31 18:14
              收起回复
                感觉这样更丑


                IP属地:河南来自Android客户端8楼2017-08-04 22:02
                回复