Android - DataBinding - How and when the Binding classes will be generated?

后端 未结 18 1733
小蘑菇
小蘑菇 2021-02-03 16:51

DataBinding Guide States

  By default, a Binding class will be generated based on the name of the layout 
file, converting it to Pascal case and suffixing “Bindi         


        
18条回答
  •  执笔经年
    2021-02-03 17:17

    In my case i just enclosed my layout xml in tags and that's it, without adding the data tag, i was successful to generate Data Bindings. Hope this helps.

    
           
    
    

提交回复
热议问题