开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