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.
LinearLayout getChildAt(index)方法总是返回子视图的第 0 个位置。如何在我LinearLayout的 by中获得剩余的子视图getChildAt(index)。
LinearLayout
getChildAt(index)
任何帮助。谢谢
也许它可以帮助你。
ll 是您的线性布局。
int childcount = ll.getChildCount(); for (int i=0; i < childcount; i++){ View v = ll.getChildAt(i); }