Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. <layout xmlns:andr...
  2. <data>
  3. </data>
  4. <include layout="@layout/buttons"></include>
  5. ....
  6.  
  7. <layout xmlns:andr...>
  8. <data>
  9. </data>
  10. <Button
  11. android:id="@+id/button"
  12. ...." />
  13.  
  14. ... binding = DataBindingUtil.inflate...
  15. binding.button; ->cannot resolve symbol 'button'
  16.  
  17. <layout xmlns:andr...>
  18. <data>
  19. <variable name="foo" type="int"/>
  20. </data>
  21. <Button
  22. android:id="@+id/button"
  23. ...." />
  24.  
  25. <layout xmlns:andr...
  26. ...
  27. <include layout="@layout/buttons"
  28. android:id="@+id/buttons"
  29. app:foo="@{1}"/>
  30. ....
  31.  
  32. MainBinding binding = MainBinding.inflate(getLayoutInflater());
  33. binding.buttons.button
  34.  
  35. <layout xmlns:andr...>
  36. <Button
  37. android:id="@+id/button"
  38. ...." />
  39.  
  40. <layout xmlns:andr...
  41. ...
  42. <include layout="@layout/buttons"
  43. android:id="@+id/buttons"/>
  44. ....
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement