Android XML EditText issue (getting error and can't solve it) -


i have code in xml android tutorial app:

<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" >      <edittext         android:layout_width="fill_parent" android:layout_height="wrap_content"         android:id="@+id/etcommands"          android:hint="@string/command"         android:inputtype="textpassword|number"      </edittext>      <button         android:id="@+id/button1"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:text="@string/button" </button>      <textview         android:id="@+id/textview1"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:text="@string/textview"      </textview> 

i'm getting error on line ". apparently, isn't correct way close section according eclipse, correct way? "/>" of ">" show errors.

how fix this?

<edittext     android:layout_width="fill_parent" android:layout_height="wrap_content"     android:id="@+id/etcommands"      android:hint="@string/command"     android:inputtype="textpassword|number"> <!--you forgot add closing bracket here--> </edittext>  <button     android:id="@+id/button1"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:text="@string/button" >   <!--you forgot add closing bracket here--> </button>  <textview     android:id="@+id/textview1"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:text="@string/textview" >   <!--you forgot add closing bracket here--> </textview> 

write layout follows...

<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:orientation="vertical" >      <edittext         android:layout_width="fill_parent" android:layout_height="wrap_content"         android:id="@+id/etcommands"          android:hint="@string/command"         android:inputtype="textpassword|number" />      <button         android:id="@+id/button1"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:text="@string/button" />      <textview         android:id="@+id/textview1"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:text="@string/textview" />  </linearlayout> 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -