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


Java Notices类代码示例

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


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

示例1: prepareLicenses

import de.psdev.licensesdialog.model.Notices; //导入依赖的package包/类
/**
 * Prepare the license information to show to the user
 */
private void prepareLicenses() {
    if (DEBUG) {
        MyLog.i(CLS_NAME, "prepareLicenses");
    }

    AsyncTask.execute(new Runnable() {
        @Override
        public void run() {
            final Notices notices = helper.getLicenses();
            FragmentAbout.this.getParentActivity().runOnUiThread(new Runnable() {
                @Override
                public void run() {

                    new LicensesDialog.Builder(FragmentAbout.this.getParentActivity())
                            .setNotices(notices).setIncludeOwnLicense(true)
                            .setShowFullLicenseText(false)
                            .setCloseText(R.string.close).build().show();
                }
            });
        }
    });
}
 
开发者ID:brandall76,项目名称:Saiy-PS,代码行数:26,代码来源:FragmentAbout.java

示例2: openSourceLicenses

import de.psdev.licensesdialog.model.Notices; //导入依赖的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

示例3: createLicenseDialog

import de.psdev.licensesdialog.model.Notices; //导入依赖的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

示例4: clickOnOpenSourceLicenses

import de.psdev.licensesdialog.model.Notices; //导入依赖的package包/类
public void clickOnOpenSourceLicenses(final View view) throws Exception {
    final Notices notices = new Notices();
    notices.addNotice(new Notice(
            "Android v7 Support Libraries",
            "https://developer.android.com/topic/libraries/support-library/features.html#v7",
            "Copyright (C) 2012 The Android Open Source Project",
            new ApacheSoftwareLicense20()));
    notices.addNotice(new Notice(
            "LicensesDialog",
            "http://psdev.de",
            "Copyright 2013 Philip Schiffer <[email protected]>",
            new ApacheSoftwareLicense20()));
    notices.addNotice(new Notice(
            "OkHttp",
            "http://square.github.io/okhttp/",
            "Copyright 2016 Square, Inc.",
            new ApacheSoftwareLicense20()));

    new LicensesDialog.Builder(this)
            .setNotices(notices)
            .build()
            .show();
}
 
开发者ID:PhotoBackup,项目名称:client-android,代码行数:24,代码来源:PBAboutActivity.java

示例5: setupLicenseDialog

import de.psdev.licensesdialog.model.Notices; //导入依赖的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

示例6: LicensesDialog

import de.psdev.licensesdialog.model.Notices; //导入依赖的package包/类
public LicensesDialog(final Context context, final int rawNoticesResourceId, final boolean showFullLicenseText, boolean includeOwnLicense) {
    mContext = context;
    // Load defaults
    final String style = context.getString(R.string.notices_default_style);
    mTitleText = context.getString(R.string.notices_title);
    try {
        final Resources resources = context.getResources();
        if ("raw".equals(resources.getResourceTypeName(rawNoticesResourceId))) {
            final Notices notices = NoticesXmlParser.parse(resources.openRawResource(rawNoticesResourceId));
            if (includeOwnLicense) {
                final List<Notice> noticeList = notices.getNotices();
                noticeList.add(LICENSES_DIALOG_NOTICE);
            }
            mLicensesText = NoticesHtmlBuilder.create(mContext).setShowFullLicenseText(showFullLicenseText).setNotices(notices).setStyle(style).build();
        } else {
            throw new IllegalStateException("not a raw resource");
        }
    } catch (Exception e) {
        throw new IllegalStateException(e);
    }
    mCloseText = context.getString(R.string.notices_close);
}
 
开发者ID:guiguito,项目名称:AIRShare,代码行数:23,代码来源:LicensesDialog.java

示例7: parse

import de.psdev.licensesdialog.model.Notices; //导入依赖的package包/类
private static Notices parse(final XmlPullParser parser) throws IOException, XmlPullParserException {
    final Notices notices = new Notices();
    parser.require(XmlPullParser.START_TAG, null, "notices");
    while (parser.next() != XmlPullParser.END_TAG) {
        if (parser.getEventType() != XmlPullParser.START_TAG) {
            continue;
        }
        final String name = parser.getName();
        // Starts by looking for the entry tag
        if ("notice".equals(name)) {
            notices.addNotice(readNotice(parser));
        } else {
            skip(parser);
        }
    }
    return notices;
}
 
开发者ID:guiguito,项目名称:AIRShare,代码行数:18,代码来源:NoticesXmlParser.java

示例8: onCreate

import de.psdev.licensesdialog.model.Notices; //导入依赖的package包/类
@Override
public void onCreate(final Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    final Resources resources = getResources();

    if (savedInstanceState != null) {
        mTitleText = savedInstanceState.getString(STATE_TITLE_TEXT);
        mLicensesText = savedInstanceState.getString(STATE_LICENSES_TEXT);
        mCloseButtonText = savedInstanceState.getString(STATE_CLOSE_TEXT);
    } else {
        mTitleText = resources.getString(R.string.notices_title);
        mCloseButtonText = resources.getString(R.string.notices_close);
        try {
            final Notices notices = NoticesXmlParser.parse(resources.openRawResource(getNoticesXmlResourceId()));
            if(getArguments() != null && getArguments().getBoolean(ARGUMENT_INCLUDE_OWN_LICENSE, false)) {
                notices.getNotices().add(LicensesDialog.LICENSES_DIALOG_NOTICE);
            }
            mLicensesText = NoticesHtmlBuilder.create(getActivity()).setNotices(notices).build();
        } catch (final Exception e) {
            throw new IllegalStateException(e);
        }
    }
}
 
