Ejemplo n.º 1
0
 public void onItemClick(AdapterView<?> adv, View v, int position, long ID) {
   if (ProfileItemView.class.isInstance(v)) {
     ProfileItemView pv = (ProfileItemView) v;
     FacebookUser.SimpleFBUser user = pv.getUser();
     Intent intent = new Intent(mContext, FacebookAccountActivity.class);
     intent.putExtra("uid", user.uid);
     intent.putExtra("username", user.name);
     intent.putExtra("imageurl", user.pic_square);
     ((FacebookBaseActivity) (mContext))
         .startActivityForResult(intent, FacebookBaseActivity.FACEBOOK_USER_DETAIL);
   }
 }
Ejemplo n.º 2
0
    public View getView(int position, View convertView, ViewGroup arg2) {
      if (position < 0 || position >= getCount()) {
        return null;
      }

      ProfileItemView v = null;

      FacebookUser.SimpleFBUser di = (FacebookUser.SimpleFBUser) getItem(position);
      if (di != null) {
        if (convertView == null /*|| convertView instanceof SeparatorView*/) {
          v = new ProfileItemView(mContext, di);
        } else {
          v = (ProfileItemView) convertView;
          v.setItem(di);
        }
      }
      // v.chooseFriendListener();
      return v;
    }