Skip to content

Instantly share code, notes, and snippets.

Avatar
📲

David Duarte 0rp3u

📲
  • Lisbon
View GitHub Profile
@0rp3u
0rp3u / BottomNavigationView.kt
Created Mar 18, 2020
setup bottomNav with custom default destination
View BottomNavigationView.kt
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import androidx.annotation.IdRes
import androidx.navigation.NavController
import androidx.navigation.NavDestination
import androidx.navigation.NavOptions
import androidx.navigation.ui.R
import com.google.android.material.bottomnavigation.BottomNavigationView
import java.lang.ref.WeakReference
You can’t perform that action at this time.