Commit Graph

3974 Commits

Author SHA1 Message Date
Alan Viverette
fb66415655 Fix initial FastScroller enabled state, fix padding during layout
BUG: 10182784
Change-Id: I7f1ed029b68a1e6db6af0dc21e23aebca01bef31
2013-08-07 17:57:51 -07:00
Alan Viverette
39bed695ce Fix FastScroller regression for non-UI threads
Previously it was safe to call setFastScrollEnabled() and
setFastScrollAlwaysVisible() off the UI thread. After switching
FastScroller to use an Overlay, these methods stopped working.

This change ensures that all direct interaction with FastScroller
happens on the thread that created the host AbsListView.

BUG: 10210504
Change-Id: Ib6d9bd9212965420c0de39546652e3bc2d32ff8b
2013-08-07 15:47:04 -07:00
Alan Viverette
93e095b731 Merge "Add copy constructors for all widget-specific LayoutParams" 2013-08-07 20:31:45 +00:00
Alan Viverette
0a0e155cad Add copy constructors for all widget-specific LayoutParams
BUG: 10215589
Change-Id: I4c040091e216c87f851d6b617107f43729e55b0c
2013-08-07 13:24:09 -07:00
Alan Viverette
2f3317a06d Add API for scrolling AbsListView by a pixel amount
Change-Id: Ib0fc48879991fd467242d8dc337db419edb12acf
2013-08-06 18:19:48 -07:00
Fabrice Di Meglio
3f5a90b2fb Add automatic Drawable mirroring capability when in RTL layout direction
- default value is "no mirroring"
- introduce android:autoMirrored as a new attribute for Drawable,
BitmapDrawable, LayerDrawable, StateListDrawable and NinePatchDrawable
- setting android:autoMirrored="true" means that the drawable will
be mirrored when the layout direction is RTL (right-to-left)
- also fix an issue with ImageView drawable layout direction not
updated correctly when RTL properties were changed

See bug #7034321 Need Drawable RTL support

Change-Id: If595ee5106c786f38e786d3a032e182f784a9d97
2013-08-01 15:15:10 -07:00
Alan Viverette
f45bdaf512 Merge "Don't show spinner popup if adapter is null" 2013-07-30 18:04:18 +00:00
Jean-Baptiste Queru
d248b0a4de am c2314cf5: am e700a36e: Merge "Update getCheckedItemPositions() documentation"
* commit 'c2314cf5f4efa2cc767e0069dcc2a67e12d7cd20':
  Update getCheckedItemPositions() documentation
2013-07-30 10:28:24 -07:00
Jean-Baptiste Queru
e700a36e40 Merge "Update getCheckedItemPositions() documentation" 2013-07-30 16:16:38 +00:00
Alan Viverette
b9867eab1d Don't show spinner popup if adapter is null
BUG: 10076106
Change-Id: I1c1c235645b7963f802b0747f7ca64d8aedaaa66
2013-07-29 19:07:55 -07:00
Alan Viverette
7e897aa600 Merge "Show FastScroller thumb on mouse-over" 2013-07-26 22:56:39 +00:00
Alan Viverette
a709b37eab Show FastScroller thumb on mouse-over
BUG: 9484233
Change-Id: I99a37e6d582e42b9a0fae4a0fc2d4348419bfa35
2013-07-25 14:43:24 -07:00
Alan Viverette
a089ddecaf Update setAdapter() documentation for Spinner
BUG: 9906193
Change-Id: Id21ee957cb72c9452b150a713ed37adb0fa82d30
2013-07-24 16:38:37 -07:00
Romain Guy
f9fe31d460 Merge "Fix crash in app widgets Bug #9983130" 2013-07-23 20:11:09 +00:00
Romain Guy
9870e5ca00 Fix crash in app widgets
Bug #9983130

Change-Id: Ie2319c9e8f6e7591c03061224021973b94ae07cb
2013-07-23 13:09:51 -07:00
Cyril Mottier
82ff241fd6 Update getCheckedItemPositions() documentation
getCheckedItemPositions()'s documentation previously mentioned the 
returned SparseBooleanArray was only containing checked item positions 
(i.e. get(int position) always returning true). In practice, this is 
wrong, because getCheckedItemPositions() returns mCheckStates which 
basically contains all key-value mappings that have been used. As a 
consequence if the item at position p is checked and unchecked, the 
returned SparseBooleanArray will contain a (p, false) mapping.

Another option could be to delete all keys having a false value.

