Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的应用程序中,我使用 gridview 来显示图像,但我想在图像上显示文本。这可能吗?如果是这样,我该如何实施?
谢谢。
只是给你一个提示。
您一定在这里看过“hello gridview”:http: //developer.android.com/resources/tutorials/views/hello-gridview.html
您只需要在适配器的 getview() 中获取自定义视图(可能是 LinearLayout)而不是 imageview。
希望这有帮助。