【android动画幻灯片下载】宝剑锋从磨砺出,梅花香自苦寒来。这篇文章主要讲述android动画幻灯片下载相关的知识,希望能为你提供帮助。
- public void setLayoutAnim_slidedown( ViewGroup panel, Context ctx) {
- AnimationSet set = new AnimationSet( true) ;
- Animation animation = new TranslateAnimation(
- Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF,
- 0.0f, Animation.RELATIVE_TO_SELF, -1.0f,
- Animation.RELATIVE_TO_SELF, 0.0f) ;
- animation.setDuration( 800) ;
- animation.setAnimationListener( new AnimationListener( ) {
- @Override
- public void onAnimationStart( Animation animation) {
- // TODO Auto-generated method stub
- // MapContacts.this.mapviewgroup.setVisibility(View.VISIBLE);
- }
- @Override
- public void onAnimationRepeat( Animation animation) {
- // TODO Auto-generated method stub
- }
- @Override
- public void onAnimationEnd( Animation animation) {
- // TODO Auto-generated method stub
- }
- } ) ;
- set.addAnimation( animation) ;
- LayoutAnimationController controller = new LayoutAnimationController(
- set, 0.25f) ;
- panel.setLayoutAnimation( controller) ;
- }
- public void setLayoutAnim_slideup( ViewGroup panel, Context ctx) {
- AnimationSet set = new AnimationSet( true) ;
- /*
- * Animation animation = new AlphaAnimation(1.0f, 0.0f);
- * animation.setDuration(200); set.addAnimation(animation);
- */
- Animation animation = new TranslateAnimation(
- Animation.RELATIVE_TO_SELF, 0.0f, Animation.RELATIVE_TO_SELF,
- 0.0f, Animation.RELATIVE_TO_SELF, 0.0f,
- Animation.RELATIVE_TO_SELF, -1.0f) ;
- animation.setDuration( 800) ;
- animation.setAnimationListener( new AnimationListener( ) {
- @Override
- public void onAnimationStart( Animation animation) {
- // TODO Auto-generated method stub
- }
- @Override
- public void onAnimationRepeat( Animation animation) {
- // TODO Auto-generated method stub
- }
- @Override
- public void onAnimationEnd( Animation animation) {
- // MapContacts.this.mapviewgroup.setVisibility(View.INVISIBLE);
- // TODO Auto-generated method stub
- }
- } ) ;
- set.addAnimation( animation) ;
- LayoutAnimationController controller = new LayoutAnimationController(
- set, 0.25f) ;
- panel.setLayoutAnimation( controller) ;
- }
推荐阅读
- Apple设备检测
- Apple Touch设备图标
- Android的Adobe Air文件配置
- 如何在Apple OS X 10.5 Leopard上构建和安装GNU wget
- steam微信支付失败退款退到哪?_微信
- qq飞车宠物有哪些?qq飞车宠物2016排行榜列表
- qq飞车荣誉是啥?qq飞车荣誉等级表列表
- 微信朋友圈指定好友及时间段搜索办法_微信
- 微信小程序填写主体信息图文步骤_微信