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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T01:07:55+00:00 2026-06-03T01:07:55+00:00

How can I set the height of a layout to be a specific number

  • 0

How can I set the height of a layout to be a specific number of dp. Here is my exact situation:

I have a relative layout. Inside I do an include of a header layout. This header layout needs to be exactly 35dp. How do I set an exact height. Secondly I have a vertical separator image view inside the header that is a few 1 dp wide and that must be exactly 15dp high. How do I set an image view inside the header to be an exact height? I suppose I could do this indirectly by setting padding or margin?

  • 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-06-03T01:07:56+00:00Added an answer on June 3, 2026 at 1:07 am

    Have you tried this?

    android:layout_height="35dp"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a layout that contains several sub-views all which set height like: <View
I can set the width and height of my canvas by setting the width
I can't figure out how to tell the accordioncontainer to set height of its
I can't seem to understand how to set the height correctly for the jquery
Why I can't get the min-height of an object when its parent is set
I can set the event on the calendar on my device by using this
How can I have fixed height for table cells in Firefox? The following works
I can't figure out where I am going wrong with this, I have tried
I have a widget which I'm putting in a QVBoxLayout. This widget's layout is
I have a layout with a TabHost/TabWidget like this: The blue box is a

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.