2018-08-03から1日間の記事一覧

ViewGroup.getChildCount

前も使ったが、ViewGroup.getChildCountで、子Viewの数を取得できる。ViewGroup | Android DeveloperschildView1, childView2の子Viewの数を取得し、表示する。childView1, childView2をViewGroupにキャスト。(childView1, childView2はLinearLayoutなのでVi…