android - Dynamically add a view in a custom layout after know layout's size -
android - Dynamically add a view in a custom layout after know layout's size -
i want dynamically add together view in custom layout (extends relativelayout). subview must placed specific coordinate , size. initialize , utilize addview method onmeasure (same problem onlayout) of custom layout, can know size of layout. (after changing device’s orientation example) method onmeasure (or onlayout) called multiple times (often twice). subviews added many times.
does onmeasure right place dynamically add together subviews ?
android layout view
Comments
Post a Comment