开发者

TabHost View Problem

I have a problem in layout. I am using TabHost in my application. In that there are 4 Tabs. In one of the Tab i have used 3 开发者_JAVA百科Buttons.

What I wanted to do is : When i click on one of the Button, the TabHost and the Button should remain as it is and it should display me the contents (Set according to onClickListener) in that activity itself.


Take a look at the answer of this question: Changing the view within the Android Tab Widget


Ok, but the thing i don't understand: where should it show you the buttonClick result? If you want to set the activity in tab not to reload each time, you should use .addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP) in the corresponding tabspec declaration

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