Change-Id: I15f8fc2a1ba3f1501af126c272b827402cfd8b14
2013-07-23 13:58:33 +02:00
Romain Guy
d1233575b5 Merge "Use the parameter type as part of the methods cache key" 2013-07-23 00:03:51 +00:00
Romain Guy
484f4d6282 Use the parameter type as part of the methods cache key
Change-Id: Ie204d16b62028fc1eb35cc7cb3244654e1360a37
2013-07-22 16:59:31 -07:00
Michael Wright
0f80f4b584 Merge "Take advantage of KeyEvent.isConfirmKey" 2013-07-22 21:30:02 +00:00
Romain Guy
5ab9ece899 Merge "Cache reflection lookups" 2013-07-22 20:57:10 +00:00
Romain Guy
e4d4e20e8f Cache reflection lookups
This change also cleanups the code a little bit. Caching lookups
not only speed things up but it also avoids unnecessary allocations.

Change-Id: Ie3d1ae106d32b3b5f2c5d33b6318ed93cd9e27f9
2013-07-22 13:02:02 -07:00
Michael Wright
24d36f5922 Take advantage of KeyEvent.isConfirmKey
Change-Id: I2925c624338a5c622a7b3fef05b62099465b6389
2013-07-19 16:15:19 -07:00
Alan Viverette
f1f8f318bb Merge "Set transient state for focus container in ListView" 2013-07-18 22:06:22 +00:00
Alan Viverette
d44696c4cf Set transient state for focus container in ListView
BUG: 9860185
Change-Id: I0c7035e5992c56110a0cc5c94aa778bbb999deea
2013-07-18 10:37:15 -07:00
Chet Haase
7a46dde1ae Changed name of recent hasLayout() method to isLaidOut()
This new method on view reflects whether the view has been laid out
at least once since it was attached. hasLayout() seems too vague for that
meaning; every View that has a parent has a layout (since we use container,
parent, and layout interchangeably). The new version of the method
is closer to the actual meaning.

Change-Id: I519745739b6a6317faeb077aa61f994025cf81f3
2013-07-17 10:22:53 -07:00
Adam Powell
f52ae147fb am 42658ed5: am 30ad7203: Merge "Consider mScrollX when drawing the checkMarkDrawable"
* commit '42658ed5182a75b82dd2b970a1f97fc30407d1e3':
  Consider mScrollX when drawing the checkMarkDrawable
2013-07-16 17:12:49 -07:00
Adam Powell
42658ed518 am 30ad7203: Merge "Consider mScrollX when drawing the checkMarkDrawable"
* commit '30ad720304790b07112b87f973a7e6ed5e1e6ee5':
  Consider mScrollX when drawing the checkMarkDrawable
2013-07-16 17:06:36 -07:00
Adam Powell
30ad720304 Merge "Consider mScrollX when drawing the checkMarkDrawable" 2013-07-17 00:04:28 +00:00
Alan Viverette
447cdf2c06 Add disabled state to FastScroller.
BUG: 9759511
Change-Id: I555f501b33029665d94a493ee5cab5741c843328
2013-07-15 17:47:34 -07:00
Romain Guy
5fade8c69a Trace list view items management
Change-Id: If43ce115679c2bcacad26d6f59e3bfb655abff6e
2013-07-10 16:40:30 -07:00
Chet Haase
7df754e712 Remove unnecessary drawable code in CompoundButton
Some of the code in setButtonDrawable() was unnecessary, resetting
the button drawable state and then refreshing it. This caused many redundant
calls, which can add up, especially during inflation.

Change-Id: I873cf5eef697b5435a1b827cd68e5d836ee25124
2013-07-10 07:46:24 -07:00
Jean-Baptiste Queru
414b02380d resolved conflicts for merge of 9058a6c8 to master
Change-Id: I361773dac17a551dd7b4c0b0e4e649ddf7612d90
2013-07-08 15:02:41 -07:00
Jean-Baptiste Queru
9058a6c881 am 7e683ec6: am fa42e774: Merge "FastScroller: Fix to use appropriate index"
* commit '7e683ec6a53b1581671ce72782e7b25a0ae705d0':
  FastScroller: Fix to use appropriate index
2013-07-08 14:43:01 -07:00
Jean-Baptiste Queru
7e683ec6a5 am fa42e774: Merge "FastScroller: Fix to use appropriate index"
* commit 'fa42e774bc48c3172023c8c49610baa469c19e39':
  FastScroller: Fix to use appropriate index
