我有一个基于菜单项的导航抽屉。我想在导航抽屉里面找到Scrollview。
我的导航抽屉:
<android.support.design.widget.NavigationView
android:id="@+id/nav_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbars="none"
app:headerLayout="@layout/header_nav"
app:menu="@menu/main_drawer"
android:layout_gravity="right"
app:itemTextAppearance="@style/NavigationDrawerStyle">
项:
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<item
android:id="@+id/action_logout"
android:orderInCategory="100"
android:title="@string/nav_hesab_karbari"
app:showAsAction="never" />
<item
android:id="@+id/nav_wallet"
android:icon="@drawable/ic_wallets"
android:title="@string/nav_kif">
</item>
<item
android:id="@+id/nav_messages"
android:icon="@drawable/ic_messages"
android:title="@string/nav_payamha"/>