android - change placing of child views dynamically using onDraw? -
is there way dynamically change position(like manually translation animation) on child view thats been defined , places inside onlayout?
i have onlayout defined here:
@override protected void onlayout(boolean changed, int left, int top, int right, int bottom) { //place topview @ top of layout removing yspace value defined fro height // of view , dividing height topview takes half space // height of view container topview.layout(0, 0, getwidth(), (getheight() - yspace) / 2); }
i want manually change y axis position of topview dynamically .
i thinking ofabout ondraw ondraw doesnt childviews , draws them. instead gives blank canvas manually draw items in it.
currently implementing custom viewgroup takes x amount of child views , dynamically moves them around. question how move them around?
Comments
Post a Comment