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

后端 未结 18 1736
小蘑菇
小蘑菇 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:23

    If you ever wanted to give your own Binding class name just add class attribute to the data element with class name

    Binding classes may be renamed or placed in different packages by adjusting the class attribute of the data element.

    
        ...
    
    
    
    ...
    
    

提交回复
热议问题