implement custom preference category element
This commit is contained in:
parent
d8a0ba23b6
commit
abcb807518
12 changed files with 74 additions and 14 deletions
|
|
@ -130,6 +130,14 @@ public final class PreferenceUtil {
|
|||
}
|
||||
}
|
||||
|
||||
public void setPrimaryColor(int color) {
|
||||
mPreferences.edit().putInt(PRIMARY_COLOR, color).apply();
|
||||
}
|
||||
|
||||
public void setAccentColor(int color) {
|
||||
mPreferences.edit().putInt(ACCENT_COLOR, color).apply();
|
||||
}
|
||||
|
||||
public final int getPageSize() {
|
||||
return Integer.parseInt(mPreferences.getString(PAGE_SIZE, "100"));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue