Android Open Source - Lists-android List Item Adapter






From Project

Back to project page Lists-android.

License

The source code is released under:

Apache License

If you think the Android project Lists-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.dropbox.examples.lists;
/*from  w  w  w . j a  v  a  2 s  .co  m*/
import android.content.Context;
import com.dropbox.sync.android.DbxRecord;

import java.util.List;

// An adapter for items within a list. Each item is backed by a record in the list's datastore.
public class ListItemAdapter extends DeletableItemAdapter<DbxRecord> {
    public ListItemAdapter(List<DbxRecord> items, Context ctx, Boolean editable) {
        super(items, ctx, editable);
    }

    @Override
    protected String getText(int position) {
       return this.getItem(position).getString("text");
    }
}




Java Source Code List

com.dropbox.examples.lists.DeletableItemAdapter.java
com.dropbox.examples.lists.ListActivity.java
com.dropbox.examples.lists.ListAdapter.java
com.dropbox.examples.lists.ListItemAdapter.java
com.dropbox.examples.lists.ListsApplication.java
com.dropbox.examples.lists.MainActivity.java
com.dropbox.examples.lists.OnItemDeletedListener.java
com.dropbox.examples.lists.SharingDialogFragment.java