私のアプリでは、下部に画像とリストビューを含むアクティビティがあります。以下は、アクティビティで行うべきことです。
1. the image view at the top of the page must be of swipe type to show other images.
2. when the list view gets scrolled the image must get moved along with it.
3. in the same activity i have a button, when the button is clicked the image must be switcher over to be a mapview.
私がやったことは、
1. I have the image view and mapview in view switcher of a separate layout named as header
2. The header layout is been added in the list view header part.
これで、リストビューがスクロールされている間、ヘッダー部分も一緒にスクロールされます。ビューが切り替わるのと同じように、画像ビューとマップビューを切り替えることができます。しかし、地図は固定されているようで、移動してさまざまなポイントを見ることができません
リストビューヘッダーのマップビュー内を移動する方法。