Android Data binding - Error:(119, 29) Identifiers must have user defined types from the XML file. main_radio_subscribe is missing it

前端 未结 3 1601
轻奢々
轻奢々 2021-01-07 21:16

I been trying to control the visibility of a view using the Implicit Attribute Listeners(reference) in android data binding which allows to access views by id and access at

3条回答
  •  生来不讨喜
    2021-01-07 21:24

    As you use View.VISIBLE / View.GONE in your .xml file, you should import the View type by doing adding in the data section like the following:

    
        
    
        
    
    

提交回复
热议问题