I have implemented my custom Gallery
using custom views instead of pictures.
Reference was http://www.programmingmobile.com/2011/08/android-tutorial-gallery-view-without.html
However now that I have about 8 custom views, containing complex layouts with lots of texts.
Problem is that the performance is very poor, I cache the views but scrolling is not smooth. With newer devices and tablets it's ok, but is there some hints how to add performance for older devices? I considered making views bitmaps, but they have a lot pressed/not pressed drawables + the text content changes quite frequently.
Simply my adapters getView is like this, almost all the time it returns cached view, but scrolling is not smooth, might me rendering issue of the views?
@Override
public View getView(final int position, View convertView, ViewGroup parent) {
View cachedView = cachedViews.get(position);
if (cachedView != null) {
return cachedView;
}
// Else inflate view etc.
}