Sweet Alert Dialog 201910使用記錄

Sweet Alert Dialog 201910使用記錄

PS. 處女作,不喜勿噴。

環境:
android studio 3.5.1
jdk 1.8
build:gradle:3.5.1

在這裏插入圖片描述
在這裏插入圖片描述

  1. 第一步:添加依賴
implementation 'com.github.f0ris.sweetalert:library:1.5.1'

在這裏插入圖片描述

  1. 第二步:修改了AndroidManifest.xml
xmlns:tools="http://schemas.android.com/tools"

tools:replace="android:icon,android:theme,android:allowBackup,android:label,android:supportsRtl"

在這裏插入圖片描述

  1. sync

在這裏插入圖片描述

  1. 使用
SweetAlertDialog pDialog = new SweetAlertDialog(this, SweetAlertDialog.PROGRESS_TYPE);
pDialog.getProgressHelper().setBarColor(Color.parseColor("#A5DC86"));
pDialog.setTitleText("Loading");
pDialog.setCancelable(false);
pDialog.show();

在這裏插入圖片描述

更多使用,參考官網

參考文檔:

https://blog.csdn.net/ljb780830997/article/details/79065576

https://stackoverflow.com/questions/47195517/android-studio-3-0-error-with-sweet-alert-dialog-library

源碼地址:https://download.csdn.net/download/qq471208499/11922191

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章