最后,注意上述代码获得一个在布局XML中创建的按钮的句柄,并添加一个单击事件处理程序。
Finally, notice that we get a handle on the button we created in the layout XML and add a click event handler.
这用语言也许很难描绘,但只要动手实践便不难理解。最后的结果是布局系统十分灵活,但学习起来却比较困难。
It's all a lot harder to understand in text than in application, but the result is a flexible layout system with a rather steep learning curve.
最后,小部件的定义文件还指定了小部件视图和编辑模式的布局。
Lastly, the widget definition file also specifies the widget layout for view and edit modes.
应用推荐