![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Android源码学习
niostar
这个作者很懒,什么都没留下…
展开
-
深入解析setContentView
在Android开发中,通常,为了指定某个Activity的布局,我们都会在其生命周期函数的开始处,指定Activity的UI布局,生命周期如下: 通常,可以在onCreate函数中使用setContentView指定当前Activity的UI,如果我们没有该步骤,那么Activity最终的效果上面第二个图,空空荡荡,什么都没有,只有一个Actionbar.通过setCon原创 2015-04-19 17:36:19 · 515 阅读 · 0 评论 -
Android保存View到本地图片
最近在看Android的系统源码,在看到View的源码的时候,无意间看到了在源码中有这么一个函数: /** * Create a snapshot of the view into a bitmap. We should probably make * some form of this public, but should think about the API.原创 2015-11-03 19:40:56 · 1459 阅读 · 0 评论