Skip to content

Commit

Permalink
update loading
Browse files Browse the repository at this point in the history
  • Loading branch information
MirkoWu committed Apr 24, 2018
1 parent 4238b30 commit 8163e1c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
Binary file added baselibrary/src/main/res/drawable/loading.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions baselibrary/src/main/res/drawable/shape_progressbar.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?><!-- 进度提示(转圈圈) -->
<animated-rotate xmlns:android="http://schemas.android.com/apk/res/android"
android:drawable="@drawable/loading"
android:pivotX="50%"
android:pivotY="50%" />
11 changes: 6 additions & 5 deletions baselibrary/src/main/res/layout/dialog_loading.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,22 @@
android:background="@drawable/shape_loading_bg"
android:gravity="center"
android:orientation="vertical"
android:padding="15dp">
android:padding="12dp">

<ProgressBar
android:id="@+id/mProgressBar"
style="?android:attr/progressBarStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
android:layout_width="36dp"
android:layout_height="36dp"
android:indeterminateDrawable="@drawable/shape_progressbar" />

<android.support.v7.widget.AppCompatTextView
android:id="@+id/mLoadingTextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:layout_marginTop="6dp"
android:text="@string/dialog_loading"
android:textColor="#FFFFFF"
android:textSize="16sp"
android:textSize="15sp"
android:visibility="gone" />
</LinearLayout>

0 comments on commit 8163e1c

Please sign in to comment.