com.afollestad.materialdialogs.internal.ThemeSingleton Java Examples
The following examples show how to use
com.afollestad.materialdialogs.internal.ThemeSingleton.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DonationsDialog.java From Orin with GNU General Public License v3.0 | 6 votes |
@NonNull @Override public Dialog onCreateDialog(Bundle savedInstanceState) { billingProcessor = new BillingProcessor(getContext(), App.GOOGLE_PLAY_LICENSE_KEY, this); @SuppressLint("InflateParams") View customView = LayoutInflater.from(getContext()).inflate(R.layout.dialog_donation, null); ProgressBar progressBar = ButterKnife.findById(customView, R.id.progress); MDTintHelper.setTint(progressBar, ThemeSingleton.get().positiveColor.getDefaultColor()); return new MaterialDialog.Builder(getContext()) .title(R.string.support_development) .customView(customView, false) .build(); }
Example #2
Source File: AboutActivity.java From Music-Player with GNU General Public License v3.0 | 5 votes |
private void showLicenseDialog() { new LicensesDialog.Builder(this) .setNotices(R.raw.notices) .setTitle(R.string.licenses) .setNoticesCssStyle(getString(R.string.license_dialog_style) .replace("{bg-color}", ThemeSingleton.get().darkTheme ? "424242" : "ffffff") .replace("{text-color}", ThemeSingleton.get().darkTheme ? "ffffff" : "000000") .replace("{license-bg-color}", ThemeSingleton.get().darkTheme ? "535353" : "eeeeee") ) .setIncludeOwnLicense(true) .build() .show(); }
Example #3
Source File: AboutActivity.java From Orin with GNU General Public License v3.0 | 5 votes |
private void showLicenseDialog() { new LicensesDialog.Builder(this) .setNotices(R.raw.notices) .setTitle(R.string.licenses) .setNoticesCssStyle(getString(R.string.license_dialog_style) .replace("{bg-color}", ThemeSingleton.get().darkTheme ? "424242" : "ffffff") .replace("{text-color}", ThemeSingleton.get().darkTheme ? "ffffff" : "000000") .replace("{license-bg-color}", ThemeSingleton.get().darkTheme ? "535353" : "eeeeee") ) .setIncludeOwnLicense(true) .build() .showAppCompat(); }
Example #4
Source File: SettingsActivity.java From RetroMusicPlayer with GNU General Public License v3.0 | 5 votes |
private void showLicenseDialog() { new LicensesDialog.Builder(getContext()).setNotices(R.raw.licences) .setTitle(R.string.licenses) .setNoticesCssStyle(getString(R.string.license_dialog_style) .replace("{bg-color}", ThemeSingleton.get().darkTheme ? "424242" : "ffffff") .replace("{text-color}", ThemeSingleton.get().darkTheme ? "ffffff" : "000000") .replace("{license-bg-color}", ThemeSingleton.get().darkTheme ? "535353" : "eeeeee")) .setIncludeOwnLicense(true).build().showAppCompat(); }
Example #5
Source File: AboutActivity.java From VinylMusicPlayer with GNU General Public License v3.0 | 5 votes |
private void showLicenseDialog() { new LicensesDialog.Builder(this) .setNotices(R.raw.notices) .setTitle(R.string.licenses) .setNoticesCssStyle(getString(R.string.license_dialog_style) .replace("{bg-color}", ThemeSingleton.get().darkTheme ? "424242" : "ffffff") .replace("{text-color}", ThemeSingleton.get().darkTheme ? "ffffff" : "000000") .replace("{license-bg-color}", ThemeSingleton.get().darkTheme ? "535353" : "eeeeee") ) .setIncludeOwnLicense(true) .build() .show(); }
Example #6
Source File: DonationsDialog.java From Phonograph with GNU General Public License v3.0 | 5 votes |
@NonNull @Override public Dialog onCreateDialog(Bundle savedInstanceState) { billingProcessor = new BillingProcessor(getContext(), App.GOOGLE_PLAY_LICENSE_KEY, this); @SuppressLint("InflateParams") View customView = LayoutInflater.from(getContext()).inflate(R.layout.dialog_donation, null); ProgressBar progressBar = customView.findViewById(R.id.progress); MDTintHelper.setTint(progressBar, ThemeSingleton.get().positiveColor.getDefaultColor()); return new MaterialDialog.Builder(getContext()) .title(R.string.support_development) .customView(customView, false) .build(); }
Example #7
Source File: AboutActivity.java From Phonograph with GNU General Public License v3.0 | 5 votes |
private void showLicenseDialog() { new LicensesDialog.Builder(this) .setNotices(R.raw.notices) .setTitle(R.string.licenses) .setNoticesCssStyle(getString(R.string.license_dialog_style) .replace("{bg-color}", ThemeSingleton.get().darkTheme ? "424242" : "ffffff") .replace("{text-color}", ThemeSingleton.get().darkTheme ? "ffffff" : "000000") .replace("{license-bg-color}", ThemeSingleton.get().darkTheme ? "535353" : "eeeeee") ) .setIncludeOwnLicense(true) .build() .show(); }