Android: Redrawing a specific view inside a layout -
i have vertically aligned linearlayout contains textview, own custom view class, , i'm hoping put ad @ bottom.
i'm drawing objects in custom view class (that extends view), not updated screen unless call setcontentview(r.layout.myview)
, resets textview default text (what stored in xml file) don't want, , assume redraw new ad well... annoying.
is there way can redraw/refresh custom view screen without affecting textview or whatever else may have on layout?
how view.invalidate()
?
from reference:
note framework not draw views not in invalid region.
to force view draw, call invalidate().
Comments
Post a Comment