Example of an Android ListView GreenDroid (GDListActivity)?
Anyone have 开发者_如何学JAVAan example of an Android ListView GreenDroid (GDListActivity)?
Thanks
public class MoodleUcTarefasActivity extends GDListActivity {
private MoodleEventAdapter eventAdapter = null;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
this.initActionBar();
if (eventAdapter == null)
eventAdapter = new MoodleEventAdapter(this);
setListAdapter(eventAdapter);
}
private void initActionBar() {
setTitle("Your action bar title");
}
}
It's simple. Simple extend the GDListActivity to your activity, and link your adapter to the list.
精彩评论