android 仿ppt进入动画效果合集
来源:互联网 发布:下载硕鼠软件 编辑:程序博客网 时间:2024/05/20 14:28
EnterAnimation
android 仿ppt进入动画效果合集,
百叶窗效果,擦除效果,盒状效果,阶梯效果,菱形效果,轮子效果,劈裂效果,棋盘效果,
切入效果,扇形展开效果,十字扩展效果,随机线条效果,向内溶解效果,圆形扩展效果,
适用于各种view和viewgroup,activity即用于页面根部viewgroup,
自定义viewgroup自动换行layout,
看效果图
Series of entrance animation effects just like ppt in Android.
There are effects of Blinds,Wipe,Box,Strips,Diamond,Wheel,Split,Checkerboard,Peek In,Wedge,Plus,Random Bars,Dissolve In,Circle.
The Animation effects can apply to any View or ViewGroup.
There is also a custom ViewGroup of auto linefeed called SimpleLineWrapLayout to layout the buttons.
look the images:
Attributes
There are several attributes you can set:
How to use
layout:
在需要显示动画效果的view或viewgroup的外层包一个EnterAnimLayout,然后在java中设置具体动画和控制开始播放动画;需要播放整个activity的话同理在最外层加一个EnterAnimLayout,然后在java中设置具体动画和控制开始播放动画
<com.wangpm.enteranimation.EnterAnimLayout android:id="@+id/anim_layout" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_horizontal" android:background="@android:color/holo_blue_bright" android:padding="20dp" > <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical" android:background="@android:color/holo_orange_light"> <TextView android:id="@+id/text_view" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="EnterAnimTextView" android:textSize="30sp" /> <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal"> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@mipmap/ic_launcher" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="这就是一个按钮"/> </LinearLayout> </LinearLayout> </com.wangpm.enteranimation.EnterAnimLayout>
java:
enterAnimLayout = (EnterAnimLayout) findViewById(R.id.anim_layout); //oncreate中还并未获得view的具体尺寸,所以打开页面时延迟播放动画 new Handler().postDelayed(new Runnable() { @Override public void run() { //举例设置成百叶窗动画 Anim anim = new AnimBaiYeChuang(enterAnimLayout); anim.startAnimation(2500);//开始播放动画,动画播放时长2500ms,默认2000 } }, 1000);
项目地址:
https://github.com/wangpeiming110/EnterAnimation
如果觉得对你有用,请在github上star一个,O(∩_∩)O谢谢
- android 仿ppt进入动画效果合集
- Android动画合集
- Android动画合集
- android进入应用程序时实现动画效果
- PPT动画教程:设置“进入”动画
- Android仿Path按钮动画效果 PathButton
- Android仿Path按钮动画效果 PathButton
- android仿ios弹框,带动画效果
- Android-动画基础合集
- android 高仿资源合集~~
- android高仿源码合集
- android 高仿资源合集~~
- Android 仿豌豆荚应用列表进入详情效果
- Android动画效果(二) 仿QQ点赞动画
- Android动画——仿vivo指纹动画效果
- Android 吸入动画效果详解(仿mac退出效果)
- 仿 UIAlertView动画效果
- Android Launcher如何去掉进入应用时的动画效果?
- 书法空间更名为「书法孔见」通告
- Floyd-Warshall算法求解所有结点对的最短路径问题Java实现
- 城市的联动框
- anjular 的service
- unity5.4版本打包AssetBundle与加载(避免材质丢失网格丢失)
- android 仿ppt进入动画效果合集
- setLayerType的一些问题
- 简要分析unity3d中 yield
- 通过#if和#endif灵活的为自己代码注释
- java程序员学习路线指南
- Spring MVC 中的基于注解的 Controller
- MapReduce程序理解
- mysql 到出到csv 带列表明
- jmeter之分布式控制