google-sdk-动态更新手机主题(简单版)
来源:互联网 发布:农村淘宝是什么意思 编辑:程序博客网 时间:2024/05/01 09:30
参照google sdk 实例开发的例子:样例中有些勘误
MainActivity.java的代码:
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setTheme(R.style.Theme_Transparent);
setTheme(R.style.Theme_Translucent2);
setTheme(R.style.Theme_Translucent);
setContentView(R.layout.activity_main);
}
styles.xml中添加style的样例:
<style name="Theme_Translucent">
<item name="android:windowBackground">@drawable/pink</item>
<item name ="android:windowNoTitle">false</item>
<item name = "android:colorForeground">@drawable/blue</item>
<item name = "android:colorBackground">@drawable/white</item>
</style>
<style name="Theme_Translucent2" >
<item name="android:windowBackground">@drawable/white</item>
<item name ="android:windowNoTitle">false</item>
<item name = "android:colorForeground">@drawable/darkgreen</item>
<item name = "android:colorBackground">@drawable/pink</item>
</style>
<style name="Theme_Transparent">
<item name="android:windowBackground">@drawable/darkgreen</item>
<item name ="android:windowNoTitle">true</item>
<item name = "android:colorForeground">@drawable/blue</item>
<item name = "android:colorBackground">@drawable/pink</item>
</style>
dimens.xml中添加颜色类型:
<drawable name="blue">#ff0000ff</drawable>
<drawable name="pink">#ff00ffff</drawable>
<drawable name="white">#ffffffff</drawable>
<drawable name="darkgreen">#ff00ff00</drawable>
- google-sdk-动态更新手机主题(简单版)
- Google上不去SDK更新问题
- 解决国内android sdk无法更新,google不能的简单办法
- google更新了最新的SDK
- Google被墙后,如何更新Android SDK?
- 教你如何安装iPhone手机主题(简略版)
- Android SDK 更新失败(google相关网站被屏蔽)解决方法
- Android SDK 更新失败(google相关网站被屏蔽)解决方法
- Windows 7 Bing动态主题更新多张壁纸
- 动态切换主题(cookie)
- Google推出Android 2.3 更新SDK和开发工具
- Google推出Android 2.3 更新SDK和开发工具
- Android SDK Manager无法更新,无法连接GOOGLE服务器解决办法
- SDK更新 https://dl-ssl.google.com refused
- vpn 免费用 轻松访问Google 更新SDk
- android中sdk更新时, google不能访问 怎么解决?
- 解决sdk更新问题 dl-ssl.google.com
- 高速更新 android sdk 以及下载 google 资源 的方法
- CentOS安装rpm包时遇到Header V3 DSA signature: NOKEY时解决办法
- hdu 1823 Luck and Love 二维线段树
- UVA141- The Spot Game【运行时间:25ms】
- SQL中DML(数据库操作语言)的使用
- Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE 安卓程序启动报错,
- google-sdk-动态更新手机主题(简单版)
- android 技巧
- SSL通关之keytool 命令(二)
- 迷人的巴宝莉时装附件配置
- 迷人和漂亮的十几岁的明星
- java二十三种设计模式----(二)单例设计模式 :“懒汉式”与“饿汉式”的区别 为什么通常使用饿汉式
- Bitmap获取图片的高度与宽度
- 【学习笔记】C++高级程序设计:STL:函数对象
- Jersey中的基本权限认证及访问程序