Added $=sats to main script, css styling changes, trying to add logo to the left of the price, logo added in assets-images
This commit is contained in:
parent
05104acbe9
commit
eb8ac849a0
@ -26,6 +26,7 @@ class MainActivity : AppCompatActivity() {
|
||||
|
||||
// Load the HTML content from the "index.html" file
|
||||
val htmlContent = try {
|
||||
// Load the HTML content from the "index.html" file
|
||||
assets.open("index.html").bufferedReader().use { it.readText() }
|
||||
} catch (e: IOException) {
|
||||
e.printStackTrace()
|
||||
@ -52,17 +53,17 @@ class MainActivity : AppCompatActivity() {
|
||||
}
|
||||
|
||||
// Combine the HTML, CSS, and JavaScript code
|
||||
val finalHtmlContent = """
|
||||
<html>
|
||||
<head>
|
||||
val finalHtmlContent = """
|
||||
<html>
|
||||
<head>
|
||||
<style type="text/css">$cssCode</style>
|
||||
</head>
|
||||
<body>
|
||||
</head>
|
||||
<body>
|
||||
$htmlContent
|
||||
<script>$javaScriptCode</script>
|
||||
</body>
|
||||
</html>
|
||||
""".trimIndent()
|
||||
</body>
|
||||
</html>
|
||||
""".trimIndent()
|
||||
|
||||
webView.loadDataWithBaseURL(null, finalHtmlContent, "text/html", "UTF-8", null)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user