Go Back   Android Forums > Android Development > Application Development
Application Development Dev lounge for our application developers.

New Forums: Nexus 6 | Nexus Player | Nexus 9
test: Reply
 
LinkBack Thread Tools
Old 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
Unhappy 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.

Advertisements
Fischer is offline  
Reply With Quote
sponsored links
Old March 2nd, 2011, 03:34 AM   #2 (permalink)
Member
 
Join Date: Dec 2010
Location: Aarhus, Denmark
Posts: 136
 
Device(s): SE Xperia X10
Carrier: Not Provided

Thanks: 2
Thanked 22 Times in 22 Posts
Default

If that is code snapped directly from your code, you are either missing an "o" or having an unwanted "o" in the string resource named cptext(o)...
JamTheMan is offline  
Reply With Quote
Old March 2nd, 2011, 11:06 AM   #3 (permalink)
New Member
 
Join Date: Dec 2010
Posts: 9
 
Device(s):
Carrier: Not Provided

Thanks: 3
Thanked 0 Times in 0 Posts
Default

Also, I think
Code:
android:hint="@string/cptext"
should probably be
Code:
android:text="@string/cptext"
scrapperstoo is offline  
Reply With Quote
Reply


Go Back   Android Forums > Android Development > Application Development
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:53 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.