i'm trying animate image button objectanimator move in circular motion
propertyvaluesholder tranx = propertyvaluesholder.offloat(view.translation_x, path); propertyvaluesholder trany = propertyvaluesholder.offloat(view.translation_y, path); objectanimator scaleanimation = objectanimator.ofpropertyvaluesholder(scalebutton, pvhx, pvhy); scaleanimation.setrepeatcount(1); scaleanimation.setrepeatmode(valueanimator.reverse);
i tried make path :
path path_x = new path(); path path_y = new path(); for(i = 0; < 2* math.py; += 0.1) { \\save path cos , sin }
but don't know method use inside loop if it's possible
i try other way create circular motion
Comments
Post a Comment