java - Android Button Doesn't Respond After Animation -
I have a basic animation of a button after it is pressed currently in my application. After finishing the button animating, I can not click on it anymore It also does not press with an orange highlight
any help
here is my code:.?
Public Zero onCreate (bundled savedInstanceState) {super.onCreate (savedInstanceState); SetContentView (R.layout.main); Animation = new animation set (true); Animation.setFillAfter (right); Translation of animation = New TranslationAnimation (Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF, 5.0f); Translate.setDuration (500); Animation.addAnimation (translate); Layout Animation Controller Controller = New Layout Animation Controller (Animation, 0.25F); Generate = (button) Find VBID (RID Button); Gener.setOnClickListener (New View.OnClickListener) {Public Zero onClick (see v) {keyFromTop ();}}); } Public Zero Keystorm () {generate.setAnimation (Animation); } Text after "text" itemprop = "text"> The only drawing of the animation widget, after which the animation is done means the effect , Your button is still at your previous position if you want to move it to a new location, you need to manually update the layout parameters of your buttons, besides your AnimationSet and your AnimationController are useless.
Comments
Post a Comment