Android Custom Layout - onDraw() never gets called

后端 未结 2 671
梦如初夏
梦如初夏 2020-11-29 23:55
public class MainActivity extends Activity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
                 


        
2条回答
  •  Happy的楠姐
    2020-11-30 00:24

    If you want that the canvas is be re-draw call invalidate(), and the method onDraw() will be re-executed

提交回复
热议问题