コード例 #1
0
 public LayoutParams(Context c, AttributeSet attrs) {
   super(c, attrs);
   this.mPercentLayoutInfo = ScaleLayoutHelper.getScaleLayoutInfo(c, attrs);
 }
コード例 #2
0
 @Override
 protected void setBaseAttributes(TypedArray a, int widthAttr, int heightAttr) {
   ScaleLayoutHelper.fetchWidthAndHeight(this, a, widthAttr, heightAttr);
 }
コード例 #3
0
 public ScaleFrameLayout(Context context, AttributeSet attrs, int defStyle) {
   super(context, attrs, defStyle);
   mHelper = ScaleLayoutHelper.create(this, attrs);
 }