Linearlayout.layoutparam No Longer Have Addrule Function Nor Linearlayout.bottom?
I'm creating some views dynamically and insert into a LinearLayout. I'm planning to insert it from the Top to Bottom orderly. (by default, it insert at Bottom and to the Top). I fo
Solution 1:
RelativeLayout Params have addRule() property..
Solution 2:
Apparently there is no such thing as LinearLayout.BOTTOM, nor can we add rule for LinearLayout.
But the good news is to insert into LinearLayout, one could decide the sequence.. Just use the addView
function with 3 arguments as below
mLayout.addView(view, index, param);
The index
determined the order.
Post a Comment for "Linearlayout.layoutparam No Longer Have Addrule Function Nor Linearlayout.bottom?"