Android 仿 PPT 进入动画效果合集
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 p_w_picpaths:
Attributes
There are several attributes you can set:
attr 属性 | description 描述 |
---|---|
isVisibleAtFirst | 进入页面时视图内容是否可见,默认可见 |
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谢谢

低调大师中文资讯倾力打造互联网数据资讯、行业资源、电子商务、移动互联网、网络营销平台。
持续更新报道IT业界、互联网、市场资讯、驱动更新,是最及时权威的产业资讯及硬件资讯报道平台。
转载内容版权归作者及来源网站所有,本站原创内容转载请注明来源。
- 上一篇
grep/sed/awk实战
最近准备和CoreSite - Any2 California接入商建立网络BGP邻居关系。从peeringdb上找到了所有接入商的信息,但是转移信息到本地不是很方便,需要进行多次文本调整,耗时较长。 作为萌新,立马就想到近期学习的grep/sed/awk工具。于是就尝试处理数据。 1、下载页面内容 >curlhttps://www.peeringdb.com/ix/142>peering 将页面内容存入peering文件 2、删除无用信息 翻看网页,发现第一个行需要的信息是“2degrees”,最后一行是“Zscaler AS22616” >grep-n'2degrees'peering##发现第一行是807 >sed-i'1,806'dpeering##删除1-806行 >headpeering##检查 >grep-nA8'22616'peering##发现最后一行是5161 >sed-i'5162,$'dpeering##删除5161后的行 >tailpeering##检查 ▼还有一种方法: >egrep'view_tit...
- 下一篇
熊猫直播Rancho发布系统构建之路
作者介绍 符杰超,熊猫直播基础架构部高级运维开发工程师。主要负责熊猫直播运维自动化架构平台建设和开发 前言 随着熊猫直播的业务发展越来越快,业务需求的迭代和版本更新需求越来越多,对开发和运维面临以下4个痛点: 项目需求上线越来越多 发布周期比较长,人工操作比较繁琐 发布项目效率和风险的问题,比如平滑发布,切换负载均衡 发布过程没有详细的审计功能 由此,团队内部决定在现有的发布过程上实现开发统一的发布系统平台,实现熊猫直播的运维发布流程化、标准化、自动化为一体的统一发布要求。 下面围绕整个Rancho发布系统做总结梳理,总共分为9个方面: 实现的最终目的 用户登陆(发布系统的第一道安全墙) 用户权限(发布系统的第二道安全墙) 项目权限(发布系统的第三道安全墙) 代码发布前台 代码发布后台 发布过程/结果 建立标准的wiki文档 小结 Rancho 发布系统流程概述架构图 Rancho 发布系统流程图 Rancho发布系统 实现的最终目的 随着熊猫直播业务的迅猛发展、项目、产品的需求规模和版本迭代频次是无法预估的。传统的运维支持方式已渐渐无法满足这种工程应用现状。...
相关文章
文章评论
共有0条评论来说两句吧...