QH
есть такой момент
container.addView(this, 0)
и вот не пойму 0 какую роль здесь играет?
ну типа в документации это index
но в моём случае это viewPager как он работает то?
Size: a a a
QH
container.addView(this, 0)
ОА
QH
VM
Adds a child view. If no layout parameters are already set on the child, the
* default parameters for this ViewGroup are set on the child.
*
* <p><strong>Note:</strong> do not invoke this method from
* {@link #draw(android.graphics.Canvas)}, {@link #onDraw(android.graphics.Canvas)},
* {@link #dispatchDraw(android.graphics.Canvas)} or any related method.</p>
*
* @param child the child view to add
* @param index the position at which to add the child
QH
Adds a child view. If no layout parameters are already set on the child, the
* default parameters for this ViewGroup are set on the child.
*
* <p><strong>Note:</strong> do not invoke this method from
* {@link #draw(android.graphics.Canvas)}, {@link #onDraw(android.graphics.Canvas)},
* {@link #dispatchDraw(android.graphics.Canvas)} or any related method.</p>
*
* @param child the child view to add
* @param index the position at which to add the child
VM
ОА
VM
QH
А
ОА
VM
ОА
ОА
SD
<data>
<variable
name="user"
type="com.offor.application.Models.User" />
</data>
ОА
QH
VM
А
А
addViewInner
() конкретно.