You need to get the path to style.css and for the file to see local fonts for the image files. I want to insert a path here
String text = "<html><head>" + "<link href=\"file:///android_asset/style.css\">" // + "<style type=\"text/css\">"+textr+"</style>" // + "<style type=\"text/css\">body{color: #c1c1c1; background-color: #303030;}</style>" + "</head>" + "<body>" + elWeb + "</body></html>"; I wrote like this file: ///android_asset/style.css, does not work (but takes the style from the site) Now I use
InputStream is = getActivity().getAssets().open("style.css"); int size = is.available(); byte[] buffer = new byte[size]; is.read(buffer); is.close(); String textr = new String(buffer); But it does not suit me