任何包装的ViewGroup? [英] Any wrapping viewgroup?

查看:122
本文介绍了任何包装的ViewGroup?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要寻找的ViewGroup可包装就像什么TextView的事。我需要这个布局。这应该是这样的LinearLayout,但可包装为多行。或者我需要一些自定义的?

I am looking for Wrappable ViewGroup just like what TextView do. I need this for layout. This should be something like LinearLayout but wrappable to multiple lines. Or do I need something custom?

推荐答案

有今天的行为就像Swing的的FlowLayout ,它包裹的小部件到多个是在Android中没有布局管理器线。这在理论上是可能的,你自己写一个,通过在开源$ C ​​$ C寻找的LinearLayout 等,并按照他们制定的模式。

There is no layout manager in Android today that behaves like Swing's FlowLayout, where it wraps widgets onto multiple lines. It is theoretically possible for you to write one yourself, by looking at the open source code for LinearLayout, etc. and following the patterns they establish.

抱歉!

这篇关于任何包装的ViewGroup?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