Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私のxmlには多くのビューがあり、他のすべてのビューの前面ではなく、他のビューの前面に移動するために、コードで1つのビューのzオーダーを変更したいと考えています。
これを達成する方法はありますか?
これは役に立ちます
layout.bringChildToFront(view);
ここ
layout = your_linear_layout AND view = the_view_you_wanna_bring_to_front
それがあなたを助けることを願っています。
親から削除して再度追加すると、前になると思います。その親の他のすべての子の。これが、他のものではなく、いくつかのものの前に置きたい方法に適合する場合、これが役立つはずです。