Android中getChildAt()方法介绍

来源:互联网 发布:知乎 如何练宽 编辑:程序博客网 时间:2024/05/21 09:10

getChildAt:
官方文档:

public View getChildAt (int index)

Returns the view at the specified position in the group.

Parameters
index: the position at which to get the view from
returns:
the view at the specified position or null if the position does not exist within the group

大致意思:
  public View getChildAt (int index)
  
  在集合中返回指定位置的视图。
  
  参数
  index:索引的位置得到的视图
  returns:在集合中如果位置不存在,视图在指定的位置还是null

本人菜鸟一个,有什么不对的地方希望大家指出评论,大神勿喷,希望大家一起学习进步!

3 0
原创粉丝点击