I have a display screen that has more items than will fit. I would like to make it scrollable
but cant figure out the XML. I have below code
<?xml version="1.0" encoding="utf-8"?>
<ScrollView android:id="@+id/scrollView1"
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="fill_parent"
android:orientation="vertical" >
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Auto Settings"
android:textAppearance="?android:attr/textAppearanceLarge" />
//more items
</LinearLayout>
</ScrollView>
It throws an error at the first linear layout. What am I doing wrong?
It’s plain XML syntax error. Terminate your
ScrollViewtag with>.