0

In my appplication i have to load the abc.html file in to specific layout. So for that which view i have to use ? Should i WebView is fine. or there is anyother View that load that local html file fast.

Note: the Html file is not loading from the server or internate. but it is tha local file that we stored in to assets directory.

Shreyash Mahajan
  • 23,386
  • 35
  • 116
  • 188

3 Answers3

4

You still need to use WebView for rendering HTML tags, CSS and Java script

Rajdeep Dua
  • 11,190
  • 2
  • 32
  • 22
1

A WebView has the ability to load HTML Files and all the functionality behind the website functionality. I recommend using this.

JoxTraex
  • 13,423
  • 6
  • 32
  • 45
1

use webview.

   WebView wv;  
   wv = (WebView) findViewById(R.id.webView1);  
   wv.loadUrl("file:///android_asset/aboutcertified.html"); // ur path of HTML
Richa
  • 3,165
  • 1
  • 22
  • 26