Question: What is a fundamental difference between using a view binding in an Activity and using a view binding in a Fragment? Activity binding uses a
What is a fundamental difference between using a view binding in an Activity and using a view binding in a Fragment?
Activity binding uses a backing property that is assigned to null in onDestroyView
Fragment binding requires a cast to the actual type of each View
There are no differences
Fragment binding uses a backing property that is assigned to null in onDestroyView
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
