![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Android开发
Neo_boy
adfadfasdfsadfasdfasdfasdfasdfas
展开
-
android view getWidth 和 getHeight 的值为0
The getWidth and getHeight methods will return 0 if the view has not yet been inflated. For example, if you are trying to access it in the onCreate of the Activity, you'll get zero. 在UI 组件还未显示在界面之前调用原创 2016-09-10 22:15:43 · 490 阅读 · 0 评论 -
Android 隐藏标题栏
android开发,隐藏标题栏 只写 requestWindowFeature(Window.FEATURE_NO_TITLE); 不能隐藏。 需要写成: getWindow().setFlags(LayoutParams.FLAG_FULLSCREEN, LayoutParams.FLAG_FULLSCREEN); requestWindowFeature(Win原创 2016-09-08 13:30:20 · 184 阅读 · 0 评论 -
Android LayoutInflater详解
在实际开发中LayoutInflater这个类还是非常有用的,它的作用类似于findViewById()。不同点是LayoutInflater是用来找res/layout/下的xml布局文件,并且实例化;而findViewById()是找xml布局文件下的具体widget控件(如Button、TextView等)。 具体作用: 1、对于一个没有被载入或者想要动态载入的界面,都需要使用L转载 2016-10-25 16:02:45 · 249 阅读 · 0 评论