开发者ID:guiguito,项目名称:AIRShare,代码行数:24,代码来源:LicensesDialogFragment.java

示例9: newInstance

import de.psdev.licensesdialog.model.Notices; //导入依赖的package包/类
private static LicensesDialogFragment newInstance(final Notices notices,
                                                  final boolean showFullLicenseText,
                                                  final boolean includeOwnLicense,
                                                  final String noticeStyle,
                                                  final int themeResourceId,
                                                  final int dividerColor,
                                                  final boolean useAppCompat) {
    final LicensesDialogFragment licensesDialogFragment = new LicensesDialogFragment();
    final Bundle args = new Bundle();
    args.putParcelable(ARGUMENT_NOTICES, notices);
    args.putBoolean(ARGUMENT_FULL_LICENSE_TEXT, showFullLicenseText);
    args.putBoolean(ARGUMENT_INCLUDE_OWN_LICENSE, includeOwnLicense);
    args.putString(ARGUMENT_NOTICE_STYLE, noticeStyle);
    args.putInt(ARGUMENT_THEME_XML_ID, themeResourceId);
    args.putInt(ARGUMENT_DIVIDER_COLOR, dividerColor);
    args.putBoolean(ARGUMENT_USE_APPCOMPAT, useAppCompat);
    licensesDialogFragment.setArguments(args);
    return licensesDialogFragment;
}
 
开发者ID:PSDev,项目名称:LicensesDialog,代码行数:20,代码来源:LicensesDialogFragment.java

示例10: onCreate

import de.psdev.licensesdialog.model.Notices; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);
    toolbar = (Toolbar) findViewById(R.id.toolbar);
    setSupportActionBar(toolbar);

    DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
    ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(
            this, drawer, toolbar, R.string.navigation_drawer_open, R.string.navigation_drawer_close);
    drawer.setDrawerListener(toggle);
    toggle.syncState();

    NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view);
    navigationView.setNavigationItemSelectedListener(this);
    ft=getSupportFragmentManager().beginTransaction();
    if(f_def==null)f_def=Default.newInstance(100);
    ft.add(R.id.container,f_def);
    ft.commit();
    Notices ns=new Notices();
    ns.addNotice(new Notice("MaterialTabHost","https://github.com/yanzm/MaterialTabHost","Copyright 2014 Yuki Anzai",new ApacheSoftwareLicense20()));
    ns.addNotice(new Notice("LicensesDialog ","https://github.com/PSDev/LicensesDialog","Copyright 2013-2017 Philip Schiffer",new ApacheSoftwareLicense20()));
    ns.addNotice(new Notice("MaterialEditText","https://github.com/rengwuxian/MaterialEditText","Copyright 2014 rengwuxian",new ApacheSoftwareLicense20()));
    ld=new LicensesDialog.Builder(this)
            .setTitle(R.string.notice)
            .setCloseText(R.string.close)
            .setNotices(ns)
            .build();
}
 
开发者ID:sean22922,项目名称:CardSimulator,代码行数:31,代码来源:MainActivity.java

示例11: showLicensesDialog

import de.psdev.licensesdialog.model.Notices; //导入依赖的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

示例12: onCreate

import de.psdev.licensesdialog.model.Notices; //导入依赖的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

示例13: showLicenses

import de.psdev.licensesdialog.model.Notices; //导入依赖的package包/类
private void showLicenses() {
    final Notices notices = new Notices();
    notices.addNotice(new Notice("Tariki.dz", "http://tariki.dz/", "Chaouki BOUKHAZANI  [email protected]", new ApacheSoftwareLicense20()));
    notices.addNotice(new Notice("osmdroid", "https://github.com/osmdroid/osmdroid", null, new ApacheSoftwareLicense20()));
    notices.addNotice(new Notice("OSMBonusPack", "https://github.com/MKergall/osmbonuspack", null, new GnuLesserGeneralPublicLicense3()));
    notices.addNotice(new Notice("ButterKnife", "http://jakewharton.github.io/butterknife/", "Jake Wharton", new GnuLesserGeneralPublicLicense21()));

    new LicensesDialog.Builder(this)
            .setNotices(notices)
            .setIncludeOwnLicense(true)
            .build()
            .show();
}
 
开发者ID:BackPackerDz,项目名称:Android-Tariki.dz,代码行数:14,代码来源:BaseActivity.java

示例14: createLicenseDialog

import de.psdev.licensesdialog.model.Notices; //导入依赖的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

示例15: showLicences

import de.psdev.licensesdialog.model.Notices; //导入依赖的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


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