开发者

Load the another Layout xml file in to the another layout

开发者 https://www.devze.com 2023-02-27 12:51 出处:网络
I want to add the Another Layout in to the current Layout. . . I have use the Ta开发者_开发问答bView in My Application and now i want to change the Layout while the specific tab is clicked. and the M

I want to add the Another Layout in to the current Layout. . . I have use the Ta开发者_开发问答bView in My Application and now i want to change the Layout while the specific tab is clicked. and the Main TabView remain in Same Place. . How it is possible ??? Help me Please.. Thanks.


use 2 layouts and set the visibility to layout according to situation


You can inflate your views on the fly from layout xmls, and them to the current layout / view.

This thread about dynamic number of gui elements in Android shows you how to achieve it.

0

精彩评论

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