在AutocompleteTextView
第一线我要添加namespace..but它给我的错误一样tag name is not closed
......或者说如何添加此命名空间..标签未关闭
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin"
tools:context="com.nxtstepzedu.nxtstepz.nxtstepz.S1Activity"
android:orientation="vertical">
<schemas.android.com/apk/res/android".InstantAutoComplete
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/atcatogory"
android:textColor="#000000"
android:hint="Search for gym etc..."/>
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="IN"
android:textSize="25sp"
android:layout_marginTop="20sp"/>
<AutoCompleteTextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/atlocation"
android:textColor="#000000"
android:layout_marginTop="10sp"
android:hint="Search for locations..." />
</LinearLayout>
,但它告诉我添加的命名空间,然后自定义类的名字,我没有,但它给人的错误..“标签未关闭”。 –
首先所有这些都确保您的XML已经过适当的验证元素或空格,但它也没有匹配的引号数。 –
openshac
thanx解决方案..这个建议为我工作.. –