For a custom layout with the text node values to the right of the labels, use RelativeLayout instead of LinearLayout.
为了实现文本节点值位于标签右侧的自定义布局,可以使用RelativeLayout代替LinearLayout。
You need to override this method after calling super.updateDisplayList() if you're creating a custom layout, and then substitute the desired logic.
如果您正在创建定制布局,那么需要在调用 super.updateDisplayList() 之后覆盖该方法,然后替换为希望使用的逻辑。
Even though designing a custom layout does not typically require a large amount of code, the more you understand how layouts work, the better you can design your layout objects to be efficient.
尽管通常情况下自定义布局并不需要大量代码,但是你越理解布局是怎样工作的,你设计的布局对象就越有效。
The guide's final chapter focuses on an example project with a full implementation of a custom layout.
在指南的最后一章节,我们集中来看一个完整的自定义布局的项目范例。
The guide's final chapter focuses on an example project with a full implementation of a custom layout.
在指南的最后一章节,我们集中来看一个完整的自定义布局的项目范例。
应用推荐