当前位置: 首页>>代码示例>>Java>>正文


Java MITLicense类代码示例

本文整理汇总了Java中de.psdev.licensesdialog.licenses.MITLicense的典型用法代码示例。如果您正苦于以下问题:Java MITLicense类的具体用法?Java MITLicense怎么用?Java MITLicense使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


MITLicense类属于de.psdev.licensesdialog.licenses包,在下文中一共展示了MITLicense类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: openSourceLicenses

import de.psdev.licensesdialog.licenses.MITLicense; //导入依赖的package包/类
private void openSourceLicenses() {
    findPreference("open_source_licenses").setOnPreferenceClickListener(preference -> {
        Notices notices = new Notices();
        notices.addNotice(new Notice("AppIntro", "https://github.com/PaoloRotolo/AppIntro", "Copyright 2015 Paolo Rotolo ,  Copyright 2016 Maximilian Narr", new ApacheSoftwareLicense20()));
        notices.addNotice(new Notice("android-issue-reporter", "https://github.com/HeinrichReimer/android-issue-reporter", "", new ApacheSoftwareLicense20()));
        notices.addNotice(new Notice("ButterKnife", "https://github.com/JakeWharton/butterknife", "Copyright 2013 Jake Wharton", new ApacheSoftwareLicense20()));
        notices.addNotice(new Notice("Custom Analog Clock View", "https://github.com/rosenpin/custom-analog-clock-view", "Copyright (C) 2016 Tomer Rosenfeld", new GnuGeneralPublicLicense30()));
        notices.addNotice(new Notice("CircleImageView", "https://github.com/hdodenhof/CircleImageView", "Copyright 2014 - 2016 Henning Dodenhof", new ApacheSoftwareLicense20()));
        notices.addNotice(new Notice("LicensesDialog", "https://github.com/PSDev/LicensesDialog", "", new ApacheSoftwareLicense20()));
        notices.addNotice(new Notice("material-dialogs", "https://github.com/afollestad/material-dialogs", "Copyright (c) 2014-2016 Aidan Michael Follestad", new MITLicense()));
        new LicensesDialog.Builder(getActivity())
                .setNotices(notices)
                .build()
                .show();
        return true;
    });
}
 
开发者ID:rosenpin,项目名称:AlwaysOnDisplayAmoled,代码行数:18,代码来源:SettingsFragment.java

示例2: createLicenseDialog

import de.psdev.licensesdialog.licenses.MITLicense; //导入依赖的package包/类
private void createLicenseDialog() {
    Notices notices = new Notices();
    notices.addNotice(new Notice("PhotoView", "https://github.com/chrisbanes/PhotoView", "Copyright 2017 Chris Banes", new ApacheSoftwareLicense20()));
    notices.addNotice(new Notice("OkHttp", "https://github.com/square/okhttp", "Copyright 2016 Square, Inc.", new ApacheSoftwareLicense20()));
    notices.addNotice(new Notice("Gson", "https://github.com/google/gson", "Copyright 2008 Google Inc.", new ApacheSoftwareLicense20()));
    notices.addNotice(new Notice("Glide", "https://github.com/bumptech/glide", "Sam Judd - @sjudd on GitHub, @samajudd on Twitter", new ApacheSoftwareLicense20()));
    notices.addNotice(new Notice("Stetho", "https://github.com/facebook/stetho", "Copyright (c) 2015, Facebook, Inc. All rights reserved.", new BSD3ClauseLicense()));
    notices.addNotice(new Notice("PersistentCookieJar", "https://github.com/franmontiel/PersistentCookieJar", "Copyright 2016 Francisco José Montiel Navarro", new ApacheSoftwareLicense20()));
    notices.addNotice(new Notice("jsoup", "https://jsoup.org", "Copyright © 2009 - 2016 Jonathan Hedley ([email protected])", new MITLicense()));

    new LicensesDialog.Builder(context)
            .setNotices(notices)
            .setIncludeOwnLicense(true)
            .build()
            .show();
}
 
开发者ID:iMeiji,项目名称:Toutiao,代码行数:17,代码来源:GeneralPreferenceFragment.java

