public CollapsingToolbarLayout(Context paramContext, AttributeSet paramAttributeSet, int paramInt) { super(paramContext, paramAttributeSet, paramInt); cr.a(paramContext); k = new n(this); k.a(a.e); paramContext = paramContext.obtainStyledAttributes(paramAttributeSet, j.CollapsingToolbarLayout, paramInt, i.Widget_Design_CollapsingToolbar); k.c(paramContext.getInt(j.CollapsingToolbarLayout_expandedTitleGravity, 8388691)); k.d(paramContext.getInt(j.CollapsingToolbarLayout_collapsedTitleGravity, 8388627)); paramInt = paramContext.getDimensionPixelSize(j.CollapsingToolbarLayout_expandedTitleMargin, 0); i = paramInt; h = paramInt; g = paramInt; f = paramInt; if (paramContext.hasValue(j.CollapsingToolbarLayout_expandedTitleMarginStart)) { f = paramContext.getDimensionPixelSize(j.CollapsingToolbarLayout_expandedTitleMarginStart, 0); } if (paramContext.hasValue(j.CollapsingToolbarLayout_expandedTitleMarginEnd)) { h = paramContext.getDimensionPixelSize(j.CollapsingToolbarLayout_expandedTitleMarginEnd, 0); } if (paramContext.hasValue(j.CollapsingToolbarLayout_expandedTitleMarginTop)) { g = paramContext.getDimensionPixelSize(j.CollapsingToolbarLayout_expandedTitleMarginTop, 0); } if (paramContext.hasValue(j.CollapsingToolbarLayout_expandedTitleMarginBottom)) { i = paramContext.getDimensionPixelSize(j.CollapsingToolbarLayout_expandedTitleMarginBottom, 0); } l = paramContext.getBoolean(j.CollapsingToolbarLayout_titleEnabled, true); setTitle(paramContext.getText(j.CollapsingToolbarLayout_title)); k.f(i.TextAppearance_Design_CollapsingToolbar_Expanded); k.e(i.TextAppearance_AppCompat_Widget_ActionBar_Title); if (paramContext.hasValue(j.CollapsingToolbarLayout_expandedTitleTextAppearance)) { k.f(paramContext.getResourceId(j.CollapsingToolbarLayout_expandedTitleTextAppearance, 0)); } if (paramContext.hasValue(j.CollapsingToolbarLayout_collapsedTitleTextAppearance)) { k.e(paramContext.getResourceId(j.CollapsingToolbarLayout_collapsedTitleTextAppearance, 0)); } setContentScrim(paramContext.getDrawable(j.CollapsingToolbarLayout_contentScrim)); setStatusBarScrim(paramContext.getDrawable(j.CollapsingToolbarLayout_statusBarScrim)); b = paramContext.getResourceId(j.CollapsingToolbarLayout_toolbarId, -1); paramContext.recycle(); setWillNotDraw(false); cn.a(this, new o(this)); }
public void setStatusBarScrimResource(int paramInt) { setStatusBarScrim(android.support.v4.content.a.a(getContext(), paramInt)); }
public void setStatusBarScrimColor(int paramInt) { setStatusBarScrim(new ColorDrawable(paramInt)); }