如何暗淡当前的活动?暗淡

2023-09-12 05:20:06 作者:庸人自扰

有没有一种方法调用新的活动时,可以调暗电流活动?作为新的活动应高于previous活动。新的活动,我已经是一个画廊。它有被点击在previous活动结束按钮时。所以我想这个画廊要放在上面的previous活动

Is there a way to dim the Current activity when calling the new activity? as in the new activity should be above the previous activity. The new activity that i have is a gallery. It comes when the finish button in the previous activity is clicked. So i want this gallery to be placed above the previous activity

推荐答案

试试你的画廊活动的背景设置为透明色。您可能需要创建一个自定义主题和更多的细节可以在这里找到: HTTP:/ /developer.android.com/guide/topics/ui/themes.html

Try setting the background of your gallery Activity to a transparent color. You might need to create a custom theme and more details can be found here: http://developer.android.com/guide/topics/ui/themes.html

这很可能将是完全透明的,所以不是你想要完全是。但是,例如:

This is probably going to be completely transparent, so not quite what you want. But, for example:

<activity android:theme="@android:style/Theme.Translucent">