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

  • Home
  • SEARCH
  • 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 8580893
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T20:55:24+00:00 2026-06-11T20:55:24+00:00

If weightSum is not specified, Android will just add the weights of the children

  • 0

If weightSum is not specified, Android will just add the weights of the children together. So, is there really a reason to use weightSum? Is there a situation where I shouldn’t use it?

Is it more efficient than simply letting android add the weight by itself?

  • 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-11T20:55:25+00:00Added an answer on June 11, 2026 at 8:55 pm

    The important word in the reference documentation description is “single”: “This can be used for instance to give a single child 50% of the total available space by giving it a layout_weight of 0.5 and setting the weightSum to 1.0.” In this case, the sum of the weights of the children (in this case, only child) is different to the weightSum.

    So you only need to use weightSum when you won’t necessarily have the children filling the entire LinearLayout.

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

Sidebar

Related Questions

I see how you can use query functions to apply different weights to different
I believe my problem stems from my use of weights and the RelativeLayout that
Given a directed, connected graph with only positive edge weights, are there faster algorithms
There's an undirected graph with weights on edges (weights are non-negative integers and their
this is my code what i'm showing here: <TableRow android:id=@+id/tableRow1 android:layout_width=fill_parent android:layout_height=28dp android:weightSum=80 >
In Android, I'm trying to accomplish this: Basically, the ability to add the button
Suppose I have a matrix of weights, and another matrix of data values. Can
i have created three linear layouts of equal weights. Inside one of the linear
I have trained xor neural network in MATLAB and got these weights: iw: [-2.162
I came across this question: say given two weights 1 and 3, u can

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.