代码很简单,所有奥秘都在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 就是半透明效果

更多相关文章

  1. android button 上添加图片
  2. Android(安卓)修改默认的ProgressBar的动画效果
  3. Android代码速查,写给新手的朋友们
  4. Android近百个项目的源代码
  5. 自定义TabActivity,TabActivity的美化
  6. android 打开各种文件(setDataAndType)
  7. Java代码设置Android全屏
  8. android4.0自定义标题报错 -----断点记录
  9. SeekBar自定义

随机推荐

  1. Android的系统服务一览
  2. Android中的SrollView滚动详解
  3. android v13 的新特性
  4. 运行模拟器找不到路径 AVD 更改路径
  5. 转:Android(安卓)测试 Appium、Robotium、
  6. Still no compatible AVDs with target '
  7. Ubuntu下Android4.0源码的下载和编译
  8. android软键盘状态监听最稳的方法,属性动
  9. 在Android中如何测量View的宽度和高度
  10. Android(安卓)Studio 多渠道打包以及常见