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 6848075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:49:24+00:00 2026-05-27T00:49:24+00:00

I am designing an app in xml android. I have been using lots of

  • 0

I am designing an app in xml android. I have been using lots of drawable resources. The thing is, when i test the design in an emulator of size 800×800 it runs fine. but as i decrease the size of the emulator to 500×500 the design starts breaking out. Its not completely in the same position. I have used a lot of layout_margin attributes. please tell if there is any other way by which my design runs fine irrespective of size of the emulator!?

a snip of my code is:

<ImageView android:layout_width="wrap_content" 
           android:layout_height="wrap_content" 
           android:id="@+id/containers"
           android:src="@drawable/containers" 
           android:paddingTop="42px" 
           android:paddingLeft="3px">
</ImageView>
<TextView android:textColor="#000000"
          android:paddingLeft="20px" 
          android:paddingTop="58px" 
          android:layout_width="wrap_content"
          android:id="@+id/current_loc"
          android:text="@string/current_loc" 
          android:layout_height="wrap_content">
</TextView>
<TextView android:textColor="#000000"
          android:paddingLeft="20px"
          android:paddingTop="109px" 
          android:layout_width="wrap_content" 
          android:id="@+id/current_loc" 
          android:text="@string/at" 
          android:layout_height="wrap_content">
</TextView>
<Button android:text="@string/time" 
        android:textColor="#000000" 
        android:id="@+id/pickTime" 
        android:layout_height="50px" 
        android:layout_width="120px" 
        android:layout_marginTop="100px"
        android:layout_marginLeft="40px">
</Button>
<Button android:text="@string/date"
        android:textColor="#000000"
        android:id="@+id/pickDate"
        android:layout_height="50px" 
        android:layout_marginTop="100px"
        android:layout_marginLeft="160px"
        android:layout_width="100px">
</Button>
<TextView android:textColor="#000000" 
          android:layout_marginLeft="260px"
          android:id="@+id/to" 
          android:layout_marginTop="110px" 
          android:layout_width="wrap_content" 
          android:text="@string/to" 
          android:layout_height="wrap_content">
</TextView>
<EditText android:textColor="#000000" 
          android:id="@+id/editText2" 
          android:layout_marginTop="97px" 
          android:layout_marginLeft="280px"
          android:layout_height="60px" 
          android:layout_width="190px"
          android:hint="@string/dest" 
          android:textSize="20px" 
          android:singleLine="True">
</EditText>
<TextView android:textColor="#000000" 
          android:paddingLeft="20px" 
          android:id="@+id/thereare"  
          android:paddingTop="180px" 
          android:layout_width="wrap_content" 
          android:text="@string/ihave" 
          android:layout_height="wrap_content">
</TextView>
<EditText android:textColor="#000000" 
          android:id="@+id/num1" 
          android:layout_marginTop="169px"
          android:layout_height="55px"
          android:layout_width="50px"
          android:layout_marginLeft="85px" 
          android:hint="2"></EditText>
<TextView android:textColor="#000000" 
          android:paddingLeft="140px" 
          android:id="@+id/female"
          android:paddingTop="180px"
          android:layout_width="wrap_content"
          android:text="@string/female" 
          android:layout_height="wrap_content">
</TextView>
<TextView android:textColor="#000000"
          android:paddingLeft="210px"
          android:id="@+id/and" 
          android:paddingTop="180px" 
          android:layout_width="wrap_content" 
          android:text="@string/and" 
          android:layout_height="wrap_content">
</TextView>
  • 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-27T00:49:24+00:00Added an answer on May 27, 2026 at 12:49 am

    You should try to get rid of specifying sizes in pixels. Instead you can use dip and layout_weights

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

Sidebar

Related Questions

When im designing my android app im using XML and for this app im
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 new comer to android but not to java. I have been designing
I'm designing an App for android and I need to parse an XML file,
Android: Hi, I'm using AchartEngine to display charts in my App I have tried
I'm designing an app with a rather complex table design using the Postgres database,
I'm designing a MFC app in which I'd like to have a grid with
I am designing an app that needs text to speech. I am using the
I usually define style and control template in App.xml under tab. So, while designing

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.