December 2015
Beginner
698 pages
15h 16m
English
All the TagsFragment class needs to do is display a list of tags from the appropriate table and when the user clicks one, let MainActivity know via the ActivityComs interface.
Add the ActivityComs interface as a new member variable as highlighted in the following code:
public class TagsFragment extends ListFragment {
private ActivityComs mActivityComs;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
private ActivityComs mActivityComs;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
}
}As we have seen upon just coding TitlesFragment, the next code allows us to:
wis_table_tagsRead now
Unlock full access