标签:
导入方式:
/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
标签:
原文地址:http://www.cnblogs.com/shiwei-bai/p/4914121.html