开发者

Android Can you add a widget inside another widget?

Since Widgets are Views of sorts I was wondering if you can add and position one widget inside another. For example could you add a EditText to a button? and have the button contain say one or more EditTexts inside it? Would this be possible (not that its a recommended way but could it be done). and if so how would I do this? Its important that I开发者_高级运维 not only be able to add the other widget but also size and position it within the other widget. Thanks


I think you CAN'T achieve this, since widgets can only be put on a layout. You can position a widget on top of another widget if you will use a relative layout.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