Android-NestedScrollView中的RecyclerView-如何将指定的适配器位置与给定的偏移量(到NestedScrollView的顶部)?

Android-NestedScrollView中的RecyclerView-如何将指定的适配器位置与给定的偏移量(到NestedScrollView的顶部)?,android,android-recyclerview,android-nestedscrollview,Android,Android Recyclerview,Android Nestedscrollview,我有一个具有结构的片段: <NestedScrollView> <LinearLayout ... android:orientation="vertical" ...> <View> <View> <RecyclerView /> </LinearLayout> </NestedScrollView&

我有一个具有结构的片段:

<NestedScrollView>
    <LinearLayout
        ...
        android:orientation="vertical"
        ...>

        <View>

        <View>

        <RecyclerView />
    </LinearLayout>
</NestedScrollView>

我想把指定的适配器位置和给定的偏移量(在我的情况下,把屏幕顶部)。我不喜欢这篇文章

但这对我不起作用。我认为它使“滚动到位置”而不是“将位置带到顶部”

我想要一个语句,比如
嵌套的ScrollView
的带偏移量的ScrollToposition

请帮帮我。提前谢谢