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

test: Reply
 
LinkBack Thread Tools
Old September 16th, 2011, 04:21 PM   #1 (permalink)
Senior Member
Thread Author (OP)
 
TheCompBoy's Avatar
 
Join Date: Oct 2010
Location: Sweden
Posts: 591
 
Device(s): Samsung Galaxy S w DarkyROM v10.1
Carrier: Not Provided

Thanks: 4
Thanked 56 Times in 51 Posts
Send a message via Skype™ to TheCompBoy
Question Solving design issues in XML ?

When im designing my android app im using XML and for this app im using the Relative layout but when i put the buttons on my screen with the png background i made its just looking bad.. the buttons are not put equaly like they should.. Look at this picture:


How would i solve so the pluss buttons and percent and comma and equal button will be placed right instead of looking all that weird?

If you are intrested to see my XML code here is an link for pastebin: [XML] XMLcooode - Pastebin.com

Advertisements
__________________
Please check out my blogg: www.thecompboy.blogspot.com
If you want to support me please subscribe / follow the blogg!
TheCompBoy is offline  
Reply With Quote
sponsored links
Old September 16th, 2011, 11:38 PM   #2 (permalink)
New Member
 
Join Date: Sep 2011
Posts: 3
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 1 Time in 1 Post
Default

I'm new at Android stuff, but I think I see your problem. Starting with button 5 you started using android:layout_alignLeft="@+id/divided"
What's happening is the left side of button 5 is aligning to the left side of the divide button... plus your margin. So, instead of the left side of button 5 aligning to the left side of button 8, what happens is the edge of the 5dp margin on the left side of button 5 aligns to the left side of button 8.
You should probably try using android:layout_toRightOf="@+id/number4" similar to what you did for button 8. Either that or make your left margin 0 on button 5.
It's really all coding discrepancies. You should try using the same basic code as you did in line two for the rest of your buttons.
rminkler is offline  
Last edited by rminkler; September 16th, 2011 at 11:46 PM.
Reply With Quote
The Following User Says Thank You to rminkler For This Useful Post:
TheCompBoy (September 17th, 2011)
Old September 17th, 2011, 12:49 AM   #3 (permalink)
Senior Member
Thread Author (OP)
 
TheCompBoy's Avatar
 
Join Date: Oct 2010
Location: Sweden
Posts: 591
 
Device(s): Samsung Galaxy S w DarkyROM v10.1
Carrier: Not Provided

Thanks: 4
Thanked 56 Times in 51 Posts
Send a message via Skype™ to TheCompBoy
Talking

Quote:
Originally Posted by rminkler View Post
I'm new at Android stuff, but I think I see your problem. Starting with button 5 you started using android:layout_alignLeft="@+id/divided"
What's happening is the left side of button 5 is aligning to the left side of the divide button... plus your margin. So, instead of the left side of button 5 aligning to the left side of button 8, what happens is the edge of the 5dp margin on the left side of button 5 aligns to the left side of button 8.
You should probably try using android:layout_toRightOf="@+id/number4" similar to what you did for button 8. Either that or make your left margin 0 on button 5.
It's really all coding discrepancies. You should try using the same basic code as you did in line two for the rest of your buttons.
Wow realy big big thanks!

Am totaly new to designing things in XML so thats why i get so many problems but man.. Big Big Thanks!!!
TheCompBoy is offline  
Reply With Quote
Reply
Tags
android, app, design, issue, problem, xml


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 08:22 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.