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.
我期待从 ImageView 访问当前图像的 Uri 的方法,以将其保存到我的数据库中,但我只找到了 setter。
吸气剂在哪里??
没有吸气剂。由于您是调用者setImageURI(),请在调用该方法时将 保存Uri到数据库中。
setImageURI()
Uri
请记住,ImageViews并不总是有一个Uri(例如,可绘制资源、生成的位图),这就是没有 getter 的原因。
ImageViews