示例3: setupLicenseDialog

import de.psdev.licensesdialog.licenses.MITLicense; //导入依赖的package包/类
/**
 * Setup the dialog with all the OSS licenses utilized in the app
 */
private void setupLicenseDialog() {
    final Notices notices = new Notices();

    notices.addNotice(new Notice("Riasel", "https://github.com/thasmin/Riasel", "Dan Goldstein", new RiaselLicense()));
    notices.addNotice(new Notice("Material Design Icons", "https://github.com/google/material-design-icons", "Google", new CCAttribution40IntlLicense()));
    notices.addNotice(new Notice("Butterknife", "http://jakewharton.github.io/butterknife", "Jake Wharton", new ApacheSoftwareLicense20()));
    notices.addNotice(new Notice("RxAndroid", "https://github.com/ReactiveX/RxAndroid", "Netflix", new ApacheSoftwareLicense20()));
    notices.addNotice(new Notice("Google Gson", "https://code.google.com/p/google-gson", "Google", new ApacheSoftwareLicense20()));
    notices.addNotice(new Notice("OkHttp", "http://square.github.io/okhttp", "Square", new ApacheSoftwareLicense20()));
    notices.addNotice(new Notice("CWAC Wakeful", "http://commonsware.com/cwac", "commonsguy", new ApacheSoftwareLicense20()));
    notices.addNotice(new Notice("Gradle Retrolambda Plugin", "https://github.com/evant/gradle-retrolambda", "Evan Tatarka", new ApacheSoftwareLicense20()));
    notices.addNotice(new Notice("Android PagerSlidingTabStrip", "https://github.com/jpardogo/PagerSlidingTabStrip", "Andreas Stuetz", new ApacheSoftwareLicense20()));
    notices.addNotice(new Notice("Sugar ORM", "http://satyan.github.com/sugar", "Satya Narayan", new MITLicense()));
    notices.addNotice(new Notice("jsoup", "http://http://jsoup.org", "Jonathan Hedley", new MITLicense()));

    LicensesDialog.Builder builder = new LicensesDialog.Builder(this);
    builder.setNotices(notices);
    builder.setIncludeOwnLicense(true);
    mLicenseDialog = builder.build();
}
 
开发者ID:creativedrewy,项目名称:WeaRSS,代码行数:24,代码来源:SettingsActivity.java

示例4: registerDefaultLicenses

import de.psdev.licensesdialog.licenses.MITLicense; //导入依赖的package包/类
static void registerDefaultLicenses() {
    sLicenses.clear();
    registerLicense(new ApacheSoftwareLicense20());
    registerLicense(new BSD2ClauseLicense());
    registerLicense(new BSD3ClauseLicense());
    registerLicense(new ISCLicense());
    registerLicense(new MITLicense());
    registerLicense(new GnuLesserGeneralPublicLicense21());
    registerLicense(new GnuLesserGeneralPublicLicense3());
    registerLicense(new CreativeCommonsAttributionNoDerivs30Unported());
    registerLicense(new GnuGeneralPublicLicense30());
    registerLicense(new GnuGeneralPublicLicense20());
    registerLicense(new MozillaPublicLicense11());
    registerLicense(new SILOpenFontLicense11());
    registerLicense(new MozillaPublicLicense20());
    registerLicense(new CreativeCommonsAttribution30Unported());
    registerLicense(new EclipsePublicLicense10());
}
 
开发者ID:PSDev,项目名称:LicensesDialog,代码行数:19,代码来源:LicenseResolver.java

示例5: showLicensesDialog

import de.psdev.licensesdialog.licenses.MITLicense; //导入依赖的package包/类
public void showLicensesDialog(View v) {
    final Notices notices = new Notices();
    notices.addNotice(new Notice("Retrofit", "https://github.com/square/retrofit", "Square, Inc", new ApacheSoftwareLicense20()));
    notices.addNotice(new Notice("Material Dialogs", "https://github.com/afollestad/material-dialogs", "Aidan Michael Follestad", new MITLicense()));
    notices.addNotice(new Notice("EasyPreferences", "https://github.com/Pixplicity/EasyPreferences", "Pixplicity", new ApacheSoftwareLicense20()));
    new LicensesDialog.Builder(this)
            .setTitle("Open source software licenses")
            .setNotices(notices)
            .setIncludeOwnLicense(false)
            .build()
            .show();
}
 
