开发者

LWUIT - Create new line in Flowlayout

开发者 https://www.devze.com 2023-03-16 06:31 出处:网络
from flying through the source code of the HTMLComponent, the method for creating a line break in a Form filled with labels the proper method is embedding the labels in a container and the newline act

from flying through the source code of the HTMLComponent, the method for creating a line break in a Form filled with labels the proper method is embedding the labels in a container and the newline actually creates a new container. Is this the proper way to do it?

So: 开发者_运维知识库

Container

|Label Label

|Label Label

|Label

|Label

Container:

|Label

|Label


Flow layout can and should perform its own line breaks on entered text. The reason the HTML component does this manually is to provide it with even more fine grained control over layout.

Generally you need to see why HTMLComponent doesn't wrap lines for you, you need to look in the LWUITBrowser demo and the LWUITDemo both of which line wrap properly and see what you did differently.

0

精彩评论

暂无评论...
验证码 换一张
取 消