android - Can't perform translate and alpha animation on Gingerbread -


i have following animation resource:

<?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://schemas.android.com/apk/res/android"     android:interpolator="@android:anim/linear_interpolator"     android:shareinterpolator="true">     <translate         android:duration="@integer/animation_time"         android:fromxdelta="0%"          android:toxdelta="0%"          android:fromydelta="0"         android:toydelta="10%"  />     <alpha         android:duration="@integer/animation_time"         android:fromalpha="1.0"         android:toalpha="0.0" /> </set> 

i have animation set on dialog, when dialog dismissed, shifts down , fades out. working on android 3.0+, on pre 3.0 devices, alpha portion of animation doesn't anything. if set duration longer time, dialog doesn't disappear right away, seems it's running, dialog isn't fading. if comment out translation, or set toydelta value on translation 0 (so there isn't translation) alpha works on 2.3.4, it's when dialog moves won't fade.

any idea why is? i'm having issue on htc evo 3d, have update available 4.0, i've not updated can use test device.

i've run problems when sharing interpolator. try setting interpolator each animation , not using android:shareinterpolator.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -