android.widget.CheckBox.setSaveEnabled()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(4.5k)|赞(0)|评价(0)|浏览(121)

本文整理了Java中android.widget.CheckBox.setSaveEnabled()方法的一些代码示例,展示了CheckBox.setSaveEnabled()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。CheckBox.setSaveEnabled()方法的具体详情如下:
包路径:android.widget.CheckBox
类名称:CheckBox
方法名:setSaveEnabled

CheckBox.setSaveEnabled介绍

暂无

代码示例

代码示例来源:origin: KosyanMedia/Aviasales-Android-SDK

@Override
protected void setUpView(Context context) {
  LayoutInflater.from(context).inflate(R.layout.select_all_view,
      this, true);
  layout = (RelativeLayout) findViewById(R.id.rlSelectAllItemView);
  textView = (TextView) findViewById(R.id.tvSelectAllItem);
  checkBox = (CheckBox) findViewById(R.id.cbSelectAllItem);
  checkBox.setSaveEnabled(false);
}

代码示例来源:origin: KosyanMedia/Aviasales-Android-SDK

private void setupViews(boolean airportOvernight, OnOvernightStateChange listener) {
  LayoutInflater.from(getContext())
      .inflate(R.layout.overnight_filter_view, this, true);
  isAirportOvernight = airportOvernight;
  airportOvernightLayout = (RelativeLayout) findViewById(R.id.llay_overnight_filter_view_airport);
  airportOvernightCheckMark = (CheckBox) findViewById(R.id.cbox_overnight_filter_view_airport);
  airportOvernightCheckMark.setChecked(isAirportOvernight);
  airportOvernightCheckMark.setSaveEnabled(false);
  airportOvernightLayout.setOnClickListener(new OnClickListener() {
    @Override
    public void onClick(View view) {
      if (airportOvernightLayout.isEnabled()) {
        isAirportOvernight = !isAirportOvernight;
        airportOvernightCheckMark.setChecked(isAirportOvernight);
        onOvernightStateChange.onChange(isAirportOvernight);
      }
    }
  });
  onOvernightStateChange = listener;
}

代码示例来源:origin: KosyanMedia/Aviasales-Android-SDK

private void setUpViews(boolean airportOvernight, OnOvernightStateChange listener) {
  LayoutInflater.from(getContext())
      .inflate(R.layout.overnight_filter_view, this, true);
  isAirportOvernight = airportOvernight;
  airportOvernightLayout = (RelativeLayout) findViewById(R.id.llay_overnight_filter_view_airport);
  airportOvernightCheckMark = (CheckBox) findViewById(R.id.cbox_overnight_filter_view_airport);
  airportOvernightCheckMark.setChecked(isAirportOvernight);
  airportOvernightCheckMark.setSaveEnabled(false);
  airportOvernightLayout.setOnClickListener(new OnClickListener() {
    @Override
    public void onClick(View view) {
      if (airportOvernightLayout.isEnabled()) {
        isAirportOvernight = !isAirportOvernight;
        airportOvernightCheckMark.setChecked(isAirportOvernight);
        onOvernightStateChange.onChange(isAirportOvernight);
      }
    }
  });
  onOvernightStateChange = listener;
}

代码示例来源:origin: KosyanMedia/Aviasales-Android-SDK

protected void setUpView(Context context) {
  LayoutInflater.from(context).inflate(R.layout.base_expanded_list_item,
      this, true);
  layout = (RelativeLayout) findViewById(R.id.rlay_base_filter_list_item);
  textView = (TextView) findViewById(R.id.txtv_base_filter_list_item);
  checkBox = (CheckBox) findViewById(R.id.cbox_base_filter_list_item);
  airlineViewStub = (ViewStub) findViewById(R.id.stub_import_airline);
  checkBox.setSaveEnabled(false);
}

代码示例来源:origin: KosyanMedia/Aviasales-Android-SDK

protected void setUpView(Context context) {
  LayoutInflater.from(context).inflate(R.layout.base_filter_list_item,
      this, true);
  layout = (RelativeLayout) findViewById(R.id.rlay_base_filter_list_item);
  textView = (TextView) findViewById(R.id.txtv_base_filter_list_item);
  checkBox = (CheckBox) findViewById(R.id.cbox_base_filter_list_item);
  airlineViewStub = (ViewStub) findViewById(R.id.stub_import_airline);
  checkBox.setSaveEnabled(false);
}

代码示例来源:origin: KosyanMedia/Aviasales-Android-SDK

@Override
protected void setUpView(Context context) {
  LayoutInflater.from(context).inflate(R.layout.airport_filter_list_item,
      this, true);
  layout = (RelativeLayout) findViewById(R.id.rlay_airport_filter_list_item);
  textView = (TextView) findViewById(R.id.tvAirportFilterListItemName);
  checkBox = (CheckBox) findViewById(R.id.cbox_airport_filter_list_item);
  ratingBar = (RatingBar) findViewById(R.id.rbar_airport_filter_list_item);
  iata = (TextView) findViewById(R.id.tvAirportFilterListItemIata);
  airportName = (TextView) findViewById(R.id.tvAirportFilterListItemCity);
  checkBox.setSaveEnabled(false);
}

代码示例来源:origin: KosyanMedia/Aviasales-Android-SDK

@Override
protected void setUpView(Context context) {
  LayoutInflater.from(context).inflate(R.layout.airport_filter_list_item,
      this, true);
  layout = (RelativeLayout) findViewById(R.id.rlay_airport_filter_list_item);
  textView = (TextView) findViewById(R.id.tvAirportFilterListItemName);
  checkBox = (CheckBox) findViewById(R.id.cbox_airport_filter_list_item);
  ratingBar = (RatingBar) findViewById(R.id.rbar_airport_filter_list_item);
  iata = (TextView) findViewById(R.id.tvAirportFilterListItemIata);
  airportName = (TextView) findViewById(R.id.tvAirportFilterListItemCity);
  checkBox.setSaveEnabled(false);
}

相关文章