且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Android如何以编程方式创建视图

更新时间:2023-02-12 18:31:04

创建自定义 ViewGroup ;这使您可以手动管理每个孩子(按钮,标签等)的放置.在2009年的google IO事件中检查 vid使您的Android UI快速高效" ",具体是从大约43分钟开始,以获取更多详细信息.

Create a custom ViewGroup; this allows you to manage placements of each of the children you have (buttons, labels, etc) manually. Check this vid from the google IO event in 2009 titled 'Make your Android UI Fast and Efficient', specifically from about 43 minutes onward for more details.