开发者

Android Can you add a widget inside another widget?

开发者 https://www.devze.com 2023-03-07 12:36 出处:网络
Since Widgets are Views of sorts I was wondering if you can add and position one widget inside another.

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

精彩评论

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