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.
如何在 Android 中创建自定义布局?我的问题是我在网格视图中显示图像,当用户到达网格视图中的最后一个图像时,它必须显示消息:“单击此处查看更多图像”
你可以用一种简单的方式做到这一点。无需自定义布局。你可以这样做:
OnclickListener: if(position == adapter.getCount - 1){ tellMessage(); }