【问题标题】:Checkbox to textview android?复选框到textview android?
【发布时间】:2013-08-02 04:46:10
【问题描述】:

例如,我希望当我单击复选框“a”时,文本视图 1 显示“a”,每个文本视图有 3 个选项。感谢您的帮助。

【问题讨论】:

  • 向我们展示您已经尝试过的内容!

标签: android eclipse checkbox textview


【解决方案1】:
a.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {

   @Override
   public void onCheckedChanged(CompoundButton buttonView,boolean isChecked) {
      if(isChecked) {
          text_view1.setText("a");
      }
   }
};

【讨论】:

    猜你喜欢
    • 2014-11-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-09-23
    • 2013-11-09
    • 2017-05-24
    • 2012-03-15
    • 1970-01-01
    相关资源
    最近更新 更多