利用Path实现酷炫的启动界面

来源:互联网 发布:大数据运维 编辑:程序博客网 时间:2024/06/14 06:41

参考GitHub源码的位置https://github.com/geftimov/android-pathview

首先第一步写布局

<com.eftimoff.androipathview.PathView    xmlns:app="http://schemas.android.com/apk/res-auto"    android:id="@+id/pathView"    android:layout_width="150dp"    android:layout_height="150dp"    app:pathColor="@android:color/white"    app:svg="@raw/settings"    app:pathWidth="5dp"/>
第二步直接使用即可

  pathView.getSequentialPathAnimator()        .delay(100)//延迟        .duration(500)        .listenerStart(new AnimationListenerStart())        .listenerEnd(new AnimationListenerEnd())        .interpolator(new AccelerateDecelerateInterpolator())        .start();

原创粉丝点击