Esempio n. 1
0
 public int getBaseline() {
   RMBLabelItem.RMBLabel localRMBLabel2 = this.nowPriceLabel;
   RMBLabelItem.RMBLabel localRMBLabel1 = localRMBLabel2;
   if (this.originPriceLabel.getBaseline() > localRMBLabel2.getBaseline())
     localRMBLabel1 = this.originPriceLabel;
   return ((LinearLayout.LayoutParams) localRMBLabel1.getLayoutParams()).topMargin
       + localRMBLabel1.getBaseline();
 }
Esempio n. 2
0
 private ViewGroup.MarginLayoutParams getMargins(int paramInt1, int paramInt2) {
   ViewGroup.MarginLayoutParams localMarginLayoutParams = new ViewGroup.MarginLayoutParams(-2, -2);
   localMarginLayoutParams.setMargins(0, 0, 0, 0);
   paramInt1 = RMBLabelItem.RMBLabel.access$000(paramInt1, paramInt2);
   TypedArray localTypedArray =
       getContext().obtainStyledAttributes(paramInt1, R.styleable.RMBLabelStyle);
   if ((localTypedArray == null) || (localTypedArray.length() <= 0)) {
     if (localTypedArray != null) localTypedArray.recycle();
     return localMarginLayoutParams;
   }
   int j = ViewUtils.dip2px(getContext(), 0.0F);
   paramInt1 =
       localTypedArray.getDimensionPixelSize(R.styleable.RMBLabelStyle_label_margin_left, j);
   paramInt2 =
       localTypedArray.getDimensionPixelSize(R.styleable.RMBLabelStyle_label_margin_right, j);
   int i = localTypedArray.getDimensionPixelSize(R.styleable.RMBLabelStyle_label_margin_bottom, j);
   j = localTypedArray.getDimensionPixelSize(R.styleable.RMBLabelStyle_label_margin_top, j);
   if (localTypedArray != null) localTypedArray.recycle();
   localMarginLayoutParams.setMargins(paramInt1, j, paramInt2, i);
   return localMarginLayoutParams;
 }