Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8755171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:47:46+00:00 2026-06-13T13:47:46+00:00

I tried to animate the edittext when user starts editing it. I have tried

  • 0

I tried to animate the edittext when user starts editing it.
I have 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>

The animation works fine.
but the edittext stopped userinteraction after animation.
If the user touches the previous position of the edittext of the screen, the keyboard appears.
but the edittext actually in the new position should respond. What I have to do?

enter image description here

enter image description here
I hope that someone can edit my question in correct english format.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T13:47:47+00:00Added an answer on June 13, 2026 at 1:47 pm

    (USEFUL HINT: There is a Android library for using the Honeycomb (Android 3.0) animation API on all versions of the platform back to 1.0!. It is called NineOldAndroid.)

    (USEFUL HINT (Android Developers, View): Starting with Android 3.0, the preferred way of animating views is to use the android.animation package APIs. These Animator-based classes change actual properties of the View object, such as alpha and translationX. This behavior is contrasted to that of the pre-3.0 Animation-based classes, which instead animate only how the view is drawn on the display. In particular, the ViewPropertyAnimator class makes animating these View properties particularly easy and efficient. )

    (NOTE THAT: BELOW SOLUTION IS FOR PRE-HONEYCOMB.)

    Animations with android is a bit tricky to understand, in contrast to iOS. You need to know that;

    • only the ghost of the Android View subclass is animated.
    • and the grave is still at the ancestor coordinate

    So the solution might be;

    • Block touch events to view

      animatingView.setEnabled(FALSE);

    • animate view

    • Remove animatingView

      animatingView.setVisibility(GONE);
      (animatingView.getParent()).removeView(animatingView);

    • Add the exact duplicate of view to the new coordinates.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've tried editing the JS for the animation function in Zoomer.js, here's the code:
I tried the following code: var origh1 = $('img:first').height(); alert(origh1); But it alerted a
I tried writing my own animation function to animate the counting up and down
I have defined a function to animate 7 divs to the top. I tried
I have a path which I want to animate every 5 seconds. I tried
I've tried the following code to change some css properties (.overthumb) of a DIV
I've tried to find a way to animate my body's background-position using following jQuery
I am trying to animate my UITableView sliding off the screen, I have tried
Is there a way to animate enabling or disabling a button? I've tried the
How to make button not clickable while translate.animate is in progress. I tried with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.