gpt4 book ai didi

android - 运行时异常 : Failed to resolve attribute at index 6

转载 作者:行者123 更新时间:2023-11-29 14:13:26 24 4
gpt4 key购买 nike

<分区>

我有一个位于 fragment 中的按钮。当我点击按钮时,它应该显示一个弹出菜单。但事实并非如此。

这些是我的错误信息:

E/AndroidRuntime: FATAL EXCEPTION: main Process: com.ias.caniasandroid, PID: 22823 java.lang.RuntimeException: Failed to resolve attribute at index 6 at android.content.res.TypedArray.getLayoutDimension(TypedArray.java:603) at android.view.ViewGroup$LayoutParams.setBaseAttributes(ViewGroup.java:6473) at android.view.ViewGroup$MarginLayoutParams.(ViewGroup.java:6641) at android.widget.FrameLayout$LayoutParams.(FrameLayout.java:741) at android.widget.FrameLayout.generateLayoutParams(FrameLayout.java:685) at android.widget.FrameLayout.generateLayoutParams(FrameLayout.java:62) at android.view.LayoutInflater.inflate(LayoutInflater.java:492) at android.view.LayoutInflater.inflate(LayoutInflater.java:414) at android.support.v7.view.menu.MenuPopupHelper$MenuAdapter.getView(MenuPopupHelper.java:374) at android.support.v7.view.menu.MenuPopupHelper.measureContentWidth(MenuPopupHelper.java:223) at android.support.v7.view.menu.MenuPopupHelper.tryShow(MenuPopupHelper.java:157) at android.support.v7.view.menu.MenuPopupHelper.show(MenuPopupHelper.java:129) at android.support.v7.widget.PopupMenu.show(PopupMenu.java:216)

我的菜单 XML 文件:

<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">

<item
android:id="@+id/login_menu_new_item"
android:orderInCategory="100"
android:title="@string/new_ias"
app:showAsAction="ifRoom|withText" />
<item
android:id="@+id/login_menu_edit_item"
android:orderInCategory="100"
android:title="@string/edit"
app:showAsAction="ifRoom|withText" />
<item
android:id="@+id/login_menu_delete_item"
android:orderInCategory="100"
android:title="@string/delete"
app:showAsAction="ifRoom|withText" />
</menu>

我该如何解决这个问题?

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com