Android 有人能解释一下这个用于GridView的毕加索适配器吗?

Android 有人能解释一下这个用于GridView的毕加索适配器吗?,android,gridview,adapter,Android,Gridview,Adapter,我是android开发的新手,也是Stackoverflow的新手(抱歉,因为这个问题有点不符合规则),所以,我想问一些关于这方面的问题 编辑:我只是自己计算,在“listview.setAdapter”中出现了一个错误 制作android应用程序时,基本文件夹由IDE创建。根据android目录结构,代表应用程序布局的xml文件应位于res->layout文件夹中。根据我的建议,最好是从项目中了解android的概况,而不是直接进入项目。你能再澄清一下你在寻找什么吗?你是在问把xml文件放在哪

我是android开发的新手,也是Stackoverflow的新手(抱歉,因为这个问题有点不符合规则),所以,我想问一些关于这方面的问题

编辑:我只是自己计算,在“listview.setAdapter”中出现了一个错误


制作android应用程序时,基本文件夹由IDE创建。根据android目录结构,代表应用程序布局的xml文件应位于res->layout文件夹中。根据我的建议,最好是从项目中了解android的概况,而不是直接进入项目。

你能再澄清一下你在寻找什么吗?你是在问把xml文件放在哪里?你到底想要什么?谢谢你的回答。我刚刚编辑了问题,你需要初始化你的listview,比如listview=(listview)findViewById(R.id.listview);
public class UsageExampleAdapter extends AppCompatActivity {
public static String[] eatFoodyImages = {
        "http://i.imgur.com/rFLNqWI.jpg",
        "http://i.imgur.com/C9pBVt7.jpg",
        "http://i.imgur.com/rT5vXE1.jpg",
        "http://i.imgur.com/aIy5R2k.jpg",
        "http://i.imgur.com/MoJs9pT.jpg",
        "http://i.imgur.com/S963yEM.jpg",
        "http://i.imgur.com/rLR2cyc.jpg",
        "http://i.imgur.com/SEPdUIx.jpg",
        "http://i.imgur.com/aC9OjaM.jpg",
        "http://i.imgur.com/76Jfv9b.jpg",
        "http://i.imgur.com/fUX7EIB.jpg",
        "http://i.imgur.com/syELajx.jpg",
        "http://i.imgur.com/COzBnru.jpg",
        "http://i.imgur.com/Z3QjilA.jpg",
};

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    setContentView(R.layout.activity_usage_example_adapter);

    listView.setAdapter(new ImageListAdapter(UsageExampleAdapter.this, eatFoodyImages));
}
}