gpt4 book ai didi

Android bringToFront() 查看 API <= 16

转载 作者:搜寻专家 更新时间:2023-11-01 08:40:27 24 4
gpt4 key购买 nike

当我测试我的应用程序时,我意识到如果我使用 API <= 16 的设备,方法 bringToFront() 将不起作用!我如何为小于 16 的 API 执行此操作?当我触摸一个 View 时,我需要将它带到前面!使用 API 17 或更高版本时,bringToFront() 有效。

谢谢

最佳答案

来自documentation :

public void bringToFront () Added in API level 1

Change the view's z order in the tree, so it's on top of other sibling views. This ordering change may affect layout, if the parent container uses an order-dependent layout scheme (e.g., LinearLayout). Prior to KITKAT this method should be followed by calls to requestLayout() and invalidate() on the view's parent to force the parent to redraw with the new child ordering.

关于Android bringToFront() 查看 API <= 16,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33136961/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com