在后面的Andr​​oid另一种观点认为隐藏视图 [英] Hide view behind another view in Android

查看:166
本文介绍了在后面的Andr​​oid另一种观点认为隐藏视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图得到一个以另一种观点认为背后的幻灯片。考虑一组卡作为一个例子:如果我把卡A卡B之后,A卡是仍然存在,但它正在或阻止,因为卡B是OVER IN-FRONT-卡A.

I'm trying to get a view to "slide behind" another view. Consider a set of cards as an example: if I put card A behind card B, card A is still there but it is being blocked because card B is OVER or IN-FRONT-OF card A.

我深知setInvisibilty(中),但是这不是我要找的效果。

I am well aware of setInvisibilty() but that is not the effect I'm looking for.

我有一个动画谷歌,现在卡的视图到屏幕上的动画。该卡经过了在卡的前面显示(而我想要的卡到文本上方滑动)在动画过程中一些文本。我对文字的奥飞动漫这不利于为它已经pretty固体的卡经过的时间。

I have an animation that animates a Google-Now-card-like view onto the screen. The card passes over some text that is shown in front of the card (whereas I want the card to slide above the text) during the animation. I have an alpha animation on the text which does not help as it's already pretty solid by the time the card passes over.

该问题的任何回应或以上建议,不同的方法具有很强的AP preciated。

Any response to the problem above or suggestions for a different method are highly appreciated.

推荐答案

请参阅此previous问题:<一href=\"http://stackoverflow.com/questions/2614393/defining-z-order-of-views-of-relativelayout-in-android\">Defining在Android的意见的RelativeLayout的Z序

See this previous question : Defining Z order of views of RelativeLayout in Android

View.bringToFront()

就是你要找的东西。

Is what you're looking for.

这篇关于在后面的Andr​​oid另一种观点认为隐藏视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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