March 1st, 2011, 10:40 AM
|
#1 (permalink)
|
|
New Member
Thread Author (OP)
Join Date: Mar 2011
Posts: 1
Device(s):
Carrier: Not Provided
Thanks: 0
Thanked 0 Times in 0 Posts
|
Problem with EditText
Hello everybody I am now beginning to tinker with Android, and I have a problem that is much more simple could not understand why this happening, so come to this problem: The thing is I'm trying to create a text field, but what happens is that I can not visualize it in the emulator and did not understand why because I think it has nothing wrong.
I will show you the code below:
main.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">"
<EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:hint="@string/cptext"/>
</LinearLayout>
strings.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<string name="app_name">HelloAndroid</string>
<string name="cptexto">Digite o Texto</string>
</resources>
I hope you can help me. I await answers.
|
|
|