摘要:
图1图1效果:该效果是当按返回按钮时弹出一个提示,来确保无误操作,采用常见的对话框样式。 代码: 1 // 创建对话框方法dialog() 2 3 protected void dialog() { 4 AlertDialog.Builder builder = new Builder... 阅读全文
摘要:
Toast是Android中用来显示显示信息的一种机制,和Dialog不一样的是,Toast是没有焦点的,而且Toast显示的时间有限,过一定的时间就会自动消失。1.默认效果:代码: Toast.makeText(getApplicationContext(), "默认Toast样式",Toast.... 阅读全文
摘要:
android.permission.ACCESS_CHECKIN_PROPERTIES Allows read/write access to the "properties" table in the checkin database, to change values that get upl... 阅读全文
摘要:
学习目的:1、掌握在Android中如何建立RadioGroup和RadioButton2、掌握RadioGroup的常用属性3、理解RadioButton和CheckBox的区别4、掌握RadioGroup选中状态变换的事件(监听器)RadioButton和CheckBox的区别:1、单个Radi... 阅读全文