History log of /frameworks/base/core/java/android/widget/LinearLayout.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
bb4b601673a4f910d3e467bc5ce39538438859ce 27-Oct-2012 Fabrice Di Meglio <fdimeglio@google.com> Revert "Fix bug #7325234 LayoutParams are not resolved correctly (Settings apps looks broken on Manta in Arabic)"

This reverts commit 6bf6eb7d5f9207d6a3e1d6b61f17a8654d06fbdb.
and also fbc21e126f329b7b7c161858c1390ccb023be07e

I have also removed all unnecessary calls to resolveLayoutDirection(int). This is possible as
we are resolving layout params on every child of a ViewGroup as of commit
fcc3348f61b2992f0b84e8e8dcb3535fc715298f

Change-Id: I262a375b03fcc3c9261cbe2edebb6ec42ec2e186
/frameworks/base/core/java/android/widget/LinearLayout.java
f6215e55df1ab4f6cda33dd081c0a91062a1be63 11-Oct-2012 Fabrice Di Meglio <fdimeglio@google.com> Fix the build

Change-Id: I9c79677ee4f68d6fc82b754d08e701229725c2a6
/frameworks/base/core/java/android/widget/LinearLayout.java
fbc21e126f329b7b7c161858c1390ccb023be07e 10-Oct-2012 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #7325234 LayoutParams are not resolved correctly (Settings apps looks broken on Manta in Arabic)

- fix LayoutParams resolution for LinearLayout only
- apply onResolveLayoutDirection() in both measureHorizontal() and
measureVertical()

Change-Id: I5fcded9a79cd9aaeb0e12da7fd14176b71ba2fb6
/frameworks/base/core/java/android/widget/LinearLayout.java
e56ffdc7b31b0937628609cc3bbaa15879023569 23-Sep-2012 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #6427629 Clean up layout direction APIs

- rename getResolvedLayoutDirection() to getLayoutDirection()

Change-Id: I3afe56c0db0751952f5056c23893cb7455531d29
/frameworks/base/core/java/android/widget/LinearLayout.java
75bea2e8d35044233ba892bedf102ed08406d653 26-Jul-2012 Scott Main <smain@google.com> am 7c00f816: am 2f5b61a7: Merge "docs: fix a bunch of links from javadocs to api guides and add some attributes to Spinner and Switch" into jb-dev

* commit '7c00f81606de1880c3f28e54cea064c3b90da3e7':
docs: fix a bunch of links from javadocs to api guides and add some attributes to Spinner and Switch
4c359b76f9a030f92a302ba74a528faa170bad4e 25-Jul-2012 Scott Main <smain@google.com> docs: fix a bunch of links from javadocs to api guides
and add some attributes to Spinner and Switch

Change-Id: If015ad000c1a36e19904c132e98ebff1ceaf718b
/frameworks/base/core/java/android/widget/LinearLayout.java
4ab6968bb7014e6f4c6c4e4bd076626cf07f218b 03-Jul-2012 Fabrice Di Meglio <fdimeglio@google.com> Fix dividers position for LinearLayout

- see bug #5429822 UI should be mirrored for RTL locales (Arabic, Hebrew, farsi)

Change-Id: I81a294966ec3989785c0b55d2e4d418ddc89fadd
/frameworks/base/core/java/android/widget/LinearLayout.java
eabc9198447c7f6253fcbee8af2887a650e79b00 04-May-2012 Adam Powell <adamp@google.com> Fix LinearLayout measureWithLargestChild for wrap_content views

Bug 6442795

When the measureWithLargestChild setting is enabled, LL used to
measure the full container taking the largest child rule into account,
but the child views were not properly remeasured for AT_MOST
measurespecs. Correct this.

Fix measureWithLargestChild for height

Change-Id: Ieb91114bc2ae65f9104337bd6d16a7d9e559571d
/frameworks/base/core/java/android/widget/LinearLayout.java
1018fb42cb4958511a141787705aa429c5ec9bd3 13-Mar-2012 Philip Milne <pmilne@google.com> Fixes for bugs: #6103660, #6103957, #6104457 and #6104322.

Add getters and setters to the layout widgets so as to mirror their XML apis.

