forked from organicmaps/organicmaps
[android] Tune search transition animation speed.
This commit is contained in:
parent
3022e598ad
commit
a62273bb22
4 changed files with 19 additions and 1 deletions
7
android/res/anim/search_fade_in.xml
Normal file
7
android/res/anim/search_fade_in.xml
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<alpha
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:interpolator="@android:interpolator/decelerate_quad"
|
||||
android:fromAlpha="0.0"
|
||||
android:toAlpha="1.0"
|
||||
android:duration="@integer/search_fade_in_anim_time"/>
|
7
android/res/anim/search_fade_out.xml
Normal file
7
android/res/anim/search_fade_out.xml
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<alpha
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:interpolator="@android:interpolator/accelerate_quad"
|
||||
android:fromAlpha="1.0"
|
||||
android:toAlpha="0.0"
|
||||
android:duration="@integer/search_fade_out_anim_time"/>
|
|
@ -5,4 +5,7 @@
|
|||
<integer name="pp_hotel_description_lines">5</integer>
|
||||
|
||||
<integer name="sharing_initial_rows">2</integer>
|
||||
|
||||
<integer name="search_fade_in_anim_time">250</integer>
|
||||
<integer name="search_fade_out_anim_time">200</integer>
|
||||
</resources>
|
||||
|
|
|
@ -9,6 +9,7 @@ import android.support.v4.app.Fragment;
|
|||
import android.support.v4.app.FragmentManager;
|
||||
import android.support.v4.app.NavUtils;
|
||||
|
||||
import com.mapswithme.maps.R;
|
||||
import com.mapswithme.maps.activity.CustomNavigateUpListener;
|
||||
import com.mapswithme.maps.base.BaseMwmFragmentActivity;
|
||||
import com.mapswithme.maps.base.OnBackPressListener;
|
||||
|
@ -26,7 +27,7 @@ public class SearchActivity extends BaseMwmFragmentActivity implements CustomNav
|
|||
i.putExtra(EXTRA_QUERY, query);
|
||||
i.putExtra(EXTRA_HOTELS_FILTER, filter);
|
||||
activity.startActivity(i);
|
||||
activity.overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
|
||||
activity.overridePendingTransition(R.anim.search_fade_in, R.anim.search_fade_out);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue