android(androidx)中的RecyclerView依赖项? [英] RecyclerView dependencies in android(androidx)?
问题描述
我将实现'com.google.android.material:material:1.0.0'
用于RecycleView.在布局中,当我键入回收"时,它会给出androidx.appcompat.app.AlertController$RecycleListView
的建议,这不是我想要的.
I used implementation 'com.google.android.material:material:1.0.0'
for RecycleView. In layout when I'm typing "recycle" it gives suggestion as androidx.appcompat.app.AlertController$RecycleListView
which is not what I want.
即使我键入此androidx.recyclerview.widget.RecyclerView
,它也可以工作,但不会在其中允许使用过的属性(例如id,height,width等).一个月前,它运行良好,就像现在给出了适当的建议一样,它对于RecycleView完全没有显示.有人有解决方案吗?
Even though I'm typing this androidx.recyclerview.widget.RecyclerView
it works but it doesn't let used attributes like id, height, width, etc. inside. It was working fine one month ago like it was giving proper suggestion now it completely not showing for RecycleView. Does anyone has a solution?
推荐答案
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
更新
这是我的build.gradle
中一些库的列表:
Here is a list of some libraries in my build.gradle
:
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'com.google.android.material:material:1.0.0'
implementation 'androidx.vectordrawable:vectordrawable:1.1.0'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
另请参见支持库中的RecyclerView在哪里?和如何为Android L-preview导入RecyclerView
这篇关于android(androidx)中的RecyclerView依赖项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!