private void hideList() {
final FrameLayout layout = (FrameLayout) findViewById(R.id.activity_map_list_fragment_container);
ObjectAnimator animator = new ObjectAnimator();
animator.setProperty(View.Y);
animator.setTarget(layout);
animator.setFloatValues(layout.getMeasuredHeight());
animator.setDuration(250);
animator.setInterpolator(new FastOutLinearInInterpolator());
animator.start();
ObjectAnimator animator2 = new ObjectAnimator();
animator2.setProperty(View.ALPHA);
animator2.setFloatValues(0f);
animator2.setTarget(findViewById(R.id.activity_map_searchbox_background));
animator2.setDuration(250);
animator2.setInterpolator(new LinearOutSlowInInterpolator());
animator2.start();
mListShowing = false;
mSearchView.setDrawerIconState(true, true);
}
MapActivity.java 文件源码
java
阅读 30
收藏 0
点赞 0
评论 0
项目:mvhs-app
作者:
评论列表
文章目录