gitHub-高仿58同城加载动画
导入方式:
/build.gradle
repositories { maven { url "https://jitpack.io" } }
/app/build.gradle
dependencies { compile 'com.github.zzz40500:android-shapeLoadingView:1.0.3.2' }
使用方式:
直接在xml布局文件上引入即可,动画会自动加载
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity"> <com.mingle.widget.LoadingView android:id="@+id/loadView" android:layout_width="fill_parent" android:layout_height="fill_parent"/> </RelativeLayout>
github地址:https://github.com/zzz40500/android-shapeLoadingView