简体   繁体   English

gridview滚动时如何滚动Imageview

[英]How to scroll an Imageview when gridview scroll

在此处输入图片说明

I have one imageview & one gridview in my layout. 我的布局中有一个imageview和一个gridview。

What I am need, 我需要的是

If I scroll the gridview up, I want to scroll this imageview also? 如果我向上滚动gridview,是否也要滚动此imageview? How can I achieve this.. 我该怎么做到..

I don`t need full answer..I want some direction & guidelines only. 我不需要完整的答案。我只需要一些指导和指导。

You want to hide the image as the grid view scrolls, correct? 您想在网格视图滚动时隐藏图像,对吗? You could use the onScrollListener of the GridView and change the position of the image (move it towards the top edge) and expand the height of the grid view at the same time. 您可以使用GridView的onScrollListener并更改图像的位置(将其移到顶部边缘)并同时扩展网格视图的高度。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM