Github

Github 好用分享Android DesignerToast

1.先導入函示庫(build.gradle: Project)

allprojects {
    repositories {
        maven { url "https://jitpack.io" }
    }
}

2.先導入函示庫(build.gradle: Module)

dependencies {
     implementation 'com.github.vedraj360:DesignerToast:0.1.3'
}

3.程式碼範例

DesignerToast.defaultToast(this, "一般", Gravity.CENTER, Toast.LENGTH_SHORT)

DesignerToast.Success(this, "成功", Gravity.CENTER, Toast.LENGTH_SHORT)

DesignerToast.Error(this, "錯誤", Gravity.CENTER, Toast.LENGTH_SHORT)

DesignerToast.Warning(this, "警告", Gravity.CENTER, Toast.LENGTH_SHORT)

DesignerToast.Info(this, "資訊", Gravity.CENTER, Toast.LENGTH_SHORT)

發表迴響