是否将粘性和固定标头添加到Recycler View?

时间:2018-06-28 07:57:36

标签: android android-layout android-recyclerview recyclerview-layout

这是布局的图像和xml。在这里,我希望该团队的ok部分粘滞,而tab部分固定在顶部。我该如何实现?我必须使用协调器布局吗?或者我可以使用ReScroller View的onScrollListeners来做到这一点,并根据滚动位置和滚动状态调整小组的确定部分的高度?如果有人告诉我任何想法,我将不胜感激。

enter image description here

{
  "version": 0.6,
  "generator": "Overpass API 0.7.55.3 9da5e7ae",
  "osm3s": {
    "timestamp_osm_base": "2018-06-28T07:47:01Z",
    "copyright": "The data included in this document is from www.openstreetmap.org. The data is made available under ODbL."
  },
  "elements": [

{
  "type": "node",
  "id": 30223035,
  "lat": 52.2917680,
  "lon": 10.5265481
},
{
  "type": "node",
  "id": 30223039,
  "lat": 52.2894248,
  "lon": 10.5268394
},
{
  "type": "node",
  "id": 268195434,
  "lat": 52.2897618,
  "lon": 10.5267852
},
{
  "type": "node",
  "id": 2314028892,
  "lat": 52.2919739,
  "lon": 10.5265271,
  "tags": {
    "bus": "yes",
    "name": "Rühmer Weg",
    "network": "VRB",
    "operator": "Braunschweiger Verkehrs-GmbH",
    "public_transport": "stop_position",
    "ref": "464"
  }
}
  ]
}

0 个答案:

没有答案