上一页 1 ··· 59 60 61 62 63 64 65 66 67 ··· 204 下一页
摘要: 布局: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" 阅读全文
posted @ 2022-07-16 18:12 小白龙白龙马 阅读(60) 评论(0) 推荐(0)
摘要: 首页布局; <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent 阅读全文
posted @ 2022-07-16 17:02 小白龙白龙马 阅读(91) 评论(0) 推荐(0)
摘要: 第一个页面布局: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_par 阅读全文
posted @ 2022-07-16 15:01 小白龙白龙马 阅读(46) 评论(0) 推荐(0)
摘要: 第一个布局: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_paren 阅读全文
posted @ 2022-07-16 13:36 小白龙白龙马 阅读(89) 评论(0) 推荐(0)
摘要: // 初始化下拉模式的列表框 private void initSpinnerForDropdown() { // 声明一个下拉列表的数组适配器 ArrayAdapter<String> starAdapter = new ArrayAdapter<String>(this,R.layout.ite 阅读全文
posted @ 2022-07-16 13:07 小白龙白龙马 阅读(206) 评论(0) 推荐(0)
摘要: Java代码可利用自定义Application的静态成员变量实现全局变量的功能。具体需要完成以下3项工作: (1)写一个继承自Application的类MainApplication。该类要采用单例模式,内部声明自身类的一个静态成员对象,然后提供该静态对象的获取方法getInstance。 (2)在 阅读全文
posted @ 2022-07-11 00:12 小白龙白龙马 阅读(193) 评论(0) 推荐(0)
摘要: Application是Android的一大组件,在App运行过程中有且仅有一个Application对象贯穿整个生命周期。 在AndroidManifest.xml里面,activity节点的上级正是application节点。如果给application节点指定android:name属性,则表 阅读全文
posted @ 2022-07-10 23:45 小白龙白龙马 阅读(157) 评论(0) 推荐(0)
摘要: 第一个布局: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_paren 阅读全文
posted @ 2022-07-10 19:00 小白龙白龙马 阅读(155) 评论(0) 推荐(0)
摘要: 添加权限: <!-- 存储卡读写 --> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.RE 阅读全文
posted @ 2022-07-10 18:31 小白龙白龙马 阅读(289) 评论(0) 推荐(0)
摘要: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" andr 阅读全文
posted @ 2022-07-10 17:59 小白龙白龙马 阅读(190) 评论(0) 推荐(0)
上一页 1 ··· 59 60 61 62 63 64 65 66 67 ··· 204 下一页