mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-23 00:13:16 +00:00
修正
This commit is contained in:
parent
91bbca54ff
commit
68f2ba3b59
|
@ -4,18 +4,24 @@ import android.graphics.drawable.Drawable;
|
|||
|
||||
public class ListItem {
|
||||
|
||||
// Properties
|
||||
|
||||
String title;
|
||||
String description;
|
||||
Drawable icon;
|
||||
ListItemType itemType;
|
||||
String itemId;
|
||||
|
||||
public ListItem(String title, String description, Drawable icon, String itemId) {
|
||||
// Constructor
|
||||
|
||||
public ListItem(String title, String description, ListItemType itemType, String itemId) {
|
||||
this.title = title;
|
||||
this.description = description;
|
||||
this.icon = icon;
|
||||
this.itemType = itemType;
|
||||
this.itemId = itemId;
|
||||
}
|
||||
|
||||
// Getter
|
||||
|
||||
public String getTitle() {
|
||||
return title;
|
||||
}
|
||||
|
@ -24,8 +30,8 @@ public class ListItem {
|
|||
return description;
|
||||
}
|
||||
|
||||
public Drawable getIcon() {
|
||||
return icon;
|
||||
public ListItemType getItemType() {
|
||||
return itemType;
|
||||
}
|
||||
|
||||
public String getItemId() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user