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 Gallery 组件显示 Photogallery,但我想在每个图像下显示描述文本。我能怎么做?我只找到了仅使用图像或仅使用文本的示例。
您可以在图库中放置任何类型的视图。例如,您可以有一个 LinearLayout 结合 ImageView 和 TextView,或者派生 ImageView.onDraw 来绘制文本。