Wayne 716a0431f4 Move drawable to correct folder | 4 роки тому | |
---|---|---|
src | 4 роки тому | |
.gitignore | 7 роки тому | |
build.gradle | 5 роки тому | |
proguard-rules.pro | 7 роки тому | |
readme.md | 5 роки тому |
#Kdan Utilities
###2017/07/19
$ 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 {
implementation 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);
###SimpleWebActivity Put this into you app's manifest, you can change some settings.
<activity
android:name="com.kdanmobile.kdan_others_library_for_android.view.SimpleWebViewActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
android:launchMode="singleTask"
android:screenOrientation="sensorLandscape"
android:theme="@style/Theme.AppCompat.Light.NoActionBar.FullScreen" />
Call this then it will works.
String url = "https://www.google.com";
SimpleWebViewActivity.launch(this, url);