3399aa1ec04c2e4f29850d1144c994c14034998b |
|
30-Jun-2016 |
Alan Viverette <alanv@google.com> |
Exclude children from excess space distribution when using largest child Preserves API 23 behavior. Bug: 29872769 Change-Id: I514cde81dcca4d78238f407251805cced4c0bea1
/frameworks/base/core/java/android/widget/LinearLayout.java
|
61c41bf6175222c265973b5fb0063b3e3c5d02c8 |
|
05-May-2016 |
Alan Viverette <alanv@google.com> |
Revert "Always assign leftover pixels to last weighted child" This reverts commit cc26636f08da89f9750f550d66aa213f1ae24f7f. Bug: 27690033 Change-Id: Ib7084dd8961cd486de4e6b13e36da7be887b1835
/frameworks/base/core/java/android/widget/LinearLayout.java
|
cc26636f08da89f9750f550d66aa213f1ae24f7f |
|
04-May-2016 |
Alan Viverette <alanv@google.com> |
Always assign leftover pixels to last weighted child Bug: 27690033 Change-Id: Ibee51d49d3f7aa923750ce330df2e1aa2156f2bd
/frameworks/base/core/java/android/widget/LinearLayout.java
|
885c50b6df08270642016c1f24a3b7e381341742 |
|
23-Mar-2016 |
Yigit Boyar <yboyar@google.com> |
Fix generate layout params to preserve margins This CL fixes a common bug in framework's widgets where they were not converting a child's margin layout params properly. The CL fixes, FrameLayout, RelativeLayout, GridLayout and LinearLayout. Bug: 27785449 Change-Id: Icecd9181ff82107e412174fe152f35d32d36b2e6
/frameworks/base/core/java/android/widget/LinearLayout.java
|
918f88696668e66de4eb72dabf16a5ad68cc0cc1 |
|
17-Mar-2016 |
Alan Viverette <alanv@google.com> |
Revert linear layout weight distribution algorithm Ensures that weight is fully (though not necessarily evenly) distributed. Previously, we could end up with extra undistributed pixels at the end. Bug: 27690033 Change-Id: If3db83f33145500fa8be006f373c54297733e76f
/frameworks/base/core/java/android/widget/LinearLayout.java
|
efe916c3c795b680152d229fd937cf112cf28086 |
|
20-Jan-2016 |
Jason Monk <jmonk@google.com> |
Add LinearLayout#getGravity Change-Id: I290790b8e84e14f2702c6fc9c679b1c435cc13a8
/frameworks/base/core/java/android/widget/LinearLayout.java
|
ad52693cf3dfe3f5e84f5a22fe4c3787f2f2cbfb |
|
17-Dec-2015 |
Alan Viverette <alanv@google.com> |
Handle null result from getVirtualChildAt() Also adds final where the method was being called, adds Nullable annotation to method, and updates docs. Bug: 25985497 Change-Id: I847a8507f2e3970f1340cddf4abf8650dda22b35
/frameworks/base/core/java/android/widget/LinearLayout.java
|
4610eeff9c6c4789705b6550a57333150d39e970 |
|
03-Dec-2015 |
Chet Haase <chet@google.com> |
Revert "Add support for partial view layouts" This reverts commit c55d5072ac52cee1811b52406419228fa81119ce. There were several bugs related to incorrect handling of various layout issues (layout not being run on containers/views that needed it), reverting to take another run at it outside of master. Issue #25980198 requestLayout() sometimes doesn't result in measure/layout for view Change-Id: Ic0e159cbcf6171652d8fd1bee9ae44a3977cea04
/frameworks/base/core/java/android/widget/LinearLayout.java
|
016f4457574c33b4c9c8a74189c77e1fbe411a3e |
|
07-Dec-2015 |
Chet Haase <chet@google.com> |
Fix requestLayout() optimizations A bug in recent layout optimizations was causing the framework to avoid laying out containers with WRAP_CONTENT in one axis or the other. This fix updates the logic in the code that finds dependent layout axes to correctly account for this case. Issue #25980198 requestLayout() sometimes doesn't result in measure/layout for view Change-Id: Ie5f678beef5d8c4ba25291ffdcd59797d4697acc
/frameworks/base/core/java/android/widget/LinearLayout.java
|
c55d5072ac52cee1811b52406419228fa81119ce |
|
19-Dec-2014 |
Adam Powell <adamp@google.com> |
Add support for partial view layouts Traditionally, when a view called requestLayout it would force recursive requestLayout calls for all parent views up the hierarchy. This meant that there was no way to determine at traversal time whether a parent view itself needed layout, or if just one of its descendants did. Add a ViewParent method requestPartialLayoutForChild(View). This lets a caller state that a particular child of a given parent needs a remeasure and relayout at its current measured size and position within that parent. This can help prevent the full-tree relayout often caused by otherwise trivial changes. Partial layouts are processed after any pending "full" relayout during ViewRoot traversals, but before drawing. Add a ViewGroup method requestLayoutForChild(View). This lets a ViewGroup decide whether it is more appropriate to request a traditional relayout or a partial layout for itself or just the child that changed. Add a ViewParent method findDependentLayoutAxes. This allows a caller to check if the ViewParent's layout is dependent on a specific direct child view along one or both axes. Called recursively, this can be used to determine if a change in a child view can be isolated to a partial layout, even if its direct parent's own layout is tied to its other ancestors. (e.g. MATCH_PARENT, LinearLayout weights) Implement ViewGroup#requestPartialLayoutForChild to call new ViewParent method findDependentLayoutAxes and based on the result, either request a full layout for itself or a partial layout for the child in question. Implement findDependentLayoutAxes for common framework ViewGroups. A private implementation in ViewGroup is available for use by framework classes that will deal with basic LayoutParams. These implementations specifically check for derived LayoutParams classes and abort the optimization if they find something beyond their expected parameter types. Change-Id: I0a1a9b79293d17d4fae8d9892b96d3586f9401ae
/frameworks/base/core/java/android/widget/LinearLayout.java
|
40e1df34a9549a25020a325d0abc4d43c5a6b6e2 |
|
25-Aug-2015 |
Alan Viverette <alanv@google.com> |
Correctly distribute weight to pre-measured zero-dimension views Previously, the measurements obtained from LinearLayout when using EXACTLY and AT_MOST modes would be different even if the resulting height was the same. This was the result of non-EXACTLY measurement accounting for the size of zero-dimension views and then redistrib- uting space as though they had initally been set as AT_MOST, whereas EXACTLY would always redistribute space as though they had initially been set as zero-dimension. Makes perfect sense, right? This CL updates non-EXACTLY measurement to always calculate the minimum dimensions requested by zero-dimension views, but then to redistribute the space according to weight. Bug: 22810327 Change-Id: Iba8a3d26f2724e5fa9a30457119b4564eb285edb
/frameworks/base/core/java/android/widget/LinearLayout.java
|
5a969dfd8e45f6650d3dc35d3438d13754c70c2e |
|
31-Jul-2015 |
Alan Viverette <alanv@google.com> |
Revert two changes to LinearLayout measurement "Include non-zero dimension views in excess space calculation" and "Always distribute excess space in LinearLayout measurement" changed LinearLayout behavior significantly in a way that wasn't covered by CTS tests. This reverts commits da2f3044092318d44173bdb9918f31c592b86a73 and 4fabc021583cfd5cc551eda7d7b9809683a6ca9a. Bug: 22862047 Change-Id: I8d37a525ccf295445d3239b80e5cacb10bf3c947
/frameworks/base/core/java/android/widget/LinearLayout.java
|
da2f3044092318d44173bdb9918f31c592b86a73 |
|
30-Jul-2015 |
Alan Viverette <alanv@google.com> |
Include non-zero dimension views in excess space calculation Bug: 22840778 Change-Id: Iba44c59bbaa48f63b26f342e0510b4c421e8748b
/frameworks/base/core/java/android/widget/LinearLayout.java
|
4fabc021583cfd5cc551eda7d7b9809683a6ca9a |
|
29-Jul-2015 |
Alan Viverette <alanv@google.com> |
Always distribute excess space in LinearLayout measurement Previously, excess space was added to existing measured dimensions. This consistently resulted in incorrect allocation of excess space, since the delta already included the height of any measured children rather than just the excess space itself. This CL ensures that excess space is always distributed according to the layout weights. Bug: 22810327 Change-Id: I482a553c469169769cc40ab3d88b4a44023f3eb5
/frameworks/base/core/java/android/widget/LinearLayout.java
|
f102d4266be803e16543c81df6f380bd4c447c86 |
|
30-Jun-2015 |
Doris Liu <tianliu@google.com> |
Allow null child view when checking whether divider should draw The beginning divider should draw before the first child that is not set to GONE. Incidentally, there needs to be a check for such a child, which involves checking the visibility of all the children with lower indices. This CL takes into account the scenarios where children with lower indices could be null, in which case we'll treat them as if they were GONE. Bug: 22199594 Change-Id: Iefc73ef87beec219898c967b9a3ccebd1e3b5b4c
/frameworks/base/core/java/android/widget/LinearLayout.java
|
ec6a4cdedab7faaf933dbbd86f7f74c7bd856baf |
|
26-Jun-2015 |
Doris Liu <tianliu@google.com> |
Fix logic for whether beginning/end divider should be drawn Bug: 18945384 Change-Id: Ib8e785cb97d288e39a39b968bcb9c05410acbe34
/frameworks/base/core/java/android/widget/LinearLayout.java
|
d5dbf4b2a09c9cf2d17fa6af3fdf75d1fb774056 |
|
11-Jun-2015 |
Adam Powell <adamp@google.com> |
Check targetSdkVersion when passing size hints for UNSPECIFIED specs As of MNC stock widgets will pass a size in UNSPECIFIED MeasureSpec values as a hint of the container size. This lets things like list items size themselves at 1/3 the size of their container. This breaks assumptions in a few existing applications, so maintain the old expectation of 0 size in UNSPECIFIED MeasureSpecs for apps targeting older SDK versions. Bug 20975083 Change-Id: Ic7318e88854e00d96852dde2c0e10376b42bf77f
/frameworks/base/core/java/android/widget/LinearLayout.java
|
78528b22c29f570469fe3c75328042f83a5a24c3 |
|
02-Jun-2015 |
Selim Cinek <cinek@google.com> |
Fixed a RTL layouting bug with LinearLayout When the RTL properties of a horizontal LinearLayout changed, nobody enforced the view to be layouted anew, even though its layout is dependent on the layout direction. This could lead to stale layouts being temporarily layouted the wrong way. Bug: 20495301 Change-Id: I979c8d86ee711626b2901b65ebdf007c1eb1c0fa
/frameworks/base/core/java/android/widget/LinearLayout.java
|
94a6d15ede149189bba9e5f474ed853c98230e75 |
|
06-May-2015 |
Siva Velusamy <vsiva@google.com> |
Use new hierarchy viewer protocol in all View subclasses A previous CL introduced a new way of encoding view properties for use by heirarchy viewer. This CL updates all views using the old @ExportedProperty annotation to use this new method. The older mechanism will be removed in a subsequent CL. Change-Id: I6cc23b90cd9da1c6ce89b4caffe54874db203452
/frameworks/base/core/java/android/widget/LinearLayout.java
|
b6824bf58a0cd34395993fa204217e8e246de6fb |
|
13-Apr-2015 |
Filip Gruszczynski <gruszczy@google.com> |
Make UNSPECIFIED measure spec include size hint. Change-Id: I6c4f193d0590824c644e20e8af16d055a04ac9c9
/frameworks/base/core/java/android/widget/LinearLayout.java
|
1592f98973ffffe828d34d90ddb944947d510eba |
|
06-Mar-2015 |
Scott Kennedy <skennedy@google.com> |
Merge "Allow attrs to be @Nullable in TextView and LinearLayout"
|
3a1fa10e13f72396eb0d218ee4d7aad2a77134e3 |
|
06-Mar-2015 |
Scott Kennedy <skennedy@google.com> |
Allow attrs to be @Nullable in TextView and LinearLayout Change-Id: I46ac6cddf010e7ce59de6272c30e824104e28acb
/frameworks/base/core/java/android/widget/LinearLayout.java
|
08c7116ab9cd04ad6dd3c04aa1017237e7f409ac |
|
28-Feb-2015 |
John Spurlock <jspurlock@google.com> |
Remove unused imports in frameworks/base. Change-Id: I031443de83f93eb57a98863001826671b18f3b17
/frameworks/base/core/java/android/widget/LinearLayout.java
|
a7bb6fbeab933326d58aa806d8194b7b13239d34 |
|
04-Feb-2015 |
Dianne Hackborn <hackbod@google.com> |
First quick implementation of auto assist data. Introduce new AssistData class that contains all data the framework automatically generates for assist. Currently populated with a very simple tree structure representing the app's view hierarchy. Reworked how we populate the class name for accessibility info, so this is provided through a new method call on View that subclasses can override. This method is also used to populate the class name in AssistData. Change-Id: Ibd0acdc8354727d4291473283b5e4b70894905dc
/frameworks/base/core/java/android/widget/LinearLayout.java
|
a54956a0bc611b1e9b3914edc7a604b59688f6b7 |
|
08-Jan-2015 |
Alan Viverette <alanv@google.com> |
Fix accessibility delegation Ensures that delegate code is run last. Previously, calling the super method from an accessibility delegate set on a widget would only run code in the widget's parent. Next, the delegate code would run. Finally, the widget's code would run. As a result, the widget code would override any data supplied by the delegate. By moving all overridden code to internal methods, we ensure that the call chain for super includes the widget's parent code followed by the widget's code. The delegate code will always run last. BUG: 17641433 Change-Id: Ib9d403156c1fc4fb04f65f3c126d1277a44b3740
/frameworks/base/core/java/android/widget/LinearLayout.java
|
4597e9806948256e82b9f1cdaa7019cbbd912668 |
|
29-Jul-2014 |
Jon Miranda <jonmiranda@google.com> |
Exposed getLocationOnScreen, added formatToHexString method. In order to use the ExportedProperty annotation, I needed a public non-void method which is why I created a new "public int[] getLocationOnScreen()." The formatToHexString method is used to convert an int or byte to a hex string prefixed with "0x". I set the value to true on these flags: mGravity, mPrivateFlags, mSystemUiVisibility, mViewFlags, mGroupFlags, mMarginFlags, and flags. Change-Id: I5914992ba19b80643dfcc6caa487398452e18cbc
/frameworks/base/core/java/android/widget/LinearLayout.java
|
65be9cc34c1619d3ba71726c821820f394b694ab |
|
25-Feb-2014 |
Alan Viverette <alanv@google.com> |
Force measurement in LinearLayout if any views are skipped BUG: 12249256 Change-Id: I805cc70c4a2982befd9eb625be1378e6a2d9eba6
/frameworks/base/core/java/android/widget/LinearLayout.java
|
d17e719da0914aaee0bf6b21e92f4f3e4a4e8293 |
|
14-Sep-2013 |
Alan Viverette <alanv@google.com> |
Merge "Clean up layout constructors, make them consistent"
|
d9273d6f289d9b55da3fd0db2f659fdfb48106a8 |
|
31-May-2013 |
Tor Norbye <tnorbye@google.com> |
Add typedefs and nullness annotations. This changeset adds in typedef annotations (custom annotations marked with @IntDef) for various int parameters and return values in the API. It also adds nullness annotations for cases where the documentation explicitly mentioned null policy, or where it was blindingly obvious from the context. Also fixed some typos in the documentation. Change-Id: Ica27c01368895818e26237544edd8483007155bb
/frameworks/base/core/java/android/widget/LinearLayout.java
|
d6479ec5eec13914f656f6be996d95fe1610fd57 |
|
11-Sep-2013 |
Alan Viverette <alanv@google.com> |
Clean up layout constructors, make them consistent All constructors now flow through to each class's own 4-argument constructor. This ensures that theme attributes are applied even if a base AttributeSet is not provided. BUG: 10680863 Change-Id: I727d2961bf017c6a5e0206367081670782583394
/frameworks/base/core/java/android/widget/LinearLayout.java
|
617feb99a06e7ffb3894e86a286bf30e085f321a |
|
10-Sep-2013 |
Alan Viverette <alanv@google.com> |
Add View constructor that supplies a default style resource Also updates the constructor of every class that extends View. BUG: 10676369 Change-Id: Ifaf27bf82028d180afa4931c0e906df88d858ac3
/frameworks/base/core/java/android/widget/LinearLayout.java
|
0a0e155cadecd32599a7354a1836232c885f4bd2 |
|
07-Aug-2013 |
Alan Viverette <alanv@google.com> |
Add copy constructors for all widget-specific LayoutParams BUG: 10215589 Change-Id: I4c040091e216c87f851d6b617107f43729e55b0c
/frameworks/base/core/java/android/widget/LinearLayout.java
|
b1e76ebaabd71200f9a8dbd00d62ae849735b735 |
|
01-Dec-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
am 2e8dd459: am 4e1b2f44: am 20b76b9f: am 1e761ded: Merge "Fix typos in LinearLayout comments" into jb-mr1-dev * commit '2e8dd459fb111a8e38b01af4abbebe3b8acb497b': Fix typos in LinearLayout comments
|
1e761ded55695a9d76a6f00ee9504625581e8d3a |
|
01-Dec-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
Merge "Fix typos in LinearLayout comments" into jb-mr1-dev
|
ea5e56ad9c2324dd6fbeab64e031878e03122c40 |
|
30-Oct-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
am d31f0ab9: am 9d662c77: am 68b14054: Merge "Revert "Fix bug #7325234 LayoutParams are not resolved correctly (Settings apps looks broken on Manta in Arabic)"" into jb-mr1-dev * commit 'd31f0ab93f4f35a7ca6df6d428db2a5fd3d6750a': Revert "Fix bug #7325234 LayoutParams are not resolved correctly (Settings apps looks broken on Manta in Arabic)"
|
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
|
fc53e584d3d6ae106752cce334f143a68eb161bd |
|
25-Oct-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fix typos in LinearLayout comments - woow those were very old ones! Change-Id: I72bf71d5c5aa14f32401aed04462d562672016f8
/frameworks/base/core/java/android/widget/LinearLayout.java
|
287fc821bcdbcae62c45944469767040f8ed20f1 |
|
11-Oct-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
am ce6e952c: am 91622961: am f6215e55: Fix the build * commit 'ce6e952cd2026dae30d1ccc13c118c375eca99e4': Fix the build
|
f6215e55df1ab4f6cda33dd081c0a91062a1be63 |
|
11-Oct-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
Fix the build Change-Id: I9c79677ee4f68d6fc82b754d08e701229725c2a6
/frameworks/base/core/java/android/widget/LinearLayout.java
|
43c3b139e4fe2f0bc0f0aeee6de327d56e971919 |
|
11-Oct-2012 |
Fabrice Di Meglio <fdimeglio@google.com> |
am e7af2a37: am ee65e1d3: am 7573b1ee: Merge "Fix bug #7325234 LayoutParams are not resolved correctly (Settings apps looks broken on Manta in Arabic)" into jb-mr1-dev * commit 'e7af2a370c2f5e108068a05a054b1b3a88fb61df': Fix bug #7325234 LayoutParams are not resolved correctly (Settings apps looks broken on Manta in Arabic)
|
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
|
ad365cc217c989c3b688ae839d6f94ee8889a84e |
|
27-Sep-2012 |
Philip Milne <pmilne@google.com> |
Optical bounds support for LinearLayout, TableLayout and TableRow. The generic support for optical bounds provided in: https://googleplex-android-review.googlesource.com/#/c/228269/ did not work correctly for nested LinearLayouts. With this fix all the layouts in the APIdemos now seem to layout correctly when the optical bounds mode is enabled. (There's currently no, user level, way to do this. Instead, the optical bounds layout mode has to be enabled on a per view basis.) Change-Id: Id3d1d84445a8a2df277ddfe679c42f2d6cf775f4
/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
|