Ovi*_*tcu 34
RelativeLayout扩展ViewGroup哪个有getChildCount()和getChildAt(int index)方法.所以你可以尝试的是:
for(int i = 0; i < relativeLayout.getChildCount(); i++) {
View child = relativeLayout.getChildAt(i);
// your processing...
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
22851 次 |
| 最近记录: |