【问题标题】:when i set icon to drawer menu then the drawer menu become slow in android当我将图标设置为抽屉菜单时,抽屉菜单在 android 中变慢
【发布时间】:2017-03-30 07:40:04
【问题描述】:

我是安卓新手

当我在drawer_menu.xml 代码中设置图标然后当我打开 为什么导航抽屉菜单打开很慢?

如果有人回答过这个问题或曾经遇到过这种类型的 问题然后请回答这个问题。

这是我的 drawer_menu.xml 代码。

<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">


    <group android:checkableBehavior="single">
        <item
            android:id="@+id/home_id"
            android:icon="@drawable/home"
            android:title="Home"></item>

        <item
            android:id="@+id/id_setting"
            android:icon="@drawable/setting"
            android:title="Settings"></item>
    </group>

    <item android:title="Others">
        <menu>
            <item
                android:id="@+id/notifications"
                android:icon="@drawable/noti"
                android:title="Notifications"></item>

            <item
                android:id="@+id/about_us"
                android:icon="@drawable/aboutus"
                android:title="About us"></item>
        </menu>

    </item>

</menu>

【问题讨论】:

    标签: android navigation navigation-drawer android-xml


    【解决方案1】:

    图标的大小是多少? 使用 300*300

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多