Click here to Skip to main content
15,884,237 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
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 :

HTML
<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>
Posted
Comments
Sergey Alexandrovich Kryukov 24-Oct-14 17:00pm    
Did you know that XML is case-sensitive? :-)
LinearLayout.
—SA

1 solution

it should be
LinearLayout
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 24-Oct-14 17:00pm    
5ed. You could also refer LinearLayout.
—SA
Peter Leow 24-Oct-14 21:50pm    
Thank you, SA.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900