How To Show Message If User Clicks On The TabWidget Of A TabHost When The TabWidget Is Disable?

I have taken some different approach to do the task. I have set a relative layout above tabwidget & set the background color to transparent black , so the tabwidget will still remain visible to user. Then I have set a onclicklistener for the relative layout.So whenever a user taps on the tabwidget, actually he/she is tapping on the relative layout & a toast message will be displayed to prompt the user that the tabwidget is currently disable.

When user will enable the tabwidget , the relative layout become invisible & the tabwidget come on top using bringtofront function. Thus I have done the trick on my app.

I have taken some different approach to do the task. I have set a relative layout above tabwidget & set the background color to transparent black , so the tabwidget will still remain visible to user. Then I have set a onclicklistener for the relative layout.So whenever a user taps on the tabwidget, actually he/she is tapping on the relative layout & a toast message will be displayed to prompt the user that the tabwidget is currently disable.

When user will enable the tabwidget , the relative layout become invisible & the tabwidget come on top using bringtofront function. Thus I have done the trick on my app. Sharing my idea because it can be useful for others too ..... :).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions