如何创建Android中一个半透明的指令页? [英] How to create a semi-transparent instruction page in Android?

查看:93
本文介绍了如何创建Android中一个半透明的指令页?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新来的Andr​​oid和努力工作,在这个问题上的最后2天,但能找到一个解决方案。任何帮助将是非常美联社preciated。如何为使用一个App卡路里计数器在Android Market中创造的指令一个半透明的网页?

I am new to Android and trying to work on this problem for last 2 days but could find a solution. Any help will be highly appreciated. How to create a semi-transparent page for instruction as used by an App Calorie Counter in Android Market?

推荐答案

创建一个新的活动,并设置顶层视图有一个半透明的背景:

Create a new activity and set the top-level view to have a translucent background:

android:background="#c0000000"

编辑:您还需要申报的活动有一个透明的背景。设置这个主题在清单将工作活动:

You also need to declare the activity to have a transparent background. Setting this theme for the activity in the manifest will work:

android:theme="@android:style/Theme.Translucent"

这篇关于如何创建Android中一个半透明的指令页?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