Click here to Skip to main content
14,365,424 members
Rate this:
Please Sign up or sign in to 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 :

<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

Rate this:
Please Sign up or sign in to vote.

Solution 1

it should be
LinearLayout
   
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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100