ActionBarBackgroundUpdater.java 文件源码

java
阅读 19 收藏 0 点赞 0 评论 0

项目:FMTech 作者:
public ActionBarBackgroundUpdater(Window paramWindow, PlayHeaderListLayout paramPlayHeaderListLayout)
{
  this.mWindow = paramWindow;
  this.mHeaderListLayout = paramPlayHeaderListLayout;
  Resources localResources = paramPlayHeaderListLayout.getResources();
  this.mTransparentBackground = new ColorDrawable(0);
  final int i = FinskySearchToolbar.getToolbarHeight(this.mHeaderListLayout.getContext());
  int[] arrayOfInt = new int[2];
  arrayOfInt[0] = this.mHeaderListLayout.getResources().getColor(2131689730);
  arrayOfInt[1] = 0;
  this.mProtectionBackground = new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, arrayOfInt)
  {
    protected final void onBoundsChange(Rect paramAnonymousRect)
    {
      if (paramAnonymousRect.bottom - paramAnonymousRect.top > i) {
        paramAnonymousRect.bottom = (paramAnonymousRect.top + i);
      }
      super.onBoundsChange(paramAnonymousRect);
    }
  };
  this.mBaseBackground = this.mProtectionBackground;
  this.mSearchStatusBarColor = localResources.getColor(2131689676);
  this.mWasHeaderListFloating = this.mHeaderListLayout.isHeaderFloating();
  this.mWasStatusBarUnderlayProtectingControls = this.mHeaderListLayout.isStatusBarUnderlayProtectingControls();
  updateActionBar();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号