Change-Id: Ie2237fd55e1c3e4ec0d08b4f8154ea7e122c1e79
/frameworks/base/core/java/android/widget/LinearLayout.java
6435da6119ea6f81d78c3d58f1941e8dd8f8d44d 02-Mar-2012 Adam Powell <adamp@android.com> am d9760a81: am 25517fdc: am 637c50db: am c7e5a2fe: Merge "Fix dividers for LinearLayout (TabWidget)"

* commit 'd9760a813e99670c5bdb05c95ae3bafb58abf897':
Fix dividers for LinearLayout (TabWidget)
20761fcdcd513a808e855708fe2e676e409beb36 17-Jan-2012 Vladimir Baryshnikov <vovkab@gmail.com> Fix dividers for LinearLayout (TabWidget)

child.getTop()/child.getLeft - already contains offset for divider height/width,
so we need to subtract it, otherwise divider will be drawn behind the child.

Change-Id: Idd6e5aa4b20e84c64daaefdf393bc00fafb26c45
Signed-off-by: Vladimir Baryshnikov <vovkab@gmail.com>
/frameworks/base/core/java/android/widget/LinearLayout.java
8a78fd4d9572dff95432fcc4ba0e87563415b728 17-Jan-2012 Svetoslav Ganov <svetoslavganov@google.com> AccessibilityEvent/AccessibilityNodeInfo class name property should be set to only framework classes.

AccessibilityEvent and AccessibilityNodeInfo have a property className which is set to the source
Java class. This is problematic since leads to leaking private classes which would allow an
accessibility service to load classes from other packages. This is strongly undesirable since
not trusted code can be loaded, and hence executed, in the accessibility service. To address
that the class name is set to the most concrete framework class extended by the info/event
source.

bug:5878943

Change-Id: I7b3114ece8772ea2773f5151e21b8a6f2006882a
/frameworks/base/core/java/android/widget/LinearLayout.java
35aecd5884a5ccfe380903e39f30f468315e8f92 01-Jul-2011 Adam Powell <adamp@google.com> Updates for action menus

Sync with UX designs for action menus in split action bar mode.
Layout is now based on a grid cell scheme.

Tweak action menu item layouts.

Fix some bugs with drawing LinearLayout dividers.

Rename config resources to follow convention.

Action bar menu items now show text in ALL CAPS. This is done in a
locale-dependent manner, but if it produces problems in specific
locales the config resource config_actionMenuItemAllCaps should be set
to false for that locale.

Change-Id: I064c2dd85e012e89551f29153efcfc17f9106333
/frameworks/base/core/java/android/widget/LinearLayout.java
bf68f833fe835ce393264ecb2fdf3a7d8c38cfde 21-Jun-2011 Adam Powell <adamp@google.com> Don't draw a middle divider on the first visible view.

Change-Id: I44f81e473344c29ac1f1d4ad4c9be86464394b75
/frameworks/base/core/java/android/widget/LinearLayout.java
c0053223bedf33581b0830fb87be32c1f26e5372 13-Jun-2011 Fabrice Di Meglio <fdimeglio@google.com> Add View.getResolvedLayoutDirection()

- update Callback2 interface
- update Gravity.getAbsoluteGravity() and Gravity.apply() to be more generic
by changing "boolean isRtl" parameter to "int layoutDirection"
- fix BiDiTests for RTL FrameLayout

Change-Id: I97bb456c22d5fd3ecb34f08564ce4dbed37e7459
/frameworks/base/core/java/android/widget/LinearLayout.java
c46f7ffa9079f3ae8a5204e7519ed7a1250116d0 07-Jun-2011 Fabrice Di Meglio <fdimeglio@google.com> Rename atribute View horizontalDirection to layoutDirection and update unit tests

- update before/after to start/end in unit test app

Change-Id: Id7286ef5d9390540faf8ecd5f0b1c140d04bb364
/frameworks/base/core/java/android/widget/LinearLayout.java
9e3b002d3f9141d54948a65e0330fdcd09e75a30 07-Jun-2011 Fabrice Di Meglio <fdimeglio@google.com> Rename Gravity BEFORE/AFTER to START/END

- following spec proposal for having CSS3 like naming

