开发者

Avoid Tabs from disappearing when searching

开发者 https://www.devze.com 2023-03-07 00:03 出处:网络
i\'ve got a tabbed layout, and on one of the tabs i have a search functionality. When the user makes a new search, i need to show the results. However, doing so involves starting another activity to h

i've got a tabbed layout, and on one of the tabs i have a search functionality. When the user makes a new search, i need to show the results. However, doing so involves starting another activity to handle the search results.

this causes the tabs at the bottom to disappear. The user can get the tabs back by clicking on the 'back' button. But somehow, in the context of my application this can be a bit counter-intuitive and seems to be break the common layout flow.

is there any way to prevent the tabs from disappearing when invoking the search fr开发者_开发问答om one of the tabs?

thanks for any help/suggestions.


as far as i can understand your problem, You are not using tabs then you are using buttons. see some tabhost tutorials on how to create a tabbed activity. what you are doing is launching a new activity instead of just switching a tab in the existing one.

Also the other things you can look for are activity groups.

Hope this helps you somehow.

0

精彩评论

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

关注公众号