I have a recycler view with implemented swipe left/right option. My animation is here:
res/anim/slide_left_out
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator="false" >
<translate android:duration="5000" android:fromXDelta="0%" android:toXDelta="-100%"/>
<alpha android:duration="5000" android:fromAlpha="1.0" android:toAlpha="1.0" />
</set>
and it works good, but I want to change its color when swiping start (as Gmail inbox). View.setBackground(...) does not work.
How I can do this? Thanks!