On left side of activity is scrollview of labels, on right side of screen is an imageview. Left side labels are sized so that only one label is visible at the time. My goal is to have the imageview change as the labels are scrolled. Example,
When label1 is visible, image1 displays in the imageview.
As label 1 is scrolled up and out view, lable2 scrolls into view, and imageview changes to image2, etc, etc. The only way I know to do this is to continually monitor scrollviewposition, and use a series of if/thens to set the imageview picture based on scrollview position. This does not produce a smooth scroll, as everytime it moves at all, the scrollviewpositionchanege sub executes and causes the scrolling to be "choppy". Anybody got a better idea? I can't load all of the bitmaps onto the scrollview, as they are large and cause outofmemory errors.
When label1 is visible, image1 displays in the imageview.
As label 1 is scrolled up and out view, lable2 scrolls into view, and imageview changes to image2, etc, etc. The only way I know to do this is to continually monitor scrollviewposition, and use a series of if/thens to set the imageview picture based on scrollview position. This does not produce a smooth scroll, as everytime it moves at all, the scrollviewpositionchanege sub executes and causes the scrolling to be "choppy". Anybody got a better idea? I can't load all of the bitmaps onto the scrollview, as they are large and cause outofmemory errors.