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 ButtonBarLayout(Context paramContext, AttributeSet paramAttributeSet)
 {
   super(paramContext, paramAttributeSet);
   paramContext = paramContext.obtainStyledAttributes(paramAttributeSet, sb.S);
   a = paramContext.getBoolean(sb.T, false);
   paramContext.recycle();
 }
 private CheckBoxPreference(Context paramContext, AttributeSet paramAttributeSet, int paramInt)
 {
   super(paramContext, paramAttributeSet, paramInt);
   paramContext = paramContext.obtainStyledAttributes(paramAttributeSet, ikc.ad, paramInt, 0);
   e(paramContext.getString(ikc.ag));
   f(paramContext.getString(ikc.af));
   h(paramContext.getBoolean(ikc.ae, false));
   paramContext.recycle();
 }
Ejemplo n.º 4
0
 public FormEditText(Context paramContext, AttributeSet paramAttributeSet, int paramInt) {
   super(paramContext, paramAttributeSet, paramInt);
   paramContext =
       paramContext.obtainStyledAttributes(paramAttributeSet, R.styleable.FormField, paramInt, 0);
   if ((getHint() == null) || (getHint().equals(""))) {
     setHint("Enter Keywords");
   }
   this.argumentName = paramContext.getString(0);
   this.niceName = paramContext.getString(1);
   setFieldValue(paramContext.getString(2));
   paramContext.recycle();
 }
 private void init(Context context, AttributeSet attributeset, int i) {
   context =
       context.obtainStyledAttributes(
           attributeset, com.netflix.mediaclient.R.styleable.SimpleStrokedTextView, i, 0);
   mStrokeColor = context.getColor(0, 0xff000000);
   mStrokeWidth = context.getFloat(1, 0.0F);
   mTextColor = context.getColor(2, -1);
   context.recycle();
   mUpdateCachedBitmap = true;
   mPaint.setAntiAlias(true);
   mPaint.setStyle(android.graphics.Paint.Style.FILL_AND_STROKE);
 }
Ejemplo n.º 6
0
 public n(Context context, AttributeSet attributeset) {
   super(context, attributeset);
   d = null;
   e = null;
   context = context.obtainStyledAttributes(attributeset, j.CollageLayout_Layout);
   a = context.getDimensionPixelOffset(0, 0);
   b = context.getDimensionPixelOffset(1, 0);
   context.recycle();
   context = new Path();
   context.addRect(0.0F, 0.0F, width, height, android.graphics.Path.Direction.CCW);
   a(context);
 }
 public UserProfileView(Context paramContext, AttributeSet paramAttributeSet, int paramInt)
 {
   super(paramContext, paramAttributeSet, paramInt);
   a(paramContext, paramAttributeSet, paramInt);
   paramContext = paramContext.obtainStyledAttributes(paramAttributeSet, b.UserProfileView, paramInt, paramInt);
   e = paramContext.getDrawable(6);
   f = paramContext.getDrawable(7);
   a = paramContext.getColor(4, -16777216);
   b = paramContext.getColorStateList(1);
   c = paramContext.getColorStateList(3);
   d = paramContext.getColor(2, 0);
   paramContext.recycle();
 }
 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);
 }
Ejemplo n.º 9
0
 public AviaryTextView(Context context, AttributeSet attributeset, int i)
 {
     super(context, attributeset, i);
     if (isInEditMode())
     {
         return;
     } else
     {
         context = context.getTheme().obtainStyledAttributes(attributeset, com.aviary.android.feather.sdk.R.styleable.AviaryTextView, i, 0);
         setTypeface(context.getString(com.aviary.android.feather.sdk.R.styleable.AviaryTextView_aviary_typeface));
         context.recycle();
         return;
     }
 }
 public AppCompatMultiAutoCompleteTextView(
     Context paramContext, AttributeSet paramAttributeSet, int paramInt) {
   super(TintContextWrapper.wrap(paramContext), paramAttributeSet, paramInt);
   paramContext =
       TintTypedArray.obtainStyledAttributes(
           getContext(), paramAttributeSet, TINT_ATTRS, paramInt, 0);
   this.mTintManager = paramContext.getTintManager();
   if (paramContext.hasValue(0)) {
     setDropDownBackgroundDrawable(paramContext.getDrawable(0));
   }
   paramContext.recycle();
   this.mBackgroundTintHelper = new AppCompatBackgroundHelper(this, this.mTintManager);
   this.mBackgroundTintHelper.loadFromAttributes(paramAttributeSet, paramInt);
   this.mTextHelper = AppCompatTextHelper.create(this);
   this.mTextHelper.loadFromAttributes(paramAttributeSet, paramInt);
   this.mTextHelper.applyCompoundDrawablesTints();
 }
 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 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();
 }
 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));
 }
Ejemplo n.º 14
0
 public AppCompatRatingBar(Context context, AttributeSet attributeset, int i)
 {
     super(context, attributeset, i);
     if (TintManager.SHOULD_BE_USED)
     {
         context = TintTypedArray.obtainStyledAttributes(getContext(), attributeset, TINT_ATTRS, i, 0);
         attributeset = context.getDrawableIfKnown(0);
         if (attributeset != null)
         {
             setIndeterminateDrawable(tileifyIndeterminate(attributeset));
         }
         attributeset = context.getDrawableIfKnown(1);
         if (attributeset != null)
         {
             setProgressDrawable(tileify(attributeset, false));
         }
         context.recycle();
     }
 }
 public Snackbar(Context paramContext, AttributeSet paramAttributeSet, int paramInt)
 {
   super(paramContext, paramAttributeSet, paramInt);
   LayoutInflater.from(paramContext).inflate(aal.ty, this);
   b = ((TextView)findViewById(aal.tx));
   c = ((TextView)findViewById(aal.tw));
   paramContext = paramContext.obtainStyledAttributes(paramAttributeSet, hpq.X, paramInt, aal.tz);
   paramAttributeSet = paramContext.getDrawable(hpq.Z);
   ColorStateList localColorStateList1 = paramContext.getColorStateList(hpq.aa);
   ColorStateList localColorStateList2 = paramContext.getColorStateList(hpq.Y);
   paramContext.recycle();
   setOrientation(0);
   setBackgroundDrawable(paramAttributeSet);
   if (localColorStateList1 != null) {
     a(localColorStateList1);
   }
   if (localColorStateList2 != null) {
     b(localColorStateList2);
   }
 }
 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();
 }
