New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for customizing AdapterView's item presentation model and item layout per item data #230

Closed
wants to merge 2 commits into
base: develop
from

Conversation

Projects
None yet
4 participants
@derron

derron commented Aug 27, 2015

No description provided.

dhu
Add support for customizing AdapterView's item presentation model and…
… item layout per item data.

Change-Id: Iddca6124099dd2d422447a6b8cd4ff9dabdbccb8
@weicheng113

This comment has been minimized.

Member

weicheng113 commented Aug 27, 2015

@derron , Your effort is greatly appreciated. Could you please attach a demo under your github account to explain what you are trying to achieve and how will users use the feature? Please let me know once it is ready so that i can check it out. I hope your effort can benefit more users. Thanks a lot.

Cheng

dhu
Add code generation support for item factory method return ItemPresen…
…tationModel interface

Change-Id: I2cabca472ede5a9b9ab7f06ebd62d6079fba56cf
@derron

This comment has been minimized.

derron commented Aug 28, 2015

@weicheng113 I have added a new commit to support code generation.
And here is my demo for the feature:
derron/RoboBinding-album-sample@bd40ab0

@chzhong

This comment has been minimized.

chzhong commented Aug 28, 2015

I've downloaded this patch and it works fine in my project.
Hope it could be integrated into the official release asap.

@weicheng113

This comment has been minimized.

Member

weicheng113 commented Aug 28, 2015

@derron , Thanks a lot. I will have a look and get back to you. @chzhong , Yes, will do.

@weicheng113

This comment has been minimized.

Member

weicheng113 commented Aug 28, 2015

Hi @derron and @chzhong , I had a quick look at the demo. This is a great effort. The feature you are trying to implement is actually #179. Based on @derron 's effort, i would like to invite you two to the discussion in #179, so that we can discuss at a single place. I have added a potential way to simplify the implementation. Hopefully, we can finalize it soon.

@weicheng113

This comment has been minimized.

Member

weicheng113 commented Oct 11, 2015

This is done in #179. Thanks for @derron 's great effort, which results in the implementation of #179.

@JohnnyTwoShoes

This comment has been minimized.

JohnnyTwoShoes commented Dec 9, 2015

Hi,

I'm getting the error:
Error:Execution failed for task ':app:compileDebugJavaWithJavac'.

java.lang.NoSuchMethodError: com.google.common.collect.Sets.newHashSet(Ljava/lang/Iterable;)Ljava/util/HashSet;

Please help!!!

Here are my two build.gradle files ( top level and app level):
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
repositories {
jcenter()
maven() {
name 'RoboBinding AspectJPlugin Maven Repository'
url "https://github.com/RoboBinding/RoboBinding-aspectj-plugin/raw/master/mavenRepo"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4'
classpath 'org.robobinding:aspectj-plugin:0.8.4'

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}

}

allprojects {
repositories {
jcenter()
}
}

//app level:
apply plugin: 'com.android.application'
apply plugin: 'com.neenbedankt.android-apt'
apply plugin: 'org.robobinding.android-aspectj'

android {
compileSdkVersion 23
buildToolsVersion "23.0.2"

defaultConfig {
    applicationId "com.example.xx.myapplicationdummy2"
    minSdkVersion 18
    targetSdkVersion 23
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

}
ext {
robobindingVersion = 'latest.integration'
//RoboBinding 0.8.6 is out.
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:design:23.1.1'

compile("org.robobinding:robobinding:$robobindingVersion:with-aop-and-dependencies") {
    exclude group: 'com.google.guava', module: 'guava'
}
aspectPath("org.robobinding:robobinding:$robobindingVersion:with-aop-and-dependencies") {
    exclude group: 'com.google.guava', module: 'guava'
}
apt "org.robobinding:codegen:$robobindingVersion"



apt 'com.raizlabs.android:DBFlow-Compiler:2.2.1'
compile "com.raizlabs.android:DBFlow-Core:2.2.1"
compile "com.raizlabs.android:DBFlow:2.2.1"

}

@JohnnyTwoShoes

This comment has been minimized.

JohnnyTwoShoes commented Dec 9, 2015

also why does rebuild project succeed but the run fails?? Here is the rebuild project output:
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72311Library UP-TO-DATE
:app:prepareComAndroidSupportDesign2311Library UP-TO-DATE
:app:prepareComAndroidSupportRecyclerviewV72311Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42311Library UP-TO-DATE
:app:prepareComRaizlabsAndroidDBFlow221Library UP-TO-DATE
:app:prepareDebugDependencies
:app:compileDebugAidl
:app:compileDebugRenderscript
:app:generateDebugBuildConfig UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources
:app:mergeDebugResources
:app:processDebugManifest
:app:processDebugResources
:app:generateDebugSources
:app:preDebugAndroidTestBuild UP-TO-DATE
:app:prepareDebugAndroidTestDependencies
:app:compileDebugAndroidTestAidl
:app:processDebugAndroidTestManifest UP-TO-DATE
:app:compileDebugAndroidTestRenderscript
:app:generateDebugAndroidTestBuildConfig UP-TO-DATE
:app:generateDebugAndroidTestAssets UP-TO-DATE
:app:mergeDebugAndroidTestAssets UP-TO-DATE
:app:generateDebugAndroidTestResValues UP-TO-DATE
:app:generateDebugAndroidTestResources
:app:mergeDebugAndroidTestResources
:app:processDebugAndroidTestResources
:app:generateDebugAndroidTestSources

BUILD SUCCESSFUL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment