I've two layouts for diferrent screen size.
Small uses ListView, for large - GridView. Both have same id 
On activity I cast the to AbsListView.
Then I set adapter using setAdapter(new myAdapter), myAdapter extends 
BaseAdapter.
And if my AbsListView is GridView, everything is fine, but if it is ListView 
- then I got exception NoSuchMethodError!
If I cast AbsListView to ListView - then it will work fine too.
How to make it working without injecting cast??

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to