开发者

Show Tab Widget on each and every Activity

开发者 https://www.devze.com 2023-02-22 00:54 出处:网络
Using Java, how can I show a Tab Widget on each and every Activity, even if that Activity is a subActivity of FirstActivity? If possible, please provide me w开发者_Python百科ith some code or examples.

Using Java, how can I show a Tab Widget on each and every Activity, even if that Activity is a subActivity of FirstActivity? If possible, please provide me w开发者_Python百科ith some code or examples.


Use THis to start the new Activity

View view = getLocalActivityManager().startActivity("tab1", new Intent(this,tab1.class)
.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP))
.getDecorView();

setContentView(view);


Create Another GroupActivity and putExtra info along with your intent so when it gets it ,the group activity can check what tab should be opened.Use My code to open the new Tab.

0

精彩评论

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