I have one LinearLayout
. My layout first time is gone and on button click i visible it with left to right animation.this is my source:
public void ShowSlideMenu(LinearLayout layout)
{
if(layout.getVisibility()==View.GONE)
{
if(LeftSwipe==null)
LeftSwipe=AnimationUtils.loadAnimation(getActivity(),R.anim.slide_menu_lefttoright);
layout.startAnimation(LeftSwipe);
layout.setVisibility(View.VISIBLE);
}
}
this is xml animation code:
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator="true">
<translate
android:duration="@android:integer/config_mediumAnimTime"
android:fromXDelta="100%"
android:fromYDelta="0%"
android:toXDelta="0%"
android:toYDelta="0%" />
animation working perfect but now i want to add Easing effect. i read material design animation and i try to recive like this easing effect
https://www.google.com/design/spec/animation/authentic-motion.html#authentic-motion-mass-weight
and also like this
http://api.jqueryui.com/easings/ if anyone knows solution please help me thanks everyone