あるビューから別のビューにフェードインしたいViewGroup。現在、を使用してトランジションを実行していsetAlphaますが、問題は、1つのビューのみがレンダリングされていることです。これは、一番上にあり、フェードアウトしているビューです。
- ビュー配列は
ViewGroupz軸による順序の中にありますか? - 上面図のみがレンダリングされていますか?
私のlayout方法は次のようになります。
@Override
protected void onLayout(final boolean changed, final int l, final int t, final int r, final int b) {
L.debug("laying out {} children", this.getChildCount());
for (int i = 0; i < this.getChildCount(); i++) {
L.debug("layout out {}", i);
View view = this.getChildAt(0);
view.layout(0, 0, view.getMeasuredWidth(), view.getMeasuredHeight());
}
}