Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,25 @@
* Created by liucundong on 2015/11/17.
*/
public class ItemModel {
public long id;
public String title;

private long id;
private String title;

public long getId() {
return id;
}

public void setId(long id) {
this.id = id;
}

public String getTitle() {
return title;
}

public void setTitle(String title) {
this.title = title;
}


}
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,25 @@ protected void onCreate(Bundle savedInstanceState) {
}

private static class ListItem {
public String title;
public Class<?> activity;
private String title;
private Class<?> activity;
public String getTitle() {
return title;
}

public void setTitle(String title) {
this.title = title;
}

public Class<?> getActivity() {
return activity;
}

public void setActivity(Class<?> activity) {
this.activity = activity;
}


}

private class DataAdapter extends RecyclerView.Adapter {
Expand Down