Kotlin

Slls
mail@pastecode.io avatar
unknown
kotlin
2 years ago
433 B
1
Indexable
Never
import android.graphics.Color
import android.os.Bundle
import android.view.WindowManager
import androidx.appcompat.app.AppCompatActivity

class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        // Set the navigation bar color to red
        window.setNavigationBarColor(Color.RED)
    }
}