From eb8ac849a0506eef2cda9b44caaa9a5a32bd1311 Mon Sep 17 00:00:00 2001 From: 0ceanSlim <89587889+0ceanSlim@users.noreply.github.com> Date: Sat, 29 Jul 2023 20:55:06 -0400 Subject: [PATCH] Added $=sats to main script, css styling changes, trying to add logo to the left of the price, logo added in assets-images --- .../com/example/satsmonitor/MainActivity.kt | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/app/src/main/java/com/example/satsmonitor/MainActivity.kt b/app/src/main/java/com/example/satsmonitor/MainActivity.kt index c02e5ba..040ca3f 100644 --- a/app/src/main/java/com/example/satsmonitor/MainActivity.kt +++ b/app/src/main/java/com/example/satsmonitor/MainActivity.kt @@ -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 = """ - -
- - - - $htmlContent - - - - """.trimIndent() +val finalHtmlContent = """ + + + + + + $htmlContent + + + +""".trimIndent() webView.loadDataWithBaseURL(null, finalHtmlContent, "text/html", "UTF-8", null) }