rendering error; couldn't resolve @id/search_edit_frame

非 Y 不嫁゛ 提交于 2019-12-05 01:37:57

Use

 <SearchView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:id="@+id/searchView"
    android:iconifiedByDefault="true"
    android:queryHint="Search"
    android:layout_centerHorizontal="true" />

it should work

Nan

First, you can search @id/search_edit_frame in all your xml file to check where it comes from.

Second, if you are sure that there is no @id/search_edit_frame in your xml, then you can try to delete all files in your Build folder.

Try to clean your project also.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!