android:id="@+id/Load"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clickable="true">
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/spin_kit"
style="@style/SpinKitView.Large.FadingCircle"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_marginTop="60dp"
android:layout_gravity="center"
android:layout_centerInParent="true"
app:SpinKit_Color="@color/colorAccent" />
// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.3.0' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { jcenter() maven { url 'https://jitpack.io' } } } task clean(type: Delete) { delete rootProject.buildDir }
compile 'com.github.ybq:Android-SpinKit:1.1.0'
用法
loadView = (RelativeLayout) findViewById(R.id.Load); loadView.setVisibility(View.GONE);
感谢开源:https://github.com/ybq/Android-SpinKit