Android UI Weights explanation

With Android devices running 4.0+, we have a performance problem with one of our screens in our app. (Devices running Android 2.2 do not experience this issue).

I found a nice article that I believe describes the issue we're running into and it talks about the UI limitations of Android:
http://appstudio.verivo.com/display/coredoc/Android+Display+Constraints

I wanted some clarifications on some things though.

1) Does each field of a certain type add "weight"? For example, if I have 3 text fields, should that be a weight of 2 or 6?

2) Do fields that never become visible add to the weight? Some screens have text fields so the data can be local and logic applied based on the values, but UI is never shown for some of these fields.

3) Exactly how does a screen host within a screen host calculate? The documentation calls it "Three-level Nesting" in the example but it reads more like it's 3 separate screen hosts on the form?
How should this be calculated: I have a screen host that in turn has 3 screen hosts with weights of 5, 10, and 15.

Thank you for your time.
Terry Helems

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk