Animation on a view doesn't 'stick' in reality

by Romain Guy » Fri, 10 Apr 2009 07:41:04 GMT


Sponsored Links
 > Any way to do this without setting up an animation completion handler

Yes and no. No because you still need to hide the view yourself. Yes
because you can just do this:

myView.startAnimation(myAnimation);
myView.setVisibility(View.INVISIBLE); // or GONE

Android will hide the View and run the animation but still draw the
View as long as the animation is running.

-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Is there a way to track my piracy rates for paid apps?

This is the first time I've released a paid app.  I was wondering if
there was a way to track piracy rates of my app.  Thanks

-- 

2. Thin white line runs through the <Button> in disabled state.

I am using a <Button> widget in one of my layout. I created this
button in disabled state. A thin white line runs through the button,
at center horizontal,  while it is in disabled state. And in enabled
state it is normal like any other widgets.

Below is the layout code:
----------------------------------------------------------------------------------------------------------------------

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
<TextView
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="@string/hello"
    />
    <Button
            android:id="@+id/my_button"
            android:layout_width="fill_parent"
            android:layout_height="45dp"
            android:text="@string/hello"
            android:enabled="false"
     />
</LinearLayout>
-------------------------------------------------------------------------------------------------------------------------------------

I am setting the height of the button as
                               android:layout_height="45dp".

When I set the height as  "wrap_content" this issue (white line on
disabled state) is not seen.

Any insight about this issue.

-- 

3. Is Usbnet driver (host) available for android2.2?

4. wifi - dhcpcd/getprop problem.

5. Guide on adding WiFi drivers to Android

6. opnegl es 2.0 on the Froyo is working now?

7. Dynamic images slide show along with context menu and about smooth swipe event..Urgent suggestion/Idea needed..