Change-Id: Id5e316a2d9b54b9f20bbcb168fea6a3a83882e1b
/frameworks/base/core/java/android/widget/LinearLayout.java
bce84d2bcaa30b9d937b629111091e9f6286c3eb 03-Jun-2011 Fabrice Di Meglio <fdimeglio@google.com> Improve ViewDebug informations for View and LineaLayout

Change-Id: Ie34519c975027dead806b7859b638d78c39ace77
/frameworks/base/core/java/android/widget/LinearLayout.java
de35ceeeb9f8855c72dfd70593e917aa75b43770 02-Jun-2011 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #4509967 (layout_gravity not always respected)

- fix FrameLayout
- code refactoring on LinearLayout
- add more unit tests

Change-Id: I49302582c61aa31a4eb7eded92327b10408f71a4
/frameworks/base/core/java/android/widget/LinearLayout.java
5ff0f99b23da389f59fe736c4c670c60f13be8ea 27-May-2011 Fabrice Di Meglio <fdimeglio@google.com> Merge "Add support for Gravity BEFORE and AFTER"
6a03640539405afbdefe72894759281b98aa6e6f 23-May-2011 Fabrice Di Meglio <fdimeglio@google.com> Add support for Gravity BEFORE and AFTER

- update layouts
- add Callback2 for RTL aware Drawable
- add unit tests

Change-Id: Ic64d0291e262170aff7297c6580b0b422eaa8d89
/frameworks/base/core/java/android/widget/LinearLayout.java
f8ac6b7394cfd37f01471bb35475ff2930eee140 24-May-2011 Adam Powell <adamp@google.com> Action bar tab layout

Sync with UX on action bar tab layout behavior.

Make action bar tabs behave better with configuration changes.

LinearLayout now supports largest child measurement in unspecified
mode.

Change-Id: Id520641715a61c07e64124a0c5a70912996c98a0
/frameworks/base/core/java/android/widget/LinearLayout.java
1e4cfbeba54898373c852097d1519a1d966c0854 02-Apr-2010 Fabrice Di Meglio <fdimeglio@google.com> RTL Ordering of visual elements in LinearLayout

- also update unit tests for testing LinearLayout

Change-Id: I0794d48c45a8fd4a899fdf6f6a1d05485b416e1a
/frameworks/base/core/java/android/widget/LinearLayout.java
b51cc1dd63808da505cd8beb7300f57dc98ff1d3 05-May-2011 Patrick Dubroy <dubroy@google.com> Merge "Only delay pressed feedback for Views inside a scrolling parent"
e0a799a2ac1ca78e30fbac9e4e12a063425c08d3 05-May-2011 Patrick Dubroy <dubroy@google.com> Only delay pressed feedback for Views inside a scrolling parent

Add a method on ViewGroup to determine whether it supports scrolling.
This allows us to show the pressed feedback immediately in many cases,
improving responsiveness of buttons, etc.

This patch also lengthens the timeout in order to reduce flashes
when the user is scrolling.

Change-Id: Ieb91ae7a1f8e8f7e87448f2a730381a53947996f
/frameworks/base/core/java/android/widget/LinearLayout.java
640a66eac612b850b5dabd3b93bd94f83ed2d567 29-Apr-2011 Adam Powell <adamp@google.com> Refactoring of action bar internals

Split action bar implementation details. Factor out common components
into AbsActionBar. Layout rules for the lower half of split action
bars.

Change-Id: I6bc39ba6c343055597880a7d4663dd8f30aa4999
/frameworks/base/core/java/android/widget/LinearLayout.java
696cba573e651b0e4f18a4718627c8ccecb3bda0 29-Mar-2011 Adam Powell <adamp@google.com> Refactor menu internals.

In the old world, MenuBuilder and MenuItemImpl were responsible for
generating views for any presentation of a menu. MenuBuilder needed to
know any types and resources involved, and the implied caching
semantics did not work well for menus presented within AdapterViews.

In the new world, the MenuPresenter interface takes over the
responsibility of generating views or adapters for menu
items. MenuBuilder/MenuItemImpl still provide extra metadata tracking
used by these presenters. Mutiple presenters may be active for a
single menu at a time. All of this remains internal framework
implementation details.

BaseMenuPresenter provides a simple base for presenters that treats
the host MenuView more like an AdapterView. This allows for less
rebuilding of views when items are added/removed.

