aligning items using XML (FIXED)

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

aligning items using XML (FIXED)

Postby myazuid » Thu Apr 16, 2009 2:30 pm

Hello,

I'm sorry if this has already been posted, but I couldn't find a thread about it.

I'm working on a project for my final year at university and am building the GUI at the moment. What I can't seem to find, is a nice long list of all the commands available for XML, so I'm sort of stumbling through the dark at the moment (with the help of droidraw to do some of it).

I'm currently trying to use the - android:layout_toLeft="@+id/......" command but Eclipse seems to think it doesn't exist.

Does anybody know whether this has been changed/removed? and if so is there a list around of the new commands, cos this is turning into a nightmare!!

many thanks for any help :D

edit Also now have the same problem with andoid:layout_textAlign="center" Eclipse says it doesn't exist.
Last edited by myazuid on Thu Apr 16, 2009 3:31 pm, edited 2 times in total.
Image
myazuid
Freshman
Freshman
 
Posts: 8
Joined: Fri Feb 27, 2009 6:01 pm
Location: London, England

Top

Postby WarrenFaith » Thu Apr 16, 2009 2:36 pm

Have you ever tried to use the auto complete function of eclipse?
Write "<TextView" than space and than ctrl + space and you see a big list.

Or use the documentation: http://developer.android.com/reference/ ... .attr.html
WarrenFaith
Moderator
Moderator
 
Posts: 227
Joined: Fri Mar 13, 2009 10:59 am
Location: Berlin, Germany

Postby myazuid » Thu Apr 16, 2009 2:43 pm

WarrenFaith wrote:Have you ever tried to use the auto complete function of eclipse?
Write "<TextView" than space and than ctrl + space and you see a big list.

Or use the documentation: http://developer.android.com/reference/ ... .attr.html


That list is EXACTLY what I was looking for, thank you SO much for your fast reply!
Image
myazuid
Freshman
Freshman
 
Posts: 8
Joined: Fri Feb 27, 2009 6:01 pm
Location: London, England

Postby myazuid » Thu Apr 16, 2009 3:32 pm

turns out the command has been changed to toLeftOf, as opposed to just toLeft!

thanks again
Image
myazuid
Freshman
Freshman
 
Posts: 8
Joined: Fri Feb 27, 2009 6:01 pm
Location: London, England

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 5 guests