Ejemplo n.º 17
0
 void a(Context paramContext) {
   TypedValue localTypedValue = new TypedValue();
   Resources.Theme localTheme = paramContext.getResources().newTheme();
   localTheme.setTo(paramContext.getTheme());
   localTheme.resolveAttribute(a.a.actionBarPopupTheme, localTypedValue, true);
   if (resourceId != 0) {
     localTheme.applyStyle(resourceId, true);
   }
   localTheme.resolveAttribute(a.a.panelMenuListTheme, localTypedValue, true);
   if (resourceId != 0) {
     localTheme.applyStyle(resourceId, true);
   }
   for (; ; ) {
     paramContext = new b(paramContext, 0);
     paramContext.getTheme().setTo(localTheme);
     l = paramContext;
     paramContext = paramContext.obtainStyledAttributes(a.k.Theme);
     b = paramContext.getResourceId(a.k.Theme_panelBackground, 0);
     f = paramContext.getResourceId(a.k.Theme_android_windowAnimationStyle, 0);
     paramContext.recycle();
     return;
     localTheme.applyStyle(a.j.Theme_AppCompat_CompactMenu, true);
   }
 }
 public View onCreateView(String paramString, Context paramContext, AttributeSet paramAttributeSet)
 {
   Object localObject = null;
   if (!"fragment".equals(paramString)) {
     return super.onCreateView(paramString, paramContext, paramAttributeSet);
   }
   paramString = paramAttributeSet.getAttributeValue(null, "class");
   paramContext = paramContext.obtainStyledAttributes(paramAttributeSet, i.a);
   String str1 = paramString;
   if (paramString == null) {
     str1 = paramContext.getString(0);
   }
   int i1 = paramContext.getResourceId(1, -1);
   String str2 = paramContext.getString(2);
   paramContext.recycle();
   if (0 != 0) {
     throw new NullPointerException();
   }
   if ((-1 == 0) && (i1 == -1) && (str2 == null)) {
     throw new IllegalArgumentException(paramAttributeSet.getPositionDescription() + ": Must specify unique android:id, android:tag, or have a parent with an id for " + str1);
   }
   paramContext = (Context)localObject;
   if (i1 != -1) {
     paramContext = b.a(i1);
   }
   paramString = paramContext;
   if (paramContext == null)
   {
     paramString = paramContext;
     if (str2 != null) {
       paramString = b.a(str2);
     }
   }
   paramContext = paramString;
   if (paramString == null)
   {
     paramContext = paramString;
     if (-1 != 0) {
       paramContext = b.a(0);
     }
   }
   if (n.a) {
     Log.v("FragmentActivity", "onCreateView: id=0x" + Integer.toHexString(i1) + " fname=" + str1 + " existing=" + paramContext);
   }
   int n;
   if (paramContext == null)
   {
     paramContext = Fragment.a(this, str1);
     o = true;
     if (i1 != 0)
     {
       n = i1;
       w = n;
       x = 0;
       y = str2;
       p = true;
       s = b;
       paramContext.a(this, paramAttributeSet, d);
       b.a(paramContext, true);
     }
   }
   for (;;)
   {
     if (I != null) {
       break label498;
     }
     throw new IllegalStateException("Fragment " + str1 + " did not create a view.");
     n = 0;
     break;
     if (p) {
       throw new IllegalArgumentException(paramAttributeSet.getPositionDescription() + ": Duplicate id 0x" + Integer.toHexString(i1) + ", tag " + str2 + ", or parent id 0x" + Integer.toHexString(0) + " with another fragment for " + str1);
     }
     p = true;
     if (!C) {
       paramContext.a(this, paramAttributeSet, d);
     }
     b.b(paramContext);
   }
   label498:
   if (i1 != 0) {
     I.setId(i1);
   }
   if (I.getTag() == null) {
     I.setTag(str2);
   }
   return I;
 }
 public ViewPager$LayoutParams(Context paramContext, AttributeSet paramAttributeSet) {
   super(paramContext, paramAttributeSet);
   paramContext = paramContext.obtainStyledAttributes(paramAttributeSet, ViewPager.access$400());
   gravity = paramContext.getInteger(0, 48);
   paramContext.recycle();
 }
Ejemplo n.º 20
0
 public static int a(Context paramContext, int paramInt) {
   paramContext = paramContext.getTheme().obtainStyledAttributes(new int[] {paramInt});
   paramInt = paramContext.getDimensionPixelSize(0, -1);
   paramContext.recycle();
   return paramInt;
 }
Ejemplo n.º 21
0
 public LayoutParams(Context object, AttributeSet attributeSet) {
     super((Context)object, attributeSet);
     object = object.obtainStyledAttributes(attributeSet, ATTRS);
     this.weight = object.getFloat(0, 0.0f);
     object.recycle();
 }