1. 程式人生 > >Android中getChildAt()方法介紹

Android中getChildAt()方法介紹

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

本人菜鳥一個,有什麼不對的地方希望大家指出評論,大神勿噴,希望大家一起學習進步!