我在Android中使用Scrollview时出现错误的原因 [英] Why I Get Error When I Use Scrollview In Android
本文介绍了我在Android中使用Scrollview时出现错误的原因的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
我想在android中创建一个程序。
当我使用ScrollView我得到这样的错误:
错误膨胀类LinearLayout ......
我该怎么办?
这是我的代码:
Hi
i want to make a program in android .
when i use ScrollView i get an error like this :
"Error inflating class LinearLayout..."
what should i do ?
this is my code :
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<linearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
</linearLayout>
</ScrollView>
推荐答案
它应该是
it should be
LinearLayout
这篇关于我在Android中使用Scrollview时出现错误的原因的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文