/*
   * (non-Javadoc)
   *
   * @see android.widget.ArrayAdapter#getView(int, android.view.View,
   * android.view.ViewGroup)
   */
  @Override
  public View getView(int position, View convertView, ViewGroup parent) {
    PartyJoinInfo tweet = memList.get(position);

    options =
        new DisplayImageOptions.Builder()
            .showStubImage(R.drawable.stub_image)
            .showImageForEmptyUri(R.drawable.image_for_empty_url)
            .cacheInMemory()
            .cacheOnDisc()
            .displayer(new RoundedBitmapDisplayer(20))
            .build();
    if (convertView == null) {
      convertView = mInflater.inflate(mResource, null);
    }
    TextView fname = (TextView) convertView.findViewById(R.id.fname);
    fname.setText(tweet.getmname());

    ImageView fpic = (ImageView) convertView.findViewById(R.id.fpic);
    imageloader.displayImage(tweet.getmpic(), fpic, options);

    btn_invite = (Button) convertView.findViewById(R.id.btn_invite);
    btn_invite.setOnClickListener(on_FrpicClick);
    btn_invite.setTag(Integer.valueOf(position));
    btn_invite.setText("승인");

    btn_none = (Button) convertView.findViewById(R.id.btn_none);
    btn_none.setOnClickListener(none_FrpicClick);
    btn_none.setTag(Integer.valueOf(position));
    btn_none.setText("거절");

    return convertView;
  }
        @Override
        public void onClick(View v) {
          mynoteid = MainActivity.mynoteid;
          int position = (Integer) v.getTag();
          PartyJoinInfo fri_info = memList.get(position);
          String invparty_id = fri_info.getmid();

          // go in party
          try {

            HttpClient client = new DefaultHttpClient();
            String postURL = "http://funsumer.net/json/";
            HttpPost post = new HttpPost(postURL);

            List params1 = new ArrayList();
            params1.add(new BasicNameValuePair("oopt", "24"));
            params1.add(new BasicNameValuePair("mynoteid", mynoteid));
            params1.add(new BasicNameValuePair("pid", pid));
            params1.add(new BasicNameValuePair("position", "3"));
            params1.add(new BasicNameValuePair("mid", invparty_id));

            UrlEncodedFormEntity ent = new UrlEncodedFormEntity(params1, HTTP.UTF_8);
            post.setEntity(ent);

            HttpResponse responsePOST = client.execute(post);

            HttpEntity resEntity = responsePOST.getEntity();

            //				btn_none.setText("�꾨즺");

          } catch (Exception e) {

            // TODO: handle exception
          }

          PartyJoin.mInviteInfo.remove(position);
          PartyJoin.mInviteAdapter.notifyDataSetChanged();
        }