/// <summary> /// This ctor is used mostly when FloatingControler is inflated from xml layout /// </summary> /// <param name="context"> /// The context for which the view is being inflated. If it is not an Activity the /// exception may be thrown. </param> /// <param name="attrs"> /// Attributes given in xml declaration of FloatingControler </param> public FloatingController(Context context, AttributeSet attrs) : base(context, attrs) { TypedArray array = context.Theme.obtainStyledAttributes(attrs, R.styleable.FloatingControler, 0, 0); initializeControl(array); array.recycle(); }