开发者

Example of an Android ListView GreenDroid (GDListActivity)?

开发者 https://www.devze.com 2023-04-02 15:30 出处:网络
Anyone have 开发者_如何学JAVAan example of an Android ListView GreenDroid (GDListActivity)? Thankspublic class MoodleUcTarefasActivity extends 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

精彩评论

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