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.
你好朋友一个问题,比如我可以将以下视图添加到网格视图内的视图中。我正在选择照片,但我希望能够创建一个视图,如下所示,但我不知道如何在照片中添加检查有谁知道我该如何开始?
谢谢
你已经做得很好了。只需按照以下步骤操作。
你可以设置一个前景drawable。
xml:
android:foreground="@drawable/check_bg"
爪哇代码:
mImageView.setForeground(ContextCompat.getDrawable(context, R.drawable.check_bg));