Java Code Examples for com.gianlu.commonutils.preferences.MaterialAboutPreferenceItem

The following examples show how to use com.gianlu.commonutils.preferences.MaterialAboutPreferenceItem. These examples are extracted from open source projects. 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 Project: Aria2App   Source File: PreferenceActivity.java    License: GNU General Public License v3.0 5 votes vote down vote up
@NonNull
@Override
protected List<MaterialAboutPreferenceItem> getPreferencesItems() {
    return Arrays.asList(new MaterialAboutPreferenceItem(R.string.general, R.drawable.baseline_settings_24, GeneralFragment.class),
            new MaterialAboutPreferenceItem(R.string.profiles, R.drawable.baseline_supervisor_account_24, ProfilesFragment.class),
            new MaterialAboutPreferenceItem(R.string.directDownload, R.drawable.baseline_cloud_download_24, DirectDownloadFragment.class),
            new MaterialAboutPreferenceItem(R.string.notifications, R.drawable.baseline_sms_24, NotificationsFragment.class));
}
 
Example 2
Source Project: DNSHero   Source File: PreferenceActivity.java    License: GNU General Public License v3.0 4 votes vote down vote up
@NonNull
@Override
protected List<MaterialAboutPreferenceItem> getPreferencesItems() {
    return Arrays.asList(new MaterialAboutPreferenceItem(R.string.general, R.drawable.baseline_settings_24, GeneralFragment.class),
            new MaterialAboutPreferenceItem(R.string.favorites, R.drawable.baseline_favorite_24, FavoritesFragment.class));
}
 
Example 3
@NonNull
@Override
protected List<MaterialAboutPreferenceItem> getPreferencesItems() {
    return Collections.singletonList(new MaterialAboutPreferenceItem(R.string.general, R.drawable.baseline_settings_24, GeneralFragment.class));
}
 
Example 4
@NonNull
@Override
protected List<MaterialAboutPreferenceItem> getPreferencesItems() {
    return Arrays.asList(new MaterialAboutPreferenceItem(R.string.general, R.drawable.baseline_settings_24, GeneralFragment.class),
            new MaterialAboutPreferenceItem(R.string.googlePlayGames, R.drawable.baseline_videogame_asset_24, GooglePlayGamesFragment.class));
}