Репост из: Andlua+ Officials
⚠️POP UP VIEW
function pop_up(x)
x.setVisibility(View.INVISIBLE)
ObjectAnimator().ofFloat(v,"scaleX",{1.2,.8,1.1,.9,1}).start() ObjectAnimator().ofFloat(v,"scaleY",{1.2,.8,1.1,.9,1}).start()
x.setVisibility(View.VISIBLE)
x.startAnimation(ScaleAnimation(0.0, 1.0, 0.0, 1.0,1, 0.5, 1, 0.5).setDuration(200))
end
Example Use :
pop_up(Your ID)
#LEARNTOCODE
function pop_up(x)
x.setVisibility(View.INVISIBLE)
ObjectAnimator().ofFloat(v,"scaleX",{1.2,.8,1.1,.9,1}).start() ObjectAnimator().ofFloat(v,"scaleY",{1.2,.8,1.1,.9,1}).start()
x.setVisibility(View.VISIBLE)
x.startAnimation(ScaleAnimation(0.0, 1.0, 0.0, 1.0,1, 0.5, 1, 0.5).setDuration(200))
end
Example Use :
pop_up(Your ID)
#LEARNTOCODE