Hannes Dorfmann
Hannes Dorfmann
Tried to get the path to the folder containing the project with: ``` java private String getExecutionPath() throws UnsupportedEncodingException { String path = AnnotatedAdapterProcessor.class.getProtectionDomain() .getCodeSource() .getLocation() .getPath(); String decodedPath =...
Thanks, good idea! That looks really promising! ``` groovy android { sourceSets { main { manifest.srcFile 'AndroidManifest.xml' java.srcDirs = ['src'] res.srcDirs = ['res'] } } } ``` I guess that...
Awesome! Thanks! I will try that tomorrow!
But what if you want to use AnnotatedAdapter within a android library project? The layoutfiles will be somewhere in `build/generated/intermediates/library-package-name/res/` But I guess to getting started we could say: Use...
Somewhere in the android gradle plugin documentation site is described how to get the path for the resource folder, but at the end you have to pass this path to...
what do you mean with "to my annotation processor?". This feature is not implemented yet in AnnotatedAdapter. Are you going to implement your own annotation processor? andbrain [email protected] schrieb am...
You have to override `getSupportedOptions()` in your annotation processor. Like this: https://github.com/sockeqwe/fragmentargs/blob/master/processor/src/main/java/com/hannesdorfmann/fragmentargs/processor/ArgProcessor.java#L107 Then with android apt plugin you can do something like this: ``` groovy apt { arguments { resPath...
Doable somehow, even if there would be some things to consider like how do you register your interface annotated viewtype to your adapter etc. Originally I thought that the `@ViewField`...
I haven't had time yet to have a deep look at data binding for adapters, but my understanding is that is makes creating ViewHolders useless (there is something called `BindingHolder`...
Ah thanks, good to know. I will wait until a final 1.0.0 release of data binding and then I will see what is possible and whether it makes sense or...