You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
StickyListHeadersListView has build error with AA 4.1.0 #1845
When i have an object which like:
@ViewById
StickyListHeadersListView lvStickyList;
and then i set it ItemClick as below:
@ItemClick(R.id.lvStickyList)
void itemClick(int position) {
It will cause build error as
error: incompatible types: StickyListHeadersListView cannot be converted to AdapterView
((AdapterView ) this.lvStickyList).setOnItemClickListener(new OnItemClickListener() {
...
Maybe it is a side effect by #1785 Cast views to the required type when adding callbacks.
Any solution for this? Thx.
Well, after i traced the source code of AA, i think it is very hard to support customize view gracefully...
But so many projects used third-party customize view, so if you make sure AA doesn't support it,
maybe should be written in 4.1 documents or use instanceof to check these views could cast to AdapterView or not.
I am closing this one, as i think we should put effort into supporting some ListView-ish classes, as development moved to the much robust RecyclerView class.
Hi AA team,
I found AA 4.1 has build error with lib:StickyListHeaders and it works fine when AA 4.0.
soucrce:https://github.com/emilsjolander/StickyListHeaders
When i have an object which like:
@ViewById
StickyListHeadersListView lvStickyList;
and then i set it ItemClick as below:
@ItemClick(R.id.lvStickyList)
void itemClick(int position) {
It will cause build error as
error: incompatible types: StickyListHeadersListView cannot be converted to AdapterView ((AdapterView ) this.lvStickyList).setOnItemClickListener(new OnItemClickListener() {
...
Maybe it is a side effect by #1785 Cast views to the required type when adding callbacks.
Any solution for this? Thx.