【发布时间】:2016-09-01 07:52:54
【问题描述】:
使用 RecyclerView 显示来自 JSON 的数据,每个 Recycler Item 都包含一个 Image,几个 TextViews
但是每当我运行我的应用程序时,我都会得到 RecyclerView 列表,但没有得到其中的内容和图像。
可能是什么原因?
proguard-rules.pro:
-dontwarn okio.**
-dontwarn retrofit.**
-keep class retrofit.** { *; }
-keepclassmembers,allowobfuscation interface * {
@retrofit.http.** <methods>;
}
-dontwarn com.squareup.okhttp.**
-keepattributes Signature
【问题讨论】:
-
你检查列表适配器是否包含数据?
-
是的,它包含数据
-
你能发布你的适配器吗?
-
我确定这与您的 proguard 或签名无关。检查适配器的构造函数( show Toast )并查看数据是否到达您的适配器。
-
对毕加索、支持库和你在proguard中使用过的其他库应用规则
标签: android android-studio layout android-recyclerview apk