如何让活动,而不是覆盖全屏幕而不是、全屏幕

由网友(╯絆城煙沙、染指流年)分享简介:我希望我的行为采取屏幕如小面积敬酒不包括所有的屏幕,它只是显示了其他的东西,内容其余部分可以看出敬酒后面。但是,这是一个对话,我想上面其他的事情,例如要显示我的屏幕上面的主屏幕。下面是想法,在我的脑海里。I want my activity to take smaller area of the screen e.g...

我希望我的行为采取屏幕如小面积敬酒不包括所有的屏幕,它只是显示了其他的东西,内容其余部分可以看出敬酒后面。但是,这是一个对话,我想上面其他的事情,例如要显示我的屏幕上面的主屏幕。下面是想法,在我的脑海里。

I want my activity to take smaller area of the screen e.g. toast doesn't cover all of the screen, it is just shown over other things and rest of the contents can be seen behind the toast. But it's a dialog, and I want my screen to be shown above other things e.g. above Home Screen. Below is the idea that is in my mind.

请,引导我,如果它甚至有可能。如果可能的话再告诉我正确的道路。 谢谢你。

Kindly, guide me if it is even possible. If possible then show me the right path. Thanks.

推荐答案

让您的活动主题为半透明。 添加下面一行在您的清单对这项活动:

make your activity theme as translucent. add the following line in your manifest against that activity:

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

这样您就可以看到背景的东西视图添加到的LinearLayout与机器人:alignParentBottom = TRUE

阅读全文

相关推荐

最新文章