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 应用程序 Tft。
我从这个 URL 下载了封面流示例:Android Coverflow Widget
我想在该列表中的所有图像下方放置文本。我怎样才能做到这一点?
我也面临与coverflow小部件相同的问题。
经过一番研究,想出了一个使用canvas.drawText()方法的解决方案。
canvas.drawText()
添加canvas.drawText(String, origin-x, origin-y, paint)绘制反射图像的方法。
canvas.drawText(String, origin-x, origin-y, paint)
例如:canvas.drawText("helloo", 10, 10, new Paint())
canvas.drawText("helloo", 10, 10, new Paint())