I am trying to create a login screen as shown below: 
If the field name is displayed in the field itself. I am using the ADT plugin in Eclipse. I tried to set the android:text attribute for android:text input, but I donβt think itβs right, because only dots (edited text) are displayed in the password field, not the text itself. Then what attribute. I looked at the documentation for the EditText widget .
Currently XML for two EditText fields:
<EditText android:layout_width="fill_parent" android:layout_height="wrap_content" android:id="@+id/editText1" android:inputType="textEmailAddress" android:text="@string/username"> <requestFocus></requestFocus> </EditText> <EditText android:layout_width="fill_parent" android:layout_height="wrap_content" android:id="@+id/editText2" android:inputType="textPassword" android:text="@string/password" ></EditText>
source share