开发者ID:theblixguy,项目名称:ScanLinks,代码行数:13,代码来源:AboutActivity.java

示例6: onCreate

import de.psdev.licensesdialog.licenses.MITLicense; //导入依赖的package包/类
@Override
public void onCreate(Bundle onSavedInstanceState) {
    super.onCreate(onSavedInstanceState);
    addPreferencesFromResource(R.xml.settings_about);
    ((SettingActivity) getActivity()).setToolbarTitle(getString(R.string.licenses_and_about));
    mPreferenceManager = getPreferenceManager();

    mContactsUsPreference = mPreferenceManager.findPreference("preference_key_contact_use");
    mLicensesPreference = mPreferenceManager.findPreference("preference_key_licenses");

    mContactsUsPreference.setOnPreferenceClickListener(preference -> {
        Intent emailIntent = new Intent(Intent.ACTION_SENDTO, Uri.fromParts("mailto", "[email protected]", null));
        emailIntent.putExtra(Intent.EXTRA_SUBJECT, "Boom Music Player Support");
        startActivity(Intent.createChooser(emailIntent, "Send email"));
        return false;
    });

    mLicensesPreference.setOnPreferenceClickListener(preference -> {
        final Notices notices = new Notices();
        notices.addNotice(new Notice("SeekArc", "https://github.com/neild001/SeekArc", "Neil Davies", new MITLicense()));
        notices.addNotice(new Notice("RangeSliderView", "https://github.com/channguyen/range-slider-view", "Chan Nguyen", new MITLicense()));
        notices.addNotice(new Notice("range-seek-bar", "https://github.com/anothem/android-range-seek-bar", "Neil Davies", new ApacheSoftwareLicense20()));
        notices.addNotice(new Notice("jaudiotagger", "https://bitbucket.org/ijabz/jaudiotagger", "Paul Taylor", new GnuGeneralPublicLicense20()));
        notices.addNotice(new Notice("Universal Image Loader", "https://github.com/nostra13/Android-Universal-Image-Loader", "Sergey Tarasevich", new ApacheSoftwareLicense20()));
        notices.addNotice(new Notice("android-betterpickers", "https://github.com/code-troopers/android-betterpickers", "Derek Brameyer", new ApacheSoftwareLicense20()));
        notices.addNotice(new Notice("VerticalSeekBar", "https://github.com/h6ah4i/android-verticalseekbar", "Derek Brameyer", new ApacheSoftwareLicense20()));



        new LicensesDialog.Builder(getActivity())
                .setNotices(notices)
                .setIncludeOwnLicense(true)
                .build()
                .show();
        return false;
    });

}
 
开发者ID:reyanshmishra,项目名称:Rey-MusicPlayer,代码行数:39,代码来源:SettingsAboutFragment.java

示例7: createLicenseDialog

import de.psdev.licensesdialog.licenses.MITLicense; //导入依赖的package包/类
private void createLicenseDialog() {
    Notices notices = new Notices();
    notices.addNotice(new Notice("Material Dialogs", "https://github.com/afollestad/material-dialogs", "Copyright (c) 2014-2016 Aidan Michael Follestad", new MITLicense()));
    notices.addNotice(new Notice("OkHttp", "https://github.com/square/okhttp", "Copyright 2016 Square, Inc.", new ApacheSoftwareLicense20()));
    notices.addNotice(new Notice("Gson", "https://github.com/google/sGson", "Copyright 2008 Google Inc.", new ApacheSoftwareLicense20()));
    notices.addNotice(new Notice("Glide", "https://github.com/bumptech/glide", "Sam Judd - @sjudd on GitHub, @samajudd on Twitter", new ApacheSoftwareLicense20()));
    notices.addNotice(new Notice("CircleImageView", "https://github.com/hdodenhof/CircleImageView", "Copyright 2014 - 2016 Henning Dodenhof", new ApacheSoftwareLicense20()));

    new LicensesDialog.Builder(this)
            .setNotices(notices)
            .setIncludeOwnLicense(true)
            .build()
            .show();
}
 
