Search in sources :

Example 11 with FeedItem

use of com.androidquery.simplefeed.data.FeedItem in project simplefacebook by androidquery.

the class FeedFragment method updated.

public void updated(String str) {
    if (str != null) {
        if (FeedMode.WALL.equals(AppUtility.getDefaultMode())) {
            if (items.getCount() > 0) {
                FeedItem old = (FeedItem) items.getItem(0);
                FeedItem item = new FeedItem();
                item.setMessage(str);
                item.setTime(System.currentTimeMillis());
                item.setFrom(old.getFrom());
                items.add(0, item);
            } else {
                refresh();
            }
        } else {
            refresh();
        }
    }
}
Also used : FeedItem(com.androidquery.simplefeed.data.FeedItem)

Example 12 with FeedItem

use of com.androidquery.simplefeed.data.FeedItem in project simplefacebook by androidquery.

the class FeedFragment method itemClicked.

public void itemClicked(AdapterView<?> parent, View view, int pos, long id) {
    FeedItem item = getItem(view);
    if (item == null)
        return;
    actionItem = item;
    showContentDetail(item, false);
}
Also used : FeedItem(com.androidquery.simplefeed.data.FeedItem)

Aggregations

FeedItem (com.androidquery.simplefeed.data.FeedItem)12 Intent (android.content.Intent)2 Uri (android.net.Uri)1 View (android.view.View)1 ViewGroup (android.view.ViewGroup)1 PQuery (com.androidquery.simplefeed.PQuery)1 Entity (com.androidquery.simplefeed.data.Entity)1 PagedAdapter (greendroid.widget.PagedAdapter)1 PagedView (greendroid.widget.PagedView)1 OnPagedViewChangeListener (greendroid.widget.PagedView.OnPagedViewChangeListener)1 JSONObject (org.json.JSONObject)1