Skip to content

Commit

Permalink
Added background and prolonged delay of showing ui
Browse files Browse the repository at this point in the history
  • Loading branch information
diareuse committed Nov 18, 2023
1 parent ba1569a commit b499e88
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class MainActivity : ComponentActivity() {
installSplashScreen()
super.onCreate(savedInstanceState)
var isReady = false
Handler(Looper.getMainLooper()).postDelayed(500) { isReady = true }
Handler(Looper.getMainLooper()).postDelayed(2000) { isReady = true }
val content = findViewById<View>(android.R.id.content)
content.viewTreeObserver.addOnPreDrawListener(
object : ViewTreeObserver.OnPreDrawListener {
Expand Down
7 changes: 7 additions & 0 deletions app-wear/src/main/res/drawable/splash_screen.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:width="80dp"
android:height="80dp">
<shape android:shape="oval">
<solid android:color="@color/ic_launcher_background" />
</shape>
</item>
<item
android:width="80dp"
android:height="80dp"
Expand Down

0 comments on commit b499e88

Please sign in to comment.