INNER CODE UNIT · Kotlin

setContentView

Ayush0Chaudhary/blurr · app/src/main/java/com/blurr/voice/BaseNavigationActivity.kt:24

    override fun setContentView(layoutResID: Int) {
        super.setContentView(R.layout.activity_base_navigation)
        
        // Inflate the child activity's content into the content container
        val contentContainer = findViewById<LinearLayout>(R.id.content_container)
        layoutInflater.inflate(layoutResID, contentContainer, true)
        
        setupBottomNavigation()
    }

    private fun setupBottomNavigation() {
        val currentItem = getCurrentNavItem()
        
        findViewById<LinearLayout>(R.id.nav_triggers).apply {
            setOnClickListener {
                if (currentItem != NavItem.TRIGGERS) {
                    navigateToActivity(com.blurr.voice.triggers.ui.TriggersActivity::class.java, currentItem)
                }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…