Android(安卓)API demos 阅读笔记 1
16lz
2021-12-04
代码很简单,所有奥秘都在AndroidManifest.xml里面。
加上这句话即可:android:theme="@android:style/Theme.Dialog"。
相关的文档参考,从下面得到:
Dev Guide -> Framework Topic ->Applying Styles and Themes.
To set this theme for all the activites of your application, open the AndroidManifest.xml file and edit the <application>
tag to include the android:theme
attribute with the theme name:
另外,也可以用代码实现。
在onCreate中,
setTheme(android.R.style.***);
可以试试,有多种效果可以选择哦。
如 Translucent 就是半透明效果
更多相关文章
- android button 上添加图片
- Android(安卓)修改默认的ProgressBar的动画效果
- Android代码速查,写给新手的朋友们
- Android近百个项目的源代码
- 自定义TabActivity,TabActivity的美化
- android 打开各种文件(setDataAndType)
- Java代码设置Android全屏
- android4.0自定义标题报错 -----断点记录
- SeekBar自定义