Android API demos 阅读笔记 1
16lz
2021-01-23
代码很简单,所有奥秘都在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 修改默认的ProgressBar的动画效果
- Android近百个项目的源代码
- Android代码速查,写给新手的朋友们
- Java代码设置Android全屏
- [置顶] Android 代码混淆 选项说明
- android秒表计时代码
- android代码片段一
- Activity页面切换的效果
- 用SlidingDrawer实现类似android状态栏下拉上拉效果!