I’m working on a webview. If I click anything in my webview, it redirects to another link by using webviewclient class.
Now I put a footer contains back and forward button, to do the functionality which in ordinary browser.
I can work about to back and forward of webview. It works fine.
Now I want to set a buttons in the footer are initially should be not focused and it should work clickable and not clickable dynamically.
I solved this problem using
canGoBack()andcanGoforward(), we can disable those buttons usingobj_name.setEnabled(false);.Here’s a good sample from Google’s, worth looking at.