Android 命名规范 (提高代码可以读性)
刚接触android的时候,命名都是按照拼音来,所以有的时候想看懂命名的那个控件什么是什么用的,就要读一遍甚至好几遍才知道,这样的话,在代码的审查和修改过程中就会浪费不少不必要的时间。如果就是我一个人开发,一个
2021-12-07 14:03
200 
android:versionCode和android:versionName 用途
Android的版本可以在androidmainfest.xml中定义,主要有android:versionCode和android:versionNameandroid:versionCode:主要是用于版本升级所
2021-12-07 14:03
191 
Android版本号versionCode,versionName
AndroidManifest.xml是每个android程序中必须的文件。它位于整个项目的根目录,描述了package中暴露的组件(activities, services等),他们各自的实现类,各种能被处理的数据
2021-12-07 14:03
156 
Unable to start activity ComponentInfo{com.example
本来就是把fragment写死在activity的xml模板里面,结果报了这个错误, Unable to start activity ComponentInfo{com.example.administrator.
2021-12-07 14:02
131 
关于 Activity 中 must implement OnFragmentInteraction
在使用Android Studio 使用默认创建Fragment时,在Activity中 must implement OnFragmentInteractionListener 错误如下:Caused by: ja
2021-12-07 14:02
134 
在 fragment 里面调用 findViewById
publicclassCompanyListFragmentextendsFragment{   privateActivityactivity;  privateListViewcompanyListView;
2021-12-07 14:02
131 
关于Android Studio gradle build running很久的问题
在defaultConfig里加上multiDexEnabled true然后就可以了
2021-12-07 14:02
159 
Android控件系列之CheckBox
学习目的:1、掌握在Android中如何建立CheckBox2、掌握CheckBox的常用属性3、掌握CheckBox选中状态变换的事件(监听器)CheckBox简介:CheckBox和Button一样,也是一种古老
2021-12-07 14:02
145 
返回顶部 留言