2013-07-08 14:28:45 -07:00
Jean-Baptiste Queru
fa42e774bc Merge "FastScroller: Fix to use appropriate index" 2013-07-08 21:24:06 +00:00
Jean-Baptiste Queru
bb4991e6eb am db550fc9: am 0e545bf5: am 9775203b: Merge "SectionIndexer: Update Javadoc for ExpandableListAdapters"
* commit 'db550fc900eaf3a5a845dcd0c0bb0ead2b1582d6':
  SectionIndexer: Update Javadoc for ExpandableListAdapters
2013-07-08 12:44:50 -07:00
Jean-Baptiste Queru
db550fc900 am 0e545bf5: am 9775203b: Merge "SectionIndexer: Update Javadoc for ExpandableListAdapters"
* commit '0e545bf5502fde4fe2c96377829bd4c3f7c2d727':
  SectionIndexer: Update Javadoc for ExpandableListAdapters
2013-07-08 12:40:28 -07:00
Jean-Baptiste Queru
0e545bf550 am 9775203b: Merge "SectionIndexer: Update Javadoc for ExpandableListAdapters"
* commit '9775203b610267bf8cecaf7c00db68b73b529ced':
  SectionIndexer: Update Javadoc for ExpandableListAdapters
2013-07-08 12:37:27 -07:00
Jean-Baptiste Queru
9775203b61 Merge "SectionIndexer: Update Javadoc for ExpandableListAdapters" 2013-07-08 19:35:36 +00:00
Jean-Baptiste Queru
f5d6e24736 am 51ec7f37: am da52b9a2: am 8113b17c: Merge "Fixed incorrect calculation of dirty invalidation area"
* commit '51ec7f3725877a45b518299f279a68e6f5ea8e59':
  Fixed incorrect calculation of dirty invalidation area
2013-07-02 15:02:17 -07:00
Jean-Baptiste Queru
51ec7f3725 am da52b9a2: am 8113b17c: Merge "Fixed incorrect calculation of dirty invalidation area"
* commit 'da52b9a28756e67daa03654953678dfa08e0ca5d':
  Fixed incorrect calculation of dirty invalidation area
2013-07-02 15:00:01 -07:00
Jean-Baptiste Queru
da52b9a287 am 8113b17c: Merge "Fixed incorrect calculation of dirty invalidation area"
* commit '8113b17c473367bd1be7db707fc5b94121cb09e5':
  Fixed incorrect calculation of dirty invalidation area
2013-07-02 14:58:22 -07:00
Johan Viktorsson
e9018f7716 Fixed incorrect calculation of dirty invalidation area
Padding was already taken into consideration before calling
invalidateDrawable in ProgressBar.

Change-Id: Id7f23bd15bb19e2294c07adb2acb397100ea97e8
2013-07-01 13:43:19 +09:00
Alan Viverette
57b867f3f5 Merge "Minor ListView clean up. Exposes View.pointInView() as hidden API." 2013-06-26 22:12:28 +00:00
Alan Viverette
3d15a2b8f4 Minor ListView clean up. Exposes View.pointInView() as hidden API.
Change-Id: Ia628f8438fac5af2471efd8558c8876fae3dafb0
2013-06-25 17:27:37 -07:00
Alan Viverette
6b40cc7f8a Fix FastScroller for single-section lists and untitled sections.
Change-Id: I121d9427e87e1a9e09562642f6aa621fc1cc849a
2013-06-25 16:41:52 -07:00
Alan Viverette
db759c3f02 Merge "Implement FastScroller as an animated overlay." 2013-06-24 17:23:19 +00:00
Alan Viverette
0ebe81e8b1 Implement FastScroller as an animated overlay.
Bug: 9372090
Change-Id: I46cb67ef0482a4c8f721248d5f5e2e692144c3a1
2013-06-21 17:01:36 -07:00
Fabrice Di Meglio
1cc0a6514f Merge "Fix potential NPE if there is no child in HorizontalScrollView" 2013-06-18 23:55:01 +00:00
Fabrice Di Meglio
f2fb76cc23 Fix potential NPE if there is no child in HorizontalScrollView
- related to the previous change for saving the scroll position
- also related to bug #9463581 NPE observed while launching News&Weather app from all apps tray

Change-Id: I9f2f8a246e793eefa1cf510e15a56a1058fb9c18
2013-06-18 15:49:16 -07:00