Example #1
0
        protected override View GetViewImpl(Context context, ViewGroup parent)
        {
            View view = DroidResources.LoadFloatElementLayout(context, parent, LayoutName);

            if (view == null)
            {
                Android.Util.Log.Error("FloatElement", "GetViewImpl failed to load template view");
            }

            return(view);
        }
        protected override View GetViewImpl(Context context, View convertView, ViewGroup parent)
        {
            View view = DroidResources.LoadFloatElementLayout(context, convertView, parent, LayoutName);

            if (view != null)
            {
                TextView  label;
                SeekBar   slider;
                ImageView left;
                ImageView right;
                DroidResources.DecodeFloatElementLayout(Context, view, out label, out slider, out left, out right);
                slider.SetOnSeekBarChangeListener(this);
            }
            else
            {
                Android.Util.Log.Error("FloatElement", "GetViewImpl failed to load template view");
            }

            return(view);
        }