![]() |
7 rokov pred | |
---|---|---|
src | 7 rokov pred | |
.gitignore | 8 rokov pred | |
build.gradle | 8 rokov pred | |
proguard-rules.pro | 8 rokov pred | |
readme.md | 8 rokov pred |
#Kdan Utilities
###2017/04/10
$ cd [YOUR PROJECT]
$ git submodule add ssh://git@git.kdan.cc:Shan/kdan_others_library_for_android.git
a. Declear KdanUtilites module: #####At [YOUR PROJECT]/settings.gradle:
include ':app', ... ,':kdan_others_library_for_android'
b. Include the module the as a library: #####At [YOUR PROJECT]/app/build.gradle:
dependencies {
compile project(path: ':kdan_others_library_for_android')
}
ZendeskLoginNotifyDialog dialog =
new ZendeskLoginNotifyDialog(this,
new ZendeskLoginNotifyDialog.ZendeskLoginNotifyDialogInterface() {
@Override
public void onSignInClick() {}
@Override
public void onGuestVisitClick() {}
}).show();
you need style dialog before call show() method.
dialog.setContentColor(Color.BLACK);
dialog.setContentColorRes(R.color.colorSecondaryTextDark);
####Style dialog background color
dialog.setBackgroundColor(Color.WHITE);
dialog.setBackgroundColorRes(R.color.primaryLight);
####Style button text color
dialog.setButtonColor(Color.BLACK);
dialog.setButtonColorRes(R.color.colorAccentCloud);