如何使用GridView控件V7 Android Studio中? [英] How to use GridView V7 in Android Studio?
本文介绍了如何使用GridView控件V7 Android Studio中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想使用的GridView V7 Android Studio中。我已经添加GridLayoutV7的机器人Studio项目一个jar文件,但在的源文件我无法导入网格
i am trying to use Gridview v7 in Android Studio. i have added a jar file of GridLayoutV7 in android Studio project , but in Source file i cannot import the Grid
进口android.support.v7.widget.GridLayout;
import android.support.v7.widget.GridLayout;
如何解决它?
推荐答案
添加以下code中的build.gradle:
Add the following code in build.gradle:
dependencies {
compile "com.android.support:gridlayout-v7:18.0.+"
}
这篇关于如何使用GridView控件V7 Android Studio中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文