-
Notifications
You must be signed in to change notification settings - Fork 20
Homework d954mas Dima Popov #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| @Override | ||
| public void loadCollage(List<String> urls, ImageView imageView) { | ||
|
|
||
| public void loadCollage(List<String> urls, ImageView imageView, String key) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Надо убрать key из интерфейса
Можно класть в view.setTag
к тому же ты отменяешь операцию еще и в адаптере, тоже надо убрать
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
key убрал. Проблема в том что ImageTarget ничего не знает о View и я немогу вытащить tag, чтобы отменить загрузку битмапов. Я сделал мапу <ImageTarget,LoadBitmapsCallback>, чтобы отменять загрузку если она уже есть для ImageTarget, но по моему так все равно плохо.
1)Collage
-изображения грузятся в разных поток
-изображения склеиваются в разных потоках
-коллаж формируется если изображение больше 4.
2)CriticalSections
1)Используются 2 хендлера(main и delayed. delayed для отложенных задач он постит в main)
2)Хендлеры хранят список TaskRunnble, чтобы было возможно удалить таску
3)При скроле ресайклера с жанрами, imageView не сетит битмап