Exemple #1
0
        public ActionBarView(Context context, IAttributeSet attrs)
            : base(context, attrs)
        {
            SetMinimumWidth(0);
            SetMinimumHeight(0);
            Visibility = ViewStates.Gone;
            TypedArray typedArray = Context.ObtainStyledAttributes(attrs, Resource.Styleable.Binding);

            try
            {
                _resourceId   = typedArray.GetResourceId(Resource.Styleable.Binding_ActionBarTemplate, int.MinValue);
                _tabContentId = typedArray.GetResourceId(Resource.Styleable.Binding_TabContentId, int.MinValue);
            }
            finally
            {
                typedArray.Recycle();
                typedArray.Dispose();
            }
        }