Transition effect has different behaviour on different Android -


i have transition effect below:

<?xml version="1.0" encoding="utf-8"?>  <transition xmlns:android="http://schemas.android.com/apk/res/android"> <item> <shape android:shape="rectangle"> <gradient android:startcolor="#ffff77" android:centercolor="#fdfdee"  android:endcolor="#cccc00"     android:angle="-90" />     <corners android:radius="7px"></corners>             </shape>  </item>    <item>  <shape  android:shape="rectangle"> <gradient android:startcolor="#f55" android:centercolor="#eee"  android:endcolor="#f00"     android:angle="-90" />       </shape> </item>  </transition> 

it works correctly on android 2.2, 2.3, 4.0. recently, i've bought galaxy s4 android 4.2.2. tried run transition effect on , noticed works improperly. there no color changing @ all. although, elements changing color, had different color running on android 2.3. take @ picture:

result in android 4.2.2

enter image description here

enter image description here

relust in android 2.3

enter image description here

enter image description here

as can see tabs have different colors. how fix problem? appreciated!

it seems post api 17 (android 4.2), setting in developer options of devices (mainly samsung galaxy) automatically resets - due this.

if go settings > developer options on device, , option called 'transition animation scale' - if set 'animation off', change 'animation scale 1x'.


Comments