Android Dev 杂记

| 分类 Android  | 标签 android  color  alpha  xml 

2 How to force layout to refresh/repaint android?

http://stackoverflow.com/questions/18470753/force-layout-to-refresh-repaint-android

1: FrameLayout container = (FrameLayout)findViewById(R.id.main_fragment_container);
2: container.invalidate();
3: container.requestLayout();

上一篇     下一篇