Error:Execution failed for task ':laMusique2May2016:javaPreCompileRelease'.
> Annotation processors must be explicitly declared now. The following dependencies on the compile classpath are found to contain annotation processor. Please add them to the annotationProcessor configuration.
- auto-value-1.1.jar (com.google.auto.value:auto-value:1.1)
Alternatively, set android.defaultConfig.javaCompileOptions.annotationProcessorOptions.includeCompileClasspath = true to continue with previous behavior. Note that this option is deprecated and will be removed in the future.
See https://developer.android.com/r/tools/annotation-processor-error-message.html for more details.
Run Code Online (Sandbox Code Playgroud)
我看到了这个问题,但问题是auto-value-1.1.jar不在我的gradle文件中
大家好我想在列表视图中突出显示多个项目.
所以我试过SngList.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);但它没有帮助
我正在使用自定义适配器并进行扩展 BaseAdapter
我使用ListView而不是AbsListView
我不想使用CAB,因为它与我的应用程序的设计不太一致
我也不想使用getView适配器的方法.
我也不想使用复选框,我想我会为每个项目使用布尔值并将其传递给getviews我,如果我在这里没有得到解决方案,但这似乎并不太优雅和整洁.我相信有一种适当的内置方式可以在不使用getview()适配器的情况下完成
我试过了:
android:drawSelectorOnTop="false"
android:listSelector="@android:color/darker_gray"
Run Code Online (Sandbox Code Playgroud)
在xml中,它只突出显示其中一个项目,一旦我点击另一个项目,它会突出显示它...
那么有没有正确的方法呢?
以下是我的应用的外观:

我正在使用Collections.shuffle(list);
洗牌列表,但我不知道如何取消洗牌?我正在考虑在洗牌之前保存列表然后将其洗牌以便维护备份并且可以在需要时重新恢复,但这似乎效率低下这样做的方式,将占用时间和记忆....如果你知道一个更合乎逻辑的方式,你能详细说明吗?顺便说一句,这是我的应用程序的样子:D

