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.
の を呼び出すメソッドをViewGroup使用しているカスタムを作成していますが、水平方向にのみ追加しています。onLayoutaddViewInLayout()ViewGroupView
ViewGroup
onLayout
addViewInLayout()
View
Androidで行っているViewように、強制的に垂直に追加する方法ListView
ListView
助けを求めています。
あなたは経由で位置を指定してみることができます
child.layout(int left, int top, int right, int bottom)
ビューグループ内の他のビューを測定した場合は、一番下のビューの下部を取得できるはずです。
child.layout(left, viewAbove.getBottom(),right, viewAbove.getBottom()+heightOfTheChild);