Code example for ImageButton

Methods: setAlpha, setEnabled

0
                prevPost.setAlpha(navButtonDisabled);
        } else if (button == 1) {
            nextPost.setEnabled(enabled);
            if (enabled)
                nextPost.setAlpha(navButtonEnabled);
            else 
                nextPost.setAlpha(navButtonDisabled);
        } 
 
    } 
 
    protected class DetailWebViewClient extends WebViewClient {
        @Override 
        public boolean shouldOverrideUrlLoading(WebView view, String url) {
            if (!url.equalsIgnoreCase(Constants.readerDetailURL)) {
                loadExternalURLListener.loadExternalURL(url);
                return true; 
            } 
            return false; 
        }