2016-06-14 164 views
0

你好,大家好我在Android中使用RecyclerView併成功實施,現在我想添加滾動條,所以我的XML代碼滾動條的RecyclerView使用

<android.support.v7.widget.RecyclerView android:id="@+id/thumb_grid" android:layout_width="match_parent" android:scrollIndicators="start" android:scrollbarSize="59dp" android:scrollbarThumbVertical="@mipmap/photos_selected" android:scrollbars="vertical" android:layout_height="match_parent" android:layout_margin="10dp" />

現在滾動條顯示,但我想,當我們按下滾動條圖像並移動到頂部,這樣屏幕應該也滾動並且相同,以便向下滾動到滾動條圖像,但它不起作用。

+0

有這個沒有默認的實現。您可以使用[this](https://android-arsenal.com/details/1/2673)庫。 –

回答