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

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -