-2
我正在编写CrimeIntent
应用程序Android编程: The Big Nerd Ranch Guide。我有一个渲染问题,当我在LinearLayout
文件片段(fragment_crime.xml
)把一个小部件EditText
。这里是代码在LinearLayout中使用EditText小部件时出现渲染错误
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent">
<EditText android:id="@+id/crime_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/crime_title_hint"/>
</LinearLayout>
我不想改变的主题。
什么样的渲染问题? – fattidare
在xml中没有错误...可能它是android studio中的插件和库加载问题...尝试重新启动它或检查缺少的库和目标..或检查“@ string/crime_title_hint”是否存在在'Strings.xml'资源中。 –
谢谢 你是对的@sourabh我重新启动了Android工作室,它运作良好 –