开发者ID:iMeiji,项目名称:Daily,代码行数:15,代码来源:AboutActivity.java

示例8: showLicences

import de.psdev.licensesdialog.licenses.MITLicense; //导入依赖的package包/类
public void showLicences(View v) {
    final Notices notices = new Notices();
    notices.addNotice(new Notice("Material Dialogs", "https://github.com/afollestad/material-dialogs", "Aidan Michael Follestad", new MITLicense()));
    notices.addNotice(new Notice("libsuperuser", "https://github.com/Chainfire/libsuperuser", "Chainfire", new ApacheSoftwareLicense20()));
    notices.addNotice(new Notice("Nanotasks", "https://github.com/fabiendevos/nanotasks", "Fabien Devos", new ApacheSoftwareLicense20()));
    notices.addNotice(new Notice("ProcessPhoenix", "https://github.com/JakeWharton/ProcessPhoenix", "Jake Wharton", new ApacheSoftwareLicense20()));
    notices.addNotice(new Notice("ckChangelog", "https://github.com/cketti/ckChangeLog", "cketti", new ApacheSoftwareLicense20()));
    notices.addNotice(new Notice("SimpleCustomTabs", "https://github.com/eliseomartelli/SimpleCustomTabs", "Eliseo Martelli", new MITLicense()));
    notices.addNotice(new Notice("MaterialList", "https://github.com/dexafree/MaterialList", "Dexafree", new MITLicense()));
    new LicensesDialog.Builder(this).setNotices(notices).setIncludeOwnLicense(true).build().show();
}
 
开发者ID:theblixguy,项目名称:ForceDoze,代码行数:12,代码来源:AboutAppActivity.java

示例9: getLicensesElement

import de.psdev.licensesdialog.licenses.MITLicense; //导入依赖的package包/类
private Element getLicensesElement() {
    Element element = new Element();
    element.setTitle(getResources().getString(R.string.about_activity_licenses));
    element.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View view) {
            final Notices notices = new Notices();
            notices.addNotice(new Notice("SQLiteAssetHelper",
                    "https://github.com/jgilfelt/android-sqlite-asset-helper",
                    "Copyright (C) 2011 readyState Software Ltd\n" +
                            "Copyright (C) 2007 The Android Open Source Project",
                    new ApacheSoftwareLicense20()));

            notices.addNotice(new Notice("Android About Page",
                    "https://github.com/medyo/android-about-page",
                    "The MIT License (MIT)\n" +
                            "Copyright (c) 2016 Mehdi Sakout",
                    new MITLicense()));

            notices.addNotice(new Notice("ChipCloud",
                    "https://github.com/fiskurgit/ChipCloud",
                    "The MIT License (MIT)\n" +
                            "\n" +
                            "Copyright (c) 2016 Jonathan Fisher",
                    new MITLicense()));

            notices.addNotice(new Notice("FlexBoxLayout",
                    "https://github.com/google/flexbox-layout",
                    "",
                    new ApacheSoftwareLicense20()));

            notices.addNotice(new Notice("WanaKanaJava",
                    "https://github.com/MasterKale/WanaKanaJava",
                    "The MIT License (MIT)\n" +
                            "\n" +
                            "Copyright (c) 2013 Matthew Miller\n",
                    new MITLicense()));

            notices.addNotice(new Notice("ERDRG",
                    "http://www.edrdg.org/",
                    getResources().getString(R.string.about_activity_erdrg_thanks),
                    new CreativeCommonsAttributionShareAlike30Unported()));

            new LicensesDialog.Builder(AboutActivity.this)
                    .setTitle(getResources().getString(R.string.about_activity_licenses))
                    .setNotices(notices)
                    .setIncludeOwnLicense(true)
                    .build()
                    .show();
        }
    });
    return element;
}
 
开发者ID:luke-c,项目名称:Ikue,代码行数:54,代码来源:AboutActivity.java


注:本文中的de.psdev.licensesdialog.licenses.MITLicense类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。