Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8132979
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T09:28:39+00:00 2026-06-06T09:28:39+00:00

I am working on an application with many html pages. I have created these

  • 0

I am working on an application with many html pages. I have created these in the raw folder on Eclipse.

I’m going to be making many html files and I want to have only one location for the css file which I want to call in each of the html files. This application works in such a way that the
loadData method displays the html page as shown below:

webview.loadData(readTextFromResource(R.raw.gen1), "text/html", "utf-8");

Id appreciate any ideas.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T09:28:40+00:00Added an answer on June 6, 2026 at 9:28 am

    you can copy html and css files in your project assets and load html file from asset to webview like below code:

        WebView wv;  
        wv = (WebView) findViewById(R.id.webView1);  
        wv.setBackgroundColor(0);
        wv.setBackgroundResource(android.R.color.black);
        wv.setWebChromeClient(new WebChromeClient());
        wv.setWebViewClient(new WebViewClient());
        wv.getSettings().setJavaScriptEnabled(true);
        wv.getSettings().setPluginsEnabled(true);
        wv.loadUrl("file:///android_asset/Index_Animation/test.html");
    

    like below screen shot:

    enter image description here

    and refer css in html file below:

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link rel="stylesheet" href="./style.css" type="text/css" media="screen"><!--This line refer the css file-->
    
      </head>
        <body bgcolor="#000000">        
    
                    <div class="col_left">
                        <div class="logo">
                            <div class="circles">
                                <div class="circle"></div>
                                <div class="circle1"></div>
                                <div class="circle2"></div>
                            </div>
                            <center>
                            <img src="./Untitled.png" />
                            </center>
                        </div>
    
                    </div>
    
    </body></html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a working Rails application on version 2.3.5 - I am using many
I am having some problems getting a larger application with many table relationships working
I'm working on an application that consists of many modules, with some having dependencies
An application our company is working on currently displays many rectangle shapes with gradients
I'm currently working on a large and old C++ application that has had many
I have a working application using python and zeromq and I would like to
I've got (working) application done with ttk. It uses self-created module for showing a
I am working on splitting out an existing, working application that I currently have
I have created a blog application using Ruby on Rails and have just added
I am working with multiple databases in a PHP/MySQL application. I have development, testing,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.