Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6568797
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:32:49+00:00 2026-05-25T14:32:49+00:00

When im designing my android app im using XML and for this app im

  • 0

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:

Picture of my design

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:
http://pastebin.com/gpxnPT4P

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T14:32:50+00:00Added an answer on May 25, 2026 at 2:32 pm

    I think you have to check the android:layout_... of every item that is showing wrong. For example, the declaration for the number 5 button is:

    <Button android:background="@drawable/number5" android:layout_marginLeft="5dp" android:layout_marginRight="5dp" android:layout_marginTop="5dp" android:layout_marginBottom="5dp" android:id="@+id/number5" android:layout_height="wrap_content" android:layout_width="wrap_content" android:layout_below="@+id/number8" android:layout_alignLeft="@+id/divided"></Button>
    

    If you look closely the android:layout_alignLeft declaration is pointing to de divide button (@+id/divided) that is far away. There is a similar situation with the button for number 6.

    Try this declaration for number 5 button:

    <Button android:background="@drawable/number5" android:layout_marginLeft="5dp" android:layout_marginRight="5dp" android:layout_marginTop="5dp" android:layout_marginBottom="5dp" android:id="@+id/number5" android:layout_height="wrap_content" android:layout_width="wrap_content" android:layout_below="@+id/number8" android:layout_alignLeft="@+id/number4"></Button>
    

    Hope this helps

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am designing an app in xml android. I have been using lots of
I'm designing an Android app which loads lots of small (say 128x128px@24-bit) PNG images
I am designing an Android app and I'm having a couple of layout issues.
I am designing custom dialogue in android, For this purpose I designed xml file
I'm designing splash images for an Android app. But when it comes to different
I'm designing an App for android and I need to parse an XML file,
I am trying to view my android xml file layout design-view but it is
I'm defining a style XML for my android app. I have some TTF files
I'm starting an Android app which will have multiple Activities. It will be using
I am designing an android app that needs to play a sound every minute

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.