@Override
 public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
   Conts.hiddenKeyBoard(getActivity());
   Cursor cursor = (Cursor) parent.getItemAtPosition(position);
   (((RootMenuActivity) getActivity()))
       .moiContactUserFragment(Conts.getStringCursor(cursor, VasContact._ID));
 }
  public void setData(Cursor cursor) {
    findViewById(R.id.home_item_header).setVisibility(View.GONE);

    final boolean isDangKy =
        "0".equals(cursor.getString(cursor.getColumnIndex(DichVuStore.service_status)));
    int poistion = cursor.getPosition();

    /** config backgroud for item */
    findViewById(R.id.home_item_main)
        .setBackgroundResource(
            poistion % 2 == 0 ? R.drawable.tranfer : R.drawable.new_dichvu_item_2_bg);

    Conts.setTextResource(
        findViewById(R.id.home_item_right_control_1_tv),
        isDangKy ? R.string.dangdung : R.string.dangky);
    Conts.setTextResource(findViewById(R.id.home_item_right_control_2_tv), R.string.moi);

    Conts.setTextViewCursor(findViewById(R.id.home_item_tv_name), cursor, DichVuStore.service_name);
    Conts.setTextViewCursor(
        findViewById(R.id.home_item_tv_content), cursor, DichVuStore.service_content);

    // show image of service
    ImageView home_item_img_icon = (ImageView) findViewById(R.id.home_item_img_icon);
    String service_icon = cursor.getString(cursor.getColumnIndex(DichVuStore.service_icon)) + "";

    Conts.showLogoDichvu(home_item_img_icon, service_icon);
    findViewById(R.id.home_item_right_control)
        .setBackgroundResource(
            poistion % 2 == 0 ? R.drawable.home_dv_bg_x_0 : R.drawable.home_dv_bg_x_1);
  }
  public void setData(Cursor cursor) {
    ImageView home_item_img_icon = (ImageView) findViewById(R.id.icon);

    Conts.getView(this, R.id.left).setVisibility(View.GONE);
    home_item_img_icon.setBackgroundResource(R.drawable.new_home_dv_bg_1);
    home_item_img_icon.setImageResource(R.drawable.tranfer);
    Conts.setTextView(findViewById(R.id.name), "");

    if (cursor != null) {
      String service_icon = cursor.getString(cursor.getColumnIndex(DichVuStore.service_icon)) + "";

      Conts.showLogoDichvu(home_item_img_icon, service_icon);
      try {
        Conts.setTextViewCursor(findViewById(R.id.name), cursor, DichVuStore.service_name);
      } catch (Exception exception) {
      }
      int poistion = cursor.getPosition();

      Conts.getView(this, R.id.left).setVisibility(poistion == 0 ? View.VISIBLE : View.GONE);
    }
  }
  public void setData(JSONObject item, int position) {
    ImageView icon = (ImageView) findViewById(R.id.icon);

    Conts.getView(this, R.id.left).setVisibility(View.GONE);
    // icon.setBackgroundResource(R.drawable.new_home_dv_bg_1);
    icon.setImageResource(R.drawable.tranfer);
    Conts.setTextView(findViewById(R.id.name), "");

    String service_icon = Conts.getString(item, DichVuStore.service_icon);
    Conts.showLogoDichvu(icon, service_icon);
    try {
      Conts.setTextView(findViewById(R.id.name), item, DichVuStore.service_name);
    } catch (Exception exception) {

    }
    Conts.getView(this, R.id.left).setVisibility(position == 0 ? View.VISIBLE : View.GONE);
  }