安卓自定义view

来源:互联网 发布:淘宝anna家的创始人 编辑:程序博客网 时间:2024/05/16 15:48

1. 自定义view 通过 inflate xml得到布局,可以通过不断的组合分解view

inflate(context, R.layout.layout_test1, this);

2.自定义view 通过 onmeasure, onlayout, ondraw手动画布局

0 0
原创粉丝点击