随笔分类 -  其他知识--安卓开发

上一页 1 2

Android笔记:intent
摘要:一、显式intent如下:(1)在intent构造函数传入两个activity文件名Intent intent = new Intent(FirstActivity.this, SecondActivity.class);startActivity(intent);(2)记得在AndroidMani 阅读全文

posted @ 2016-05-30 22:46 乐之者v 阅读(183) 评论(0) 推荐(0) 编辑

Android笔记:Button
摘要:示例代码摘自《第一行代码》 ButtonDemo.java的代码: Layout的demo_button.xml: 效果如下所示: 阅读全文

posted @ 2016-05-24 22:52 乐之者v 阅读(146) 评论(0) 推荐(0) 编辑

Android笔记:OptionsMenu
摘要:使用菜单选项OptionsMenu,需要进行以下操作:(1)重写onCreateOptionsMenu方法; 方法的参数含义: getMenuInflater().inflate(R.menu.options_menu,menu): a.inflate的作用是将xml定义的而一个布局找出来; b.第 阅读全文

posted @ 2016-05-24 22:49 乐之者v 阅读(366) 评论(0) 推荐(0) 编辑

上一页 1 2
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示