Callbacks have been restructured. Calls that relate to the menu itself
are still handled by MenuBuilder.Callback, but calls related to a
specific presentation of a menu are handled by MenuPresenter.Callback
objects attached to a MenuPresenter.

Also add API to programmatically set divider options for LinearLayout
and hidden API so that ActionBarView can have finer-grained control
over divider placement.

Change-Id: I2265b86a084279822908021aec20dfbadc1bb56b
/frameworks/base/core/java/android/widget/LinearLayout.java
3f7f7ac30af6ea572aca44df91363cff7fcd9fef 06-Dec-2010 Adam Powell <adamp@google.com> Add dividers to action bar navigation. Lighter dividers for holo themes.

Change-Id: I879dbd815a891fe5db20678b674a9cee63a5e1ae
/frameworks/base/core/java/android/widget/LinearLayout.java
189ee18d6c6483ad63cc864267328259e2e00b95 03-Dec-2010 Dianne Hackborn <hackbod@google.com> Implement smarter sizing of WRAP_CONTENT windows.

This extends the view hierarchy's measure pass to allow view to
propagate up to their parent additional information besides just
their measured size. They can now report that their measured width
and/or height should be larger than the size their parent is
limiting them to (even though by definition they need to contrain
their reported measurements to the limits imposed by the parent).

ViewRoot uses this information to determine if it should remeasure
the window with a larger size limit to try to make it fit.

Change-Id: I90af3b7a8ec45d0a5c003fb009857025209d83eb
/frameworks/base/core/java/android/widget/LinearLayout.java
fcca00accb923d3cbda4e0d6f5540b10e8279cd2 01-Dec-2010 Adam Powell <adamp@google.com> Update themes; dialogs, metrics

Add divider attributes to LinearLayout, plus styles for borderless
buttons. Update text field assets.

Change-Id: I673acab1692cc028a0327e8c154069253a4d52e8
/frameworks/base/core/java/android/widget/LinearLayout.java
385a655b8e8bf85024e4f24f1d7f6c2d7d7e900d 21-Aug-2010 Scott Main <smain@google.com> am bb8d314b: am 70c9ffbc: am 11a72482: Merge "docs: add links from widget classes to tutorials" into froyo

Merge commit 'bb8d314b6c5ff9b51af29daa687d66dfd996914f'

* commit 'bb8d314b6c5ff9b51af29daa687d66dfd996914f':
docs: add links from widget classes to tutorials
70c9ffbc838271f0ea27a4780eb146287de53ef6 20-Aug-2010 Scott Main <smain@google.com> am 11a72482: Merge "docs: add links from widget classes to tutorials" into froyo

Merge commit '11a72482a0cdc45ceaf4ca83957e682381455aee' into gingerbread

* commit '11a72482a0cdc45ceaf4ca83957e682381455aee':
docs: add links from widget classes to tutorials
41ec65355bd6ded652769725b276d47c54a0d913 20-Aug-2010 Scott Main <smain@google.com> docs: add links from widget classes to tutorials

Change-Id: I817e885524951853182b0458df4a32dea1614243
/frameworks/base/core/java/android/widget/LinearLayout.java
ecb1d5ded9afee63735dc91cfb08ada2c639d237 11-Aug-2010 Konstantin Lopyrev <klopyrev@google.com> resolved conflicts for merge of f00ee0f7 to master

Change-Id: I13b968bde37fad8fffdaa9bb94a0f1da9b2e6e0c
bea95162ca25bd00b0479d93739b6283795c3986 11-Aug-2010 Konstantin Lopyrev <klopyrev@google.com> Categorizing exported view properties.

Change-Id: I79c42019836973d80662c21d195d088ae01537a0
/frameworks/base/core/java/android/widget/LinearLayout.java
9295ada0ec89fa7a666be4a2f1006a4b722adf4f 15-Jun-2010 Romain Guy <romainguy@google.com> Allow the use of styles with LinearLayout, make "useLargestChild" attr public.

Change-Id: I044f3f5bd9b90c684ded7a37ff85e3aa8d15af96
/frameworks/base/core/java/android/widget/LinearLayout.java
c352090c49b50a70aaddeb428bd5e27f7419884f 25-Feb-2010 Romain Guy <romainguy@android.com> Correctly handle negative margins in horizontal linear layouts.

