简体   繁体   English

使GridView的第一行不可滚动

[英]Make top row of GridView non-scrollable

I have a GridView of 9 rows of which the first one is sort of "header" row. 我有9行的GridView,其中第一个是“标题”行。

As there are 8 more rows they flow beyond the end of screen and need to be scrolled down to. 由于又有8行,它们越过屏幕的末端,需要向下滚动到。 However this scrolling also causes the first row to go "off-screen". 但是,此滚动也会导致第一行进入“屏幕外”状态。

Was wondering if there is any way I can prevent the first row alone from being scrolled off? 想知道是否有什么办法可以防止仅第一行被滚动?

I dont want to make this a separate LinearLayout as it is part of a dynamic View (the GridView) that I create at runtime. 我不想使它成为单独的LinearLayout,因为它是我在运行时创建的动态视图(GridView)的一部分。

TIA TIA

Was wondering if there is any way I can prevent the first row alone from being scrolled off? 想知道是否有什么办法可以防止仅第一行被滚动?

Not that I am aware of, sorry. 并非我所知,对不起。

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

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