Sometimes when my widget is updating I see in log that:
..
getViewAt position = 7
getViewAt position = 7 ..
And at first time RemoteViews object is placed on position 0 at second time on position 7. Why this is happening? Why it call object with id 7 but place it on position 0?
答:在ListView中,您不能设置高度wrap_context,因为如果您有10、20、100或更多元素,则视图不知道它是什么。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.