嘗試更改默認導航抽屜的圖標大小,並在每個項目後添加分隔線,但我不明白該如何操作?這是菜單抽屜觀點:更改默認導航抽屜的圖標大小
<group android:checkableBehavior="single">
<item
android:id="@+id/agenda"
android:icon="@drawable/agenda"
android:title="AGENDA"
/>
<item
android:id="@+id/speakers"
android:icon="@drawable/speakers"
android:title="SPEAKERS" />
<item
android:id="@+id/schedule"
android:icon="@drawable/schedule"
android:title="SCHEDULE" />
<item
android:id="@+id/organiser"
android:icon="@drawable/organiser"
android:title="ORGANISER" />
<item
android:id="@+id/partners"
android:icon="@drawable/partner"
android:title="PARTNERS" />
<item
android:id="@+id/event_info"
android:icon="@drawable/eventinfo"
android:title="EVENT-INFO" />
</group>
這是dimens.xml
<resources>
<!-- Default screen margins, per the Android Design guidelines. -->
<dimen name="activity_horizontal_margin">16dp</dimen>
<dimen name="activity_vertical_margin">16dp</dimen>
<!-- Default screen margins, per the Android Design guidelines. -->
<dimen name="nav_header_vertical_spacing">16dp</dimen>
<dimen name="nav_header_height">160dp</dimen>
</resources>
圖標尺寸太小,因爲它看起來非常小,尺寸圖標大小沒有指定...所以在哪裏添加圖標大小? –
你不必定義導航抽屜的圖標大小 –
好的,但我添加它們的圖標看起來太小 –