public void setData(JSONObject object, int poistion) {
    DichVuStore dichVuStore = new DichVuStore(getContext());
    findViewById(R.id.home_item_header).setVisibility(View.GONE);

    final boolean isDangKy =
        dichVuStore.isRegister(Conts.getString(object, DichVuStore.service_code));
    // "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);
    // findViewById(R.id.home_item_img_icon).setBackgroundResource(poistion
    // % 2 == 0 ? R.drawable.new_dichvu_icon_bg_0 :
    // R.drawable.new_dichvu_icon_bg_1);

    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.setTextView(findViewById(R.id.home_item_tv_name), object, DichVuStore.service_name);
    Conts.setTextView(findViewById(R.id.home_item_tv_content), object, DichVuStore.service_content);

    // show image of service
    ImageView home_item_img_icon = (ImageView) findViewById(R.id.home_item_img_icon);
    String service_icon = Conts.getString(object, 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(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);
  }