Android   发布时间:2022-04-28  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了android – 渲染错误;无法解析@ id / search_edit_frame大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我有一个错误,说无法解决@ id / search_edit_frame我不知道为什么,
我尝试了文件>无效缓存>只是重新启动和重新启动 android studio也试图改变我的所有支持的api的渲染版本..
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://scheR_560_11845@as.android.com/apk/res/android"
   myapp="http://scheR_560_11845@as.android.com/apk/res-auto"
   android:layout_width="match_parent"
   android:layout_height="match_parent">
   <android.support.v7.widget.SearchView
      android:id="@+id/svSearch"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:textSize="25sp"
      android:textColor="@color/textDefault"
       myapp="@String/search_hint"
       myapp="false" />
</LinearLayout>

我正在使用Android studio 1.2.2,并确保它编译android.support.v7.widget(AppCompat)

任何帮助将不胜感激..谢谢

解决方法

使用
<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" />

它应该工作

大佬总结

以上是大佬教程为你收集整理的android – 渲染错误;无法解析@ id / search_edit_frame全部内容,希望文章能够帮你解决android – 渲染错误;无法解析@ id / search_edit_frame所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。