When LinearLayout is measured in EXACTLY mode, we handle the negative margins
a bit differently. This is to support the use case of the current tab design.
/frameworks/base/core/java/android/widget/LinearLayout.java
6c5664ac58463fefb580acd0d9b5550b25511f85 25-Feb-2010 Romain Guy <romainguy@android.com> Fix tabs.
/frameworks/base/core/java/android/widget/LinearLayout.java
f5c6eff63d19a9f7a970a4f90619edac873c006d 10-Feb-2010 Gilles Debunne <debunne@google.com> Force layout on TableRows when column widths are shrinked or streched.

Also features some comment typos and import re-ordering.

Change-Id: I32cb14419d7d349064032718469daf62a0a72e3a
/frameworks/base/core/java/android/widget/LinearLayout.java
053b48051abab0abd85995a23fcbc172e8c4c57f 06-Feb-2010 Romain Guy <romainguy@android.com> Do not let negative margins reduce the size of the LinearLayout.
/frameworks/base/core/java/android/widget/LinearLayout.java
ff65c8c559941cac3f64ddaf350db318f3e993bb 23-Jan-2010 Romain Guy <romainguy@android.com> Make vertical LinearLayouts behave like horizontal LLs do.
A bug fix in the horizontal handling of "useLargestChild" was not fixed in the vertical code.
/frameworks/base/core/java/android/widget/LinearLayout.java
cf635ae7c65de34f62a41cd330f25f4ee9ddc95b 22-Jan-2010 Romain Guy <romainguy@android.com> Bring back buttons in dialogs.
Bug #2390537
/frameworks/base/core/java/android/widget/LinearLayout.java
5b1b2417106f161e4bc66296888f4685f213eebd 22-Jan-2010 Romain Guy <romainguy@android.com> Add a new attribute to LinearLayout: useLargestChild.
Bug #2379138

This new attribute is to be used when the LinearLayout is wrap_content but you want
all the children inside to have the same dimension. Set useLargestChild to true and
give all the children a width/height of 0 and a weight of 1.0.
/frameworks/base/core/java/android/widget/LinearLayout.java
d68478467e3f837511196c80891d7245d0e163df 13-Jan-2010 Dianne Hackborn <hackbod@google.com> First pass at new device policy and administration APIs.

This adds new DevicAdmin, DevicePolicyManager, and DeviceAdminInfo classes.
See the java docs for each on documentation on them. Basically: a DeviceAdmin
is what you derive from to administer a device; DevicePolicyManager is what you
use to apply and check your policy requirements and perform other administration
tasks.
/frameworks/base/core/java/android/widget/LinearLayout.java
980a938c1c9a6a5791a8240e5a1e6638ab28dc77 09-Jan-2010 Romain Guy <romainguy@android.com> Deprecate fill_parent and introduce match_parent.
Bug: #2361749.
/frameworks/base/core/java/android/widget/LinearLayout.java
611cd3f4a921e2a170b670a536548e88e861f7de 15-Dec-2009 Romain Guy <romainguy@android.com> Fixes layout shifts in LinearLayout.

Bug: 2329142.
/frameworks/base/core/java/android/widget/LinearLayout.java
c1f9c40c23a756a11394a35f37053f796494b224 13-Aug-2009 Karl Rosaen <krosaen@android.com> Default mBaselineAlignedChildIndex to -1 so it will still be valid when a LinearLayout is created programatically.

Fixes bug 2038629, and thereby external issue 3484.
/frameworks/base/core/java/android/widget/LinearLayout.java
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/widget/LinearLayout.java
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/widget/LinearLayout.java
3001a035439d8134a7d70d796376d1dfbff3cdcd 19-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@132276
/frameworks/base/core/java/android/widget/LinearLayout.java
d24b8183b93e781080b2c16c487e60d51c12da31 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
/frameworks/base/core/java/android/widget/LinearLayout.java
f013e1afd1e68af5e3b868c26a653bbfb39538f8 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
/frameworks/base/core/java/android/widget/LinearLayout.java
54b6cfa9a9e5b861a9930af873580d6dc20f773c 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/frameworks/base/core/java/android/widget/LinearLayout.java