Android Forums

Go Back   These FORUMS ARE DISABLED!! OUR NEW FORUMS ARE AT http://androidforum.com/ > Android Coders > Android Development, Answers, Tutorials, and Code Snippets
Connect with Facebook

Click Here To Register!
 
 
LinkBack Thread Tools Display Modes
Old 07-26-2009, 07:49 AM   #1
Junior Member
 
Join Date: Jul 2009
Posts: 1
Friends: 0
View Alex A's Profile   View Alex A's Photo Album   View Alex A's Blog   View Social Groups
Hi all...

I started Android development this morning, and that's pretty much
what I was doing all day
It's very exciting and Eclipse plug in is so easy to use!!! Here's a
little problem that I ran into with XML.

Trying to put 4 EditText fields in one row of a TableLayout as
follows:

Code:
<TableLayout
		android:layout_height="fill_parent"
		android:layout_width="fill_parent"
		android:id="@+id/MainTable">

<TableRow
		android:id="@+id/Row1"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content">

    <TextView
        android:id="@+id/label1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/first"/>
</TableRow>

<TableRow
		android:id="@+id/Row2"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content">

    <EditText
        android:id="@+id/inputField1"
        android:layout_column="0"
        android:layout_width="30dip"
        android:layout_height="wrap_content"
        android:padding="3dip"/>

    <EditText
        android:id="@+id/inputField2"
        android:layout_column="1"
        android:layout_width="30dip"
        android:layout_height="wrap_content"
        android:padding="3dip"/>

    <EditText
        android:id="@+id/inputField3"
        android:layout_column="2"
        android:layout_width="30dip"
        android:layout_height="wrap_content"
        android:padding="3dip"/>

    <EditText
        android:id="@+id/inputField4"
        android:layout_column="3"
        android:layout_width="30dip"
        android:layout_height="wrap_content"
        android:padding="3dip"/>
</TableRow>

</TableLayout>
But what this results in is just one EditText field (the first one)
taking up the whole second row.
What I need is all 4 entry fields in one row.
What is the problem here?
Any help is appreciated.

Alex
Alex A is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
 

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
How Do You Change the Selected EditText Field Color? jon21569 Android Development, Answers, Tutorials, and Code Snippets 3 01-26-2010 05:51 AM
Is there a way to delete multiple, but not all texts on the g1? Jaelynn Android Chat 0 03-07-2009 12:41 PM
Add EditText with backgroundtxt to child of Expandable list? Timo Android Development, Answers, Tutorials, and Code Snippets 1 02-21-2009 09:17 PM
G1 dialing multiple local numbers own its own! sscott2378 Android Chat 1 01-06-2009 08:32 PM


Unlocked G1 Phones | Buy T-Mobile G1 | Google Phone

All times are GMT -6. The time now is 04:28 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.
Copyright (c) 2012 TalkAndroid.com. All rights reserved.