I tried to animate the edittext when the user started editing it. I tried the following code,
EditText txtPassword = (EditText) findViewById(R.id.editText1); Animation anim = AnimationUtils.loadAnimation(getApplicationContext(),R.anim.anim); anim.setInterpolator((new AccelerateDecelerateInterpolator())); anim.setFillAfter(true); txtPassword.startAnimation(anim); anim.xml ```````` <?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://schemas.android.com/apk/res/android"> <translate android:fromYDelta="0" android:toYDelta="-50%p" android:duration="100"/> </set>
Animation works great. but edittext stopped user interaction after the animation. If the user touches the previous position of the edittext screen, a keyboard will appear. but the text editor is actually in a new position should respond. What should I do?

I hope someone can edit my question in the correct English format.
android android-edittext animation
user919127
source share