apidemo 学习 android 实现透明activity
2013-04-17 15:41
351 查看
<activity android:name=".app.TranslucentActivity" android:label="@string/activity_translucent" android:theme="@style/Theme.Translucent" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.SAMPLE_CODE" /> </intent-filter> </activity>
<!-- A theme that has a translucent background. Here we explicitly specify that this theme is to inherit from the system's translucent theme, which sets up various attributes correctly. --> <style name="Theme.Translucent" parent="android:style/Theme.Translucent"> <item name="android:windowBackground">@drawable/translucent_background</item> <item name="android:windowNoTitle">true</item> <item name="android:colorForeground">#fff</item> </style>
<?xml version="1.0" encoding="utf-8"?> <TextView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/text" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center_vertical|center_horizontal" android:text="@string/translucent_background" />
背景是壁纸的activity
<activity android:name=".app.WallpaperActivity" android:label="@string/activity_wallpaper" android:theme="@style/Theme.Wallpaper" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.SAMPLE_CODE" /> </intent-filter> </activity>
<!-- A theme that has a wallpaper background. Here we explicitly specify that this theme is to inherit from the system's wallpaper theme, which sets up various attributes correctly. --> <style name="Theme.Wallpaper" parent="android:style/Theme.Wallpaper"> <item name="android:colorForeground">#fff</item> </style>
相关文章推荐
- Android ApiDemo学习(三)activity(2)
- Android:手把手教你 实现Activity 与 Fragment 相互通信(含Demo)
- APIDemo学习笔记——Android上几种简单的Animation使用方法
- 【Android游戏开发之五】游戏注册界面Demo-实现两个Activity之间的切换与数据交互!
- Android学习小Demo(9)一个To Do List的实现
- 【iPhone Demo】地图自定义大头针如何利用Android TabHost+ActivityGroup+Broadcast实现类似于iPhone的底部菜单
- 安卓Api Demo学习 App/Activity/Dialog
- APIDemo学习笔记——Android上几种简单的Animation使用方法(三)——3D Transition
- 【Android游戏开发之五】游戏注册界面Demo-实现两个Activity之间的切换与数据交互!
- Android应用程序窗口(Activity)实现框架简要介绍和学习计划
- 【Android游戏开发之五】游戏注册界面Demo-实现两个Activity之间的切换与数据交互!
- android 成长 UI 学习之 Activity 透明,半透明效果的设置transparent
- Android 编程下实现 Activity 的透明效果
- 【Android游戏开发之五】游戏注册界面Demo-实现两个Activity之间的切换与数据交互!
- 【Android游戏开发之五】游戏注册界面Demo-实现两个Activity之间的切换与数据交互!
- Android学习--PreferenceActivity UI实现
- 从问题到解决方案到应用-android-ApiDemo入口源代码学习及应用
- Android源码学习之一-Activity是如何实现主题变化的
- 人人网SDK Demo项目学习 3 在apilist中绑定事件调用Activity
- 【Android游戏开发之五】游戏注册界面Demo-实现两个Activity之间的切换与数据交互!