Android庖丁解牛之WindowBackground
What's the difference between windowBackground and background for activities style?
android:background is the background color (drawable to be precise) of a view component where as android:windowBackground is the background color of the window (activity or dialog) in which your view resides.
By default view's are transparent i.e no background color so visually it looks like they are taking the color from the underlying window.
Notice how the article you linked to mentions setting the windowBackground to null and not the background for fullscreen views.This is a common technique to avoid overdraws.
But the same principle can be applied to views if you have one view completely hide the other view.
自定义Theme中将android:windowBackground置为null,能小幅提升界面的绘制效率
更多相关文章
- [Android UI界面] android中仿iphone实现listview的反弹效果
- android中跳转系统自带的界面
- Android控件笔记——在界面中显示图片
- ktolin在Android中布局界面拼接
- android之简单的计算器样式界面
- Android 界面的横竖屏监听
- Android简单计算器界面实现
- Android Studio设置界面风格和字体大小
- android仿QQ的UI界面