Example usage for org.springframework.social.facebook.api Post getFrom

List of usage examples for org.springframework.social.facebook.api Post getFrom

Introduction

In this page you can find the example usage for org.springframework.social.facebook.api Post getFrom.

Prototype

public Reference getFrom() 

Source Link

Usage

From source file:org.kepennar.android.client.social.facebook.FacebookFeedListAdapter.java

public View getView(int position, View convertView, ViewGroup parent) {
    Post entry = getItem(position);

    View view = convertView;//  w w w .j a  v  a  2s  .  co m

    if (view == null) {
        view = _layoutInflater.inflate(R.layout.facebook_feed_list_item, parent, false);
    }

    TextView t = (TextView) view.findViewById(R.id.from_name);
    t.setText(entry.getFrom().getName());

    t = (TextView) view.findViewById(R.id.updated_time);
    t.setText(entry.getUpdatedTime().toString());

    t = (TextView) view.findViewById(R.id.message);
    t.setText(entry.getMessage());

    return view;
}