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.
我正在寻找一些解决方案来突出显示列表视图中的某些行。在我的自定义Adapter方法中getView(),我正在进行一些数据比较,如果它给了我真实的我想突出显示该行但只是一小段时间。它可能会改变背景颜色一段时间并恢复正常状态。有什么建议么?
Adapter
getView()
我会使用一个Handler链接到 UI 线程并postDelayed在短时间内持续更新突出显示。延迟持续时间实际上是高光颜色衰减的帧速率。
Handler
postDelayed