摘要: 添加一个数组 @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); button = (Button) findViewB... 阅读全文
posted @ 2019-11-04 19:23 thomas_blog 阅读(392) 评论(0) 推荐(0) 编辑
摘要: private Button button; private final CharSequence items[] = { "北京", "上海", "广州" }; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);... 阅读全文
posted @ 2019-11-04 19:09 thomas_blog 阅读(2208) 评论(0) 推荐(0) 编辑
摘要: private Button button; private final CharSequence[] items = { "北京", "上海", "广州" }; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);... 阅读全文
posted @ 2019-11-04 18:47 thomas_blog 阅读(3438) 评论(0) 推荐(0) 编辑
摘要: private Button button; private final CharSequence[] items = { "北京", "上海", "广州" }; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);... 阅读全文
posted @ 2019-11-04 18:40 thomas_blog 阅读(1070) 评论(0) 推荐(0) 编辑
摘要: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); button = (B 阅读全文
posted @ 2019-11-04 17:05 thomas_blog 阅读(827) 评论(0) 推荐(0) 编辑
摘要: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); button = (Button) this.findViewBy... 阅读全文
posted @ 2019-11-04 16:39 thomas_blog 阅读(205) 评论(0) 推荐(0) 编辑
摘要: public class MainActivity extends Activity { private Button button; private ActionMode actionMode; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(save... 阅读全文
posted @ 2019-11-04 15:49 thomas_blog 阅读(885) 评论(0) 推荐(0) 编辑
摘要: public class MainActivity extends Activity { private ListView listView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setCon... 阅读全文
posted @ 2019-11-04 13:58 thomas_blog 阅读(546) 评论(0) 推荐(0) 编辑