public AppBarLayout$ScrollingViewBehavior(Context paramContext, AttributeSet paramAttributeSet) { super(paramContext, paramAttributeSet); paramContext = paramContext.obtainStyledAttributes(paramAttributeSet, a.i.ScrollingViewBehavior_Params); a = paramContext.getDimensionPixelSize(a.i.ScrollingViewBehavior_Params_behavior_overlapTop, 0); paramContext.recycle(); }
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 ActionBarContainer(Context context, AttributeSet attributeset) { super(context, attributeset); Object obj; boolean flag; boolean flag1; if (android.os.Build.VERSION.SDK_INT >= 21) { flag = true; } else { flag = false; } if (flag) { obj = new tz(this); } else { obj = new ty(this); } setBackgroundDrawable(((Drawable) (obj))); context = context.obtainStyledAttributes(attributeset, rq.a); a = context.getDrawable(rq.b); b = context.getDrawable(rq.d); j = context.getDimensionPixelSize(rq.j, -1); if (getId() == g.bi) { d = true; c = context.getDrawable(rq.c); } context.recycle(); if (d) { if (c == null) { flag1 = true; } else { flag1 = false; } } else if (a == null && b == null) { flag1 = true; } else { flag1 = false; } setWillNotDraw(flag1); }
public DrawerArrowDrawable(Context paramContext) { this.mPaint.setStyle(Paint.Style.STROKE); this.mPaint.setStrokeJoin(Paint.Join.MITER); this.mPaint.setStrokeCap(Paint.Cap.BUTT); this.mPaint.setAntiAlias(true); paramContext = paramContext.getTheme().obtainStyledAttributes(null, R.styleable.DrawerArrowToggle, R.attr.drawerArrowStyle, R.style.Base_Widget_AppCompat_DrawerArrowToggle); setColor(paramContext.getColor(R.styleable.DrawerArrowToggle_color, 0)); setBarThickness(paramContext.getDimension(R.styleable.DrawerArrowToggle_thickness, 0.0F)); setSpinEnabled(paramContext.getBoolean(R.styleable.DrawerArrowToggle_spinBars, true)); setGapSize(Math.round(paramContext.getDimension(R.styleable.DrawerArrowToggle_gapBetweenBars, 0.0F))); this.mSize = paramContext.getDimensionPixelSize(R.styleable.DrawerArrowToggle_drawableSize, 0); this.mBarLength = Math.round(paramContext.getDimension(R.styleable.DrawerArrowToggle_barLength, 0.0F)); this.mArrowHeadLength = Math.round(paramContext.getDimension(R.styleable.DrawerArrowToggle_arrowHeadLength, 0.0F)); this.mArrowShaftLength = paramContext.getDimension(R.styleable.DrawerArrowToggle_arrowShaftLength, 0.0F); paramContext.recycle(); }
private se(Context paramContext) { b.setStyle(Paint.Style.STROKE); b.setStrokeJoin(Paint.Join.MITER); b.setStrokeCap(Paint.Cap.BUTT); b.setAntiAlias(true); paramContext = paramContext.getTheme().obtainStyledAttributes(null, sb.af, aen.S, aal.bv); a(paramContext.getColor(sb.aj, 0)); b(paramContext.getDimension(sb.an, 0.0F)); a(paramContext.getBoolean(sb.am, true)); c(Math.round(paramContext.getDimension(sb.al, 0.0F))); j = paramContext.getDimensionPixelSize(sb.ak, 0); e = Math.round(paramContext.getDimension(sb.ai, 0.0F)); d = Math.round(paramContext.getDimension(sb.ag, 0.0F)); f = paramContext.getDimension(sb.ah, 0.0F); paramContext.recycle(); }
public LinearLayoutCompat(Context paramContext, AttributeSet paramAttributeSet, int paramInt) { super(paramContext, paramAttributeSet, paramInt); paramContext = TintTypedArray.obtainStyledAttributes(paramContext, paramAttributeSet, R.styleable.LinearLayoutCompat, paramInt, 0); paramInt = paramContext.getInt(R.styleable.LinearLayoutCompat_android_orientation, -1); if (paramInt >= 0) { setOrientation(paramInt); } paramInt = paramContext.getInt(R.styleable.LinearLayoutCompat_android_gravity, -1); if (paramInt >= 0) { setGravity(paramInt); } boolean bool = paramContext.getBoolean(R.styleable.LinearLayoutCompat_android_baselineAligned, true); if (!bool) { setBaselineAligned(bool); } mWeightSum = paramContext.getFloat(R.styleable.LinearLayoutCompat_android_weightSum, -1.0F); mBaselineAlignedChildIndex = paramContext.getInt(R.styleable.LinearLayoutCompat_android_baselineAlignedChildIndex, -1); mUseLargestChild = paramContext.getBoolean(R.styleable.LinearLayoutCompat_measureWithLargestChild, false); setDividerDrawable(paramContext.getDrawable(R.styleable.LinearLayoutCompat_divider)); mShowDividers = paramContext.getInt(R.styleable.LinearLayoutCompat_showDividers, 0); mDividerPadding = paramContext.getDimensionPixelSize(R.styleable.LinearLayoutCompat_dividerPadding, 0); paramContext.recycle(); }
public static int a(Context paramContext, int paramInt) { paramContext = paramContext.getTheme().obtainStyledAttributes(new int[] {paramInt}); paramInt = paramContext.getDimensionPixelSize(0, -1); paramContext.recycle(); return paramInt; }