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 6781719
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:39:26+00:00 2026-05-26T16:39:26+00:00

I have button, which i rotated 45 degrees using rotate animation and applied on

  • 0

I have button, which i rotated 45 degrees using rotate animation and applied on click listener that toasting a message.

When i click on upper 50% of the button toast is displaying.
But when i click on lower 50% of the button nothing is displying.

here animation code.

<?xml version="1.0" encoding="utf-8"?>
<rotate
 xmlns:android="http://schemas.android.com/apk/res/android"
    android:fromDegrees="45"
    android:toDegrees="45"
    android:pivotX="50%"
    android:pivotY="50%"
    android:duration="0" android:fillAfter="true">
</rotate>

df

Thanks in advance…..!

  • 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-05-26T16:39:27+00:00Added an answer on May 26, 2026 at 4:39 pm

    I’m pretty sure this is a limitation of animation in Android. They fixed it in 3.0 onwards by implementing a new animation system.

    Read here:
    http://android-developers.blogspot.com/2011/02/animation-in-honeycomb.html

    “Finally, the previous animations changed the visual appearance of the target objects… but they didn’t actually change the objects themselves. You may have run into this problem. Let’s say you want to move a Button from one side of the screen to the other. You can use a TranslateAnimation to do so, and the button will happily glide along to the other side of the screen. And when the animation is done, it will gladly snap back into its original location. So you find the setFillAfter(true) method on Animation and try it again. This time the button stays in place at the location to which it was animated. And you can verify that by clicking on it – Hey! How come the button isn’t clicking? The problem is that the animation changes where the button is drawn, but not where the button physically exists within the container. If you want to click on the button, you’ll have to click the location that it used to live in. Or, as a more effective solution (and one just a tad more useful to your users), you’ll have to write your code to actually change the location of the button in the layout when the animation finishes.

    It is for these reasons, among others, that we decided to offer a new animation system in Honeycomb, one built on the idea of “property animation.”

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

Sidebar

Related Questions

I want to rotate a Button view by 45 degrees. For that I have
I have an ImageView on which I have applied a rotate animation. Since I
I have a button which is in update panel. When I click on button
Using Flex 3, I have a Button which is skinned using PNGs specified in
I have button, which fires an event, that deletes a record from the database.
I have a button which slides out a menu using a storyboard by calling
I have a button which I am using to add value from list 1
I have a button which I use for sending a message. When the message
I have a button which on clicking opens jquery dialog. Inside that jquery dialog
I am developing a app in which i have rotate a delete button when

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.