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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:34:12+00:00 2026-05-27T21:34:12+00:00

I have been working on android for the last 6 months. I wonder why

  • 0

I have been working on android for the last 6 months. I wonder why UI Design is done in “dp”s. It would be great if its mentioned in “%” instead of dp’s. What i meant to say is assuming total width and height of the screen to “100%” we can divide the width and height of the each widget. may be like this:

<ImageView android:layout_width="20%" android:layout_height="20%" />

So that every screen automatically takes it. Offcourse "wrap_content" and "fill_parent" can do. But cant use them to all views. I dont know if its possible or not.

  • 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-27T21:34:13+00:00Added an answer on May 27, 2026 at 9:34 pm

    It’s just the UI design aspect of Google that it’s not possible to do what you intend to. That’s ‘cuz the layout height and width take integer values. However, layout weight takes decimal values in the form of percentage. So, in a way it’s possible to do what you’re trying to, but only with weight and not with height or width. +1 for the question.

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

Sidebar

Related Questions

I have been working with eclipse and android for a few months now and
I have been working on an Android game for the past 6 months or
I have been working on android for about 4 months, i am working on
I have been working on android from 6 months. So I have basic idea
I have been working in android for past few months. The problem for me
I have been working on Android for a few months. Now i want to
I have been working on an Android app using Phonegap and now would like
I have been trying to get a USB HID keyboard working on an Android
I have been trying to get the FTDI D2xx driver working with my Android
I have been working on a Android Web Services program that uses a number

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.