Navigation menu item separators

This commit is contained in:
M66B
2019-04-29 11:39:24 +02:00
parent ed5ee4ff04
commit b4092d5c5e
6 changed files with 71 additions and 50 deletions

View File

@@ -8,6 +8,7 @@ public class NavMenuItem {
private int icon;
private int title;
private Integer count = null;
private boolean separated = false;
private Runnable click;
private Runnable longClick;
@@ -30,6 +31,11 @@ public class NavMenuItem {
this.count = count;
}
NavMenuItem setSeparated() {
this.separated = true;
return this;
}
int getIcon() {
return this.icon;
}
@@ -42,6 +48,10 @@ public class NavMenuItem {
return this.count;
}
boolean isSeparated() {
return this.separated;
}
void onClick() {
click.run();
}