History log of /frameworks/support/v7/gridlayout/src/android/support/v7/widget/GridLayout.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
5f355e700d63f67b1641f023d95e18c69c596ecb 18-Nov-2014 Yigit Boyar <yboyar@google.com> Improve GridLayout's weight calculations

This CL improves how excess space is distributed in GridLayout. Previously,
GridLayout would find unused space in each axis and distribute it among
the Views by weights. It would re-run the constraint solver after this step.

This was performing properly when Views are in different
columns/rows because total remaining space would not be consumed, leaving the last
span in each axis with more space. (in BF solver, remaining space
goes to the last span of the axis).

This CL changes the weight distribution to use Newton method to find the max
distributed space that will not invalidate the constraints. It runs the solver
log(<axis size> * <number of Views>) times by different distributed space
guesses until the MAX is found. Because it is logarithmic,
it does not bring any significant performance cost if the number of views is
too many.

As a side effect, thhis CL also fixes a bug in GridLayout where remaining space
was distributed only in primary direction.

Bug: 17485996
Change-Id: Ie549e8ae4fd93a2f417db22f9a087f46a129f6e0
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/GridLayout.java
e0e021449dbe556c4b775a8dcaf486e1d3f361e7 30-Jul-2014 Philip Milne <pmilne@google.com> Revert "Suspected cause of regression affecting Timely "

This reverts commit 634291e533ebdbf683b4349eb551a83213140cc3.

Thanks to Sblitz, xav, adamp, vsiva, deepanshu for
helping getting to the bottom of this. It looks like
this was just resource id skew caused by a app build
problem which seems to have been caused by prebuilts
for the v7 support libraries not being updated
correctly.

At this point we don't know of any changes that
are needed to the original CL or to the
weight-enabled version of GridLayout in L.

Reverting the revert.

Change-Id: I0e052a3707207e15f6dbf8b94225cb64dd2321da
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/GridLayout.java
634291e533ebdbf683b4349eb551a83213140cc3 17-Jul-2014 Philip Milne <pmilne@google.com> Suspected cause of regression affecting Timely

Revert "Port weight feature from L into v7 GridLayout support library"

This reverts commit b1dbd65b4e8ce2c889381214d0bc44aff8dfe616.

Change-Id: Ibd36877558cb2326c324449ef1e3ec0a0a2af03f
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/GridLayout.java
b1dbd65b4e8ce2c889381214d0bc44aff8dfe616 14-Jul-2014 Philip Milne <pmilne@google.com> Port weight feature from L into v7 GridLayout support library

We think the weight feature introduced into GridLayout in L
leaves GridLayout with a superset of the facilities of the
other layouts in the Android platform. This CL updates the v7
version of GridLayout in the support library to the version
in L.

Change-Id: I339d6b62cc0eed666f66a250c8ff23c74ec78784
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/GridLayout.java
b12ba0547b2fad1c4dfc12dec36c5e7893974e67 28-Aug-2013 Adam Powell <adamp@google.com> Fix compatibility support for v7/gridlayout

A previous implementation import from frameworks/base combined with an
incorrectly restricted makefile led to GridLayout using new/hidden API
from the framework instead of compat lib conventions and public API
only.

Add required shims to ViewCompat/ViewGroupCompat as needed and have
GridLayout use them. Fix some general Android code style guide issues.

Change-Id: I5dd965b9c4282c47964bfd1d481e3a62725cca38
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/GridLayout.java
2c78c295c13866c37e778375d1b37d6ff6016190 17-Jul-2013 Fabrice Di Meglio <fdimeglio@google.com> Update Support Library GridLayout to the same version as Framework

- see bug #9880181 GridLayout code in Support Library v7 should be updated and in sync with the code in Framework

Change-Id: Idc3d0f15b655647d18c93b149cfd9881a369cbf0
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/GridLayout.java
e1feb53bd8abfa46613fdd0abcf7a015c7e706c1 29-Feb-2012 Xavier Ducrohet <xav@android.com> Add GridLayout as a support project library.

The library is distributed as a project containing a single jar and resources
but the jar file is built by the Android build system in order to target the
current API.
The code also relies on the R class being generated, which is currently done
manually. The build system uses an intermediary library to compile the R class
so that it doesn't get packaged in the final jar file (same behavior as
compiling the library project with the SDK).

Change-Id: I36ce97d875f2efbb50cca665e9fd0e668f5ba837
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/GridLayout.java