Skip to content
This repository has been archived by the owner on Jan 8, 2022. It is now read-only.

Commit

Permalink
调整sample代码
Browse files Browse the repository at this point in the history
  • Loading branch information
ForgetAll committed Nov 1, 2017
1 parent ceac3da commit 5b48c89
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/src/main/java/com/xiasuhuei321/sample/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
Expand Down Expand Up @@ -106,6 +106,12 @@ public void onClick(View v) {

case R.id.btn2:
ld = new LoadingDialog(this);
ld.setOnFinishListener(new LoadingDialog.OnFinshListener() {
@Override
public void onFinish() {
Toast.makeText(MainActivity.this, "绘制完毕", Toast.LENGTH_SHORT).show();
}
});
ld.setLoadingText("加载中")
.setSuccessText("加载成功")
.setInterceptBack(intercept_back_event)
Expand Down

0 comments on commit 5b48c89

Please sign in to comment.