Example #1
0
 /**
  * Constructor. Maps the spring domain [0, 1] to the specified view property range.
  *
  * @param target
  *      the view to modify.
  * @param property
  *      the view property to modify.
  * @param start
  *      the minimum value for the view property range.
  * @param end
  *      the maximum value for the view property range.
  */
 public MapPerformer(View target, Android.Util.Property property, float start, float end) : base(target, property)
 {
     //this(target, property, 0, 1, start, end);
     initialStart = 0;
     initialEnd   = 1;
     this.start   = start;
     this.end     = end;
 }
Example #2
0
 /**
  * Constructor. Maps the spring domain [0, 1] to the view property range [0, 1].
  *
  * @param target
  *      the view to modify.
  * @param property
  *      the view property to modify.
  */
 public MapPerformer(View target, Android.Util.Property property) : base(target, property)
 {
     //this(target, property, 0, 1, 0, 1);
     initialStart = 0;
     initialEnd   = 1;
     this.start   = 0;
     this.end     = 1;
 }
Example #3
0
            /**
             * @param motionImitator
             *      maps an event to a {@link com.facebook.rebound.Spring}
             * @param viewProperty
             *      the {@link android.view.View} property to animate
             * @param springListener
             *      additional listener to attach
             * @return the builder for chaining
             */

            public Builder AddMotion(MotionImitator motionImitator,
                                     Android.Util.Property viewProperty,
                                     ISpringListener springListener)
            {
                return(AddMotion(mSpringSystem.CreateSpring(), motionImitator,
                                 new Performer[] { new Performer(viewProperty) },
                                 new ISpringListener[] { springListener }));
            }
Example #4
0
        /**
         * Constructor. Maps the spring domain [0, 1] to the specified view property range.
         *
         * @param target
         *      the view to modify.
         * @param property
         *      the view property to modify.
         * @param initialStart
         *      the minimum value for the spring domain.
         * @param initialEnd
         *      the maximum value for the spring domain.
         * @param start
         *      the minimum value for the view property range.
         * @param end
         *      the maximum value for the view property range.
         */
        public MapPerformer(View target, Android.Util.Property property, float initialStart,
                            float initialEnd, float start, float end) : base(target, property)
        {
            //super(target, property);

            this.initialStart = initialStart;
            this.initialEnd   = initialEnd;
            this.start        = start;
            this.end          = end;
        }
Example #5
0
 public void SetProperty(Android.Util.Property property)
 {
     this.mProperty = property;
 }
Example #6
0
 /**
  * Constructor.
  *
  * @param target
  *      the view to modify.
  * @param property
  *      the view property to modify.
  */
 public Performer(View target, Android.Util.Property property)
 {
     this.mTarget   = target;
     this.mProperty = property;
 }
Example #7
0
        //public IntPtr Handle
        //{
        //	get
        //	{
        //		return this.Handle;
        //	}
        //}

        /**
         * Constructor. Note that a {@link View} must be specified by {@link #setTarget(View)}.
         *
         * @param property
         *      the view property to modify.
         */
        public Performer(Android.Util.Property property)
        {
            mTarget   = null;
            mProperty = property;
        }