Ramotion / garland-view-android

:octocat: ≡ GarlandView seamlessly transitions between multiple lists of content. Made by @Ramotion
https://www.ramotion.com/garland-view-android/
MIT License
1.83k stars 254 forks source link

Missing classes in library: `DataBindingUtil` #13

Closed DevLucem closed 5 years ago

DevLucem commented 6 years ago

https://github.com/Ramotion/garland-view-android/blob/6f8a3485577e7a178e94b4d84f3abee647359249/garland-view-example/src/main/java/com/ramotion/garlandview/example/main/inner/InnerAdapter.java#L21

This is a great library 👍 👍 👍

I can't find the import of the following classes InnerItemBinding ActivityDetailsBinding ActivityProfileBinding DetailsItemBinding

Is there a missing dependency? or omitted file?

HitRoxxx commented 6 years ago

Enable data binding in app build gradle

dataBinding { enabled = true }

firatcetiner commented 5 years ago

How this issue closed? InnerItemBinding does not exist.

golovin47 commented 5 years ago

If you've done what @HitRoxxx said and you have InnerItemBinding class in one of com folders in generatedJava folder, than you can import it manually to the place where this class is being used. Otherwise try rebuild your project or sync your gradle.

firatcetiner commented 5 years ago

I did that already, but where is the implementation for InnerItemBinding?

golovin47 commented 5 years ago

It should be generated automatically in folder: generatedJava->com (one of those)

firatcetiner commented 5 years ago

Okay. The problem is that it doesn't generate the class at all.

golovin47 commented 5 years ago

Try to run garland-view-example. If it works properly, then this issue related to your implementation.

firatcetiner commented 5 years ago

I'll try that and share the result. Thanks a lot.

firatcetiner commented 5 years ago

The issue was related to my false/incomplete implementation.