Closed Roben1016 closed 5 years ago
int childCount = content.getChildCount(); int index = 0; View oldContent = null; if (targetView instanceof View) { oldContent = (View) targetView; for (int i = 0; i < childCount; i++) { index = i; break; } } else { oldContent = content.getChildAt(0); }
大佬,这段代码中的遍历貌似不太对,这个index 无论如何都是0
已经更新 感谢
好的
大佬,这段代码中的遍历貌似不太对,这个index 无论如何都是0