开发者

Transparent activity without one black line going across the screen?

I have created a real simple transparent activity by using a custom theme and color:

<style name="CustomTheme">
<item name="android:windowBackground">开发者_如何学编程@color/trans</item>
<item name="android:windowIsTranslucent">true</item>
</style>

<color name="trans">#00000000</color>

The only problem with this is when the activity starts one black line scrolls up the screen to the top. I assume this is the animation of the activity starting. Is there any way to change this so no line scrolls upwards?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