I want to change the font of AlertDialog.Builder
's object. my AlertBuilder is inside webview content. here is my code:
webView.addJavascriptInterface(new Object() {
@JavascriptInterface // For API 17+
public void performClick(String strl) {
AlertDialog.Builder dialog = new AlertDialog.Builder(
new ContextThemeWrapper(FacebookSlider.this, R.style.AlertDialogCustom));
dialog.setMessage(strl);
dialog.show();
}
}, "ok");
I read this link but it didn't work for AlertDialog.Builder
. what should i do?