compile('de.psdev.licensesdialog:licensesdialog:1.8.0')
<?xml version="1.0" encoding="utf-8"?> <notices> <notice> <name>Application Crash Reporting for Android (ACRA)</name> <url>http://acra.ch/</url> <copyright>Copyright 2010 Emmanuel Astier & Kevin Gaudin</copyright> <license>Apache Software License 2.0</license> </notice> <notice> <name>Android ViewPagerIndicator</name> <url>http://viewpagerindicator.com/</url> <copyright>Copyright (C) 2011 The Android Open Source Project<br/>Copyright (C) 2012 Jake Wharton</copyright> <license>Apache Software License 2.0</license> </notice> <notice> <name>OrmLite</name> <url>http://ormlite.com/</url> <copyright>Copyright Gray Watson</copyright> <license>ISC License</license> </notice> <notice> <name>PhotoView</name> <url>https://github.com/chrisbanes/PhotoView</url> <copyright>Copyright 2011, 2012 Chris Banes.</copyright> <license>Apache Software License 2.0</license> </notice> </notices>
<copyright/>
new LicensesDialog.Builder(this) .setNotices(R.raw.license) .build() .showAppCompat();
final String name = "LicensesDialog"; final String url = "http://psdev.de"; final String copyright = "Copyright 2013 Philip Schiffer <admin@psdev.de>"; final License license = new ApacheSoftwareLicense20(); final Notice notice = new Notice(name, url, copyright, license); new LicensesDialog.Builder(this) .setNotices(notice) .build() .showAppCompat();
Source: https://habr.com/ru/post/275097/
All Articles