开发者

Android Dialog problem with TabView

   My problem is when a dialog is opened, if I change the tab,  that dialog is displayed in the activity in the next tab.How to remove that .

Pls help. This occurs because according to 开发者_JS百科my requirement I can interact with the dialog and the view behind at the same time.


I resolved it by dismissing the dialog in onPause() method


You should check if the dialog is open or not on the click of another tab, if open close it.


You have a tabhost and a framelayout... just identify the tab changed via calling OnTabChangedListener and perform frameLayout.removeAllView(); and then render a dialog again.. I think it may help...!! if not then can u please describe ur problem in brief...

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