难道Android的有JPanel的相同呢? [英] Does Android have the equivalent of a JPanel?

查看:350
本文介绍了难道Android的有JPanel的相同呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个Android等同于Java的面板?我需要的东西,我可以在动态添加不同的看法一组大小。有没有这样的技术?

Is there an Android equivalent to Java's panel? I need something with a set size that I can add different views in dynamically. Is there such a technique?

我基本上希望在XML code,我可以在以后通过活动按钮添加一组大小的空白区域。之所以后来添加的按钮和按键的大小数量将急剧范围内,但仍需要填充的区域。

I'm basically wanting a blank area with a set size in xml code where I can add buttons later through the activity. The reason for adding later is the number of buttons and size of the buttons will range dramatically, but still needing the area to fill.

推荐答案

目前在Android中没有一个JPanel类,但你可以很有效地利用布局。看看这个链接。

There isn't a JPanel class in Android but you can use layouts just as effectively. Check out this link.

这篇关于难道Android的有JPanel的相同呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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