开发者

Is it possible to resize/reposition layouts in android at runtime?

开发者 https://www.devze.com 2023-01-27 18:19 出处:网络
I am developing an application in android, in which the UI looks almost similar to igoogle. I wanted to know if I can reposition the layouts in android like how its done igoogle page. Please provide m

I am developing an application in android, in which the UI looks almost similar to igoogle. I wanted to know if I can reposition the layouts in android like how its done igoogle page. Please provide me some sampl开发者_开发百科e code if anyone has already done it. Also I wanted to know if we can re-size the layout at runtime.

Thanks in advance!!


To make an "igoogle" like interface you probably want to use a grid of some kind. Here is a library that can provide an appropriate View while allowing reordering of the items.

As for your last question, yes, the size of the Views that you place in the grid can be adjusted as well. Using simple layoutparams.

0

精彩评论

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

关注公众号