问题 While working with ViewBinding I come across few not documented cases. First: How to get binding for included generic view layout parts, main binding see only items in main layout? Second: How to get binding for included merge type layout parts, again main binding see only items in main layout? 回答1: In case of: Include with generic layout (not merge node), we need to assign ID to included part, this way in binding we will have access to included sub part <include android:id="@+id/your_id"