![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
版本相关
文章平均质量分 78
czcdms
这个作者很懒,什么都没留下…
展开
-
@TargetApi and @SuppressLint
@TargetApi and @SuppressLint have the same core effect: they suppress the Lint error. The difference is that with @TargetApi, you declare, via the parameter, what API level you have addressed i转载 2015-05-08 17:15:44 · 401 阅读 · 0 评论 -
android各版本号的定义和比较方法
f 这是sdk版本判断的代码: if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) { ActionBar ab = getActivity().getActionBar(); ab.setTitle("请选择"); } else { getActivity().setTitle("请选择"); }原创 2015-05-08 16:48:59 · 716 阅读 · 0 评论