android
文章平均质量分 80
EndeavourLin
这个作者很懒,什么都没留下…
展开
-
@SuppressLint("NewApi")和@TargetApi()的区别
转自:http://blog.csdn.net/wbshuang09/article/details/44920549在Android代码中,我们有时会使用比我们在AndroidManifest中设置的android:minSdkVersion版本更高的方法,此时编译器会提示警告,解决方法是在方法上加上@SuppressLint("NewApi")或者@TargetApi()。那他们之转载 2016-09-11 09:50:57 · 334 阅读 · 0 评论 -
debug
1.进入debug模式(基础知识列表)1、设置断点 2、启动servers端的debug模式 3、运行程序,在后台遇到断点时,进入debug调试状态 ============================= 作用域 功能 快捷键 全局 单步返回 F7 全局 单步跳过 F6 全局 单步跳入 F5 全局 单步跳入选择 Ctrl+F5 全局 调试上次启动 F11转载 2016-09-11 17:22:05 · 318 阅读 · 0 评论 -
onSaveInstanceState和onRestoreInstanceState触发的时机
先看Application Fundamentals上的一段话: Android calls onSaveInstanceState() before the activity becomes vulnerable to being destroyed by the system, but does not bother calling it when the instance转载 2016-09-12 14:00:21 · 220 阅读 · 0 评论 -
Android:五大布局控件使用
一、LinearLayout(线性布局)提供了控件水平垂直排列的模型,同时可以通过设置子控件的weight布局参数控制各个控件在布局中的相对大小。水平(vertical)垂直(horizontal)fill-parent:占满整个屏幕wrap-content:刚好适合控件内容的大小对齐方式gravity取值:top:不改变大小,位置置于容器的转载 2016-08-12 13:59:43 · 524 阅读 · 0 评论 -
相机硬件功能(Camera hardware features)
android.hardware.cameraThe app uses the device's back-facing camera. Devices with only a front-facing camera do not list this feature, so use the android.hardware.camera.any feature instead if your原创 2016-08-12 14:51:04 · 1656 阅读 · 0 评论 -
Android隐藏标题栏问题
首先查看你自己的MyActivity继承的是哪个基类1.如果继承Activity有两种方法:(1)在onCreate方法里面增加requestWindowFeature(Window.FEATURE_NO_TITLE);但是注意需要在setContentView(。。。)之前。 (2)在AndroidManifest.xml的activity标签里面增加android:th原创 2016-12-06 16:55:42 · 278 阅读 · 0 评论