OSDN Git Service

Resolve ListView children's RTL properties when added
authorYigit Boyar <yboyar@google.com>
Tue, 19 Jul 2016 22:32:09 +0000 (15:32 -0700)
committerYigit Boyar <yboyar@google.com>
Tue, 19 Jul 2016 22:32:09 +0000 (15:32 -0700)
commit4d827aafadde6b04b7223b527a3390635eb4dc92
treed5686388198a1d0201134c02f4639c3fa0f34fd7
parentb822f7a9565474268f0ee60db5a5bd1b08a634dc
Resolve ListView children's RTL properties when added

ListView adds children without requesting a layout for them.
This creates a problem if the child does not request a
layout because we reset the child's RTL properties when
addViewInner is called.

A proper solution would be to call resolve when child is
being measured (and ignore cache if it resolves) but
a change like that is too risky for MR1. This CL will
fix ListView portion of the issue.

On master, we'll solve this in View level.
Bug: 30132566

Change-Id: I0b131ac1086b1d32146f3c93d1323050873293d3
core/java/android/widget/ListView.java