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

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -