Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I include a external CSS file? #34

Open
ghost opened this issue Jul 20, 2020 · 2 comments
Open

How can I include a external CSS file? #34

ghost opened this issue Jul 20, 2020 · 2 comments

Comments

@ghost
Copy link

ghost commented Jul 20, 2020

@erikeelde @beeequeue @warting @hfreire @bborisovs

Hi,
Sorry for mentioning everyone.
Thanks for making such a wonderful thing.

If I write CSS codes inside the style tag of the head tag, it works fine.
Is there a way to include a CSS file from the project files? Not from an external internet link.
I am pretty new to these things. If this is possible, please teach me a little about the procedure.

Thanks in advance.

@beeequeue
Copy link
Member

beeequeue commented Jul 21, 2020

I'd highly recommend using another library as this doesn't seem to be maintained anymore, and none of the creators work at iZettle anymore.

@erikeelde
Copy link
Contributor

@amibappy it should be quite readily doable to include it from the project files I think? I can't recall the exact syntax needed off the top of my head atm. I think they needed to be included using assets-syntax or something similar - and I'm pretty sure it can be done with the library the way it works today. Did you try making use of WebViewAssetContent by means of targeting your file using "html2bitmap://android_asset/..." to achieve what you want?

@beeequeue I'm not so sure there are terribly many options as it comes to solving this particular problem on android - which in fact is just why we wrote up this library. (The suggestion to use another library may be something of a dead end).

@beeequeue beeequeue reopened this Aug 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants