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

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

    When it's not generating the binding class, I restart Android studio. Then the binding class will be generated. Isn't it caused by cache of android studio?

    BTW, if you are using android-apt, please check it. Because it will cause binding class not to be generate.

提交回复
热议问题