ViewBindingDelegate | Simple one-liner ViewBinding | Android library
kandi X-RAY | ViewBindingDelegate Summary
kandi X-RAY | ViewBindingDelegate Summary
Simple one-liner ViewBinding in Fragments and Activities with Kotlin Simplify usage of Android View Binding with Kotlin Property Delegates and solve behavior of Fragment’s ViewLifecycleOwner ViewBindingPropertyDelegate
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ViewBindingDelegate
ViewBindingDelegate Key Features
ViewBindingDelegate Examples and Code Snippets
Community Discussions
Trending Discussions on ViewBindingDelegate
QUESTION
Currently I'm developing an Android app, in which I would like to utilize both Android Navigation Component
and BottomNavigationView
.
While working on said app I checked out the official codelab and several questions here, but they didn't prove to be of any help.
The problem is that assigning navController
to my BottomNavigationView
does not seem to have any effect - clicking on menu items does not affect the navigation host.
My code:
main_activity.xml
...ANSWER
Answered 2021-Jul-31 at 22:25Here are the concerns that need to be fixed:
- You are using
ViewBindingDelegate
which automatically handles thesetContentView
, so you need to remove this, as you won't be able to usebinding.xx
in this case:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ViewBindingDelegate
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page