d9df810a8e9ac28148c853249f0951329053c784 |
|
04-Nov-2014 |
Mindy Pereira <mindyp@google.com> |
Add secondary method for setting background from color as well as resource Fixes b/18235547 SwipeRefreshLayout method setProgressBackgroundColor(int colorRes) has no comparable method for color values Change-Id: I7f6abaa2cbed3b4bd3818da63a11c9c20ef95dc1
/frameworks/support/v4/java/android/support/v4/widget/SwipeRefreshLayout.java
|
3fba72ed900aa288256bdf29427df39753964ff0 |
|
28-Oct-2014 |
Mindy Pereira <mindyp@google.com> |
Arrowhead should shrink as disc moves up for progress view Fixes b/17374366 Synchronize pull to refresh animations Change-Id: Ide2bef5118e8248f3fdfb31ef406df7eb304ac66
/frameworks/support/v4/java/android/support/v4/widget/SwipeRefreshLayout.java
|
eb82ab9453d921af7a66bd345843c9d992f84dd6 |
|
28-Oct-2014 |
Mindy Pereira <mindyp@google.com> |
Merge "Clamp mInitialMotionY to initialDown + touchSlop; add missing break" into lmp-mr1-dev
|
71ea2e2a57d48a75c0086964727931d8edf710d1 |
|
27-Oct-2014 |
Mindy Pereira <mindyp@google.com> |
Clamp mInitialMotionY to initialDown + touchSlop; add missing break clamp this to initialDown + slop instead of using the current Y. A very fast motion can end up treating anything *over* the touch slop value as equal to the touch slop, at which point motion begins on the next event. That's usually not quite what you want Also, fixes external issue: Issue 78106: No break in SwipeRefreshLayout.java in android 5 onInterceptTouchEvent module Change-Id: I97a5248d3a5b0051e814d0c5bc6cc79cc11e0320
/frameworks/support/v4/java/android/support/v4/widget/SwipeRefreshLayout.java
|
241d15309b21a8857de2bda0afaf06668bdd348e |
|
27-Oct-2014 |
Mindy Pereira <mindyp@google.com> |
Merge "Make sure the initial motion y takes into account touch slop" into lmp-mr1-dev
|
9c6db363573da735f9ecf15e68e2c2c375acc657 |
|
27-Oct-2014 |
Mindy Pereira <mindyp@google.com> |
Make sure the initial motion y takes into account touch slop Fixes b/17955738 SwipeRefreshLayout does not visually respect start param in #setProgressViewOffset Change-Id: Iac964a9f248cbcb5742cc686f6a194601c76f469
/frameworks/support/v4/java/android/support/v4/widget/SwipeRefreshLayout.java
|
062bc5d81cac509fcd2feacf164e0bf4c009b2c7 |
|
27-Oct-2014 |
Mindy Pereira <mindyp@google.com> |
Expose a method to get the circle diameter Fixes b/17955739 [SwipeRefreshLayout] #setProgressViewOffset start and end should not be top-aligned if CIRCLE_DIAMETER is not exposed Change-Id: I22e0b33377baff711213174b78c7bccddee227ca
/frameworks/support/v4/java/android/support/v4/widget/SwipeRefreshLayout.java
|
07a4db40e79aae23694b205f99b013ee2e4f2307 |
|
19-Sep-2014 |
Mindy Pereira <mindyp@google.com> |
Don't crash if we don't get a down event but do get an up event. Fixes b/17572508 Crash in SwipeRefreshLayout.onTouchEvent Change-Id: I19d8aa5b37eac173a58094a483db2e880e3770f5
/frameworks/support/v4/java/android/support/v4/widget/SwipeRefreshLayout.java
|
38bc495aadac2cc72297e1dc89f61589f8546dec |
|
17-Sep-2014 |
Mindy Pereira <mindyp@google.com> |
Reset the alpha of the circle view after animations complete Fixes b/17517898 Gingerbread: second pull of the swipe to refresh shows a faded circle Change-Id: I7af12186abf4933aa9492885af338fd9f785a11c
/frameworks/support/v4/java/android/support/v4/widget/SwipeRefreshLayout.java
|
4e987010ab5116581826eb40aece85a46968cfa1 |
|
15-Sep-2014 |
Mindy Pereira <mindyp@google.com> |
Correctly implement getChildDrawingOrder Avoid putting both child and circleview at position 1 Fixes b/17499860 SwipeRefreshLayout double draws all content underneath Change-Id: I418916449298e9a453322b780404c870725841b8
/frameworks/support/v4/java/android/support/v4/widget/SwipeRefreshLayout.java
|
d562094b8a6836d406a2c7dd4c64100257784a57 |
|
12-Sep-2014 |
Mindy Pereira <mindyp@google.com> |
Merge "When using a custom start/ end make sure to correctly calculate the distance" into lmp-dev
|
ed40f32f5eed82857fdc83620fd7da77fb33eaab |
|
11-Sep-2014 |
Mindy Pereira <mindyp@google.com> |
When using a custom start/ end make sure to correctly calculate the distance The correct distance to travel is custom end - custom start Fixes b/17436627 SwipeRefreshLayout can be pulled farther when using a large start offset Change-Id: Id1851a8e82e75dedcf616fb699a3e9b295c045be
/frameworks/support/v4/java/android/support/v4/widget/SwipeRefreshLayout.java
|
e51e32e8c7ce74a19e1ad69c75f0b6d5dadb313c |
|
11-Sep-2014 |
Mindy Pereira <mindyp@google.com> |
Make sure to always hide the progress spinner after cancel refresh/ refresh complete Fixes b/17460923 always hide the progress spinner on cancel of refresh/ complete of refresh Change-Id: Ief803427339122805d11b1377fd652b650008836
/frameworks/support/v4/java/android/support/v4/widget/SwipeRefreshLayout.java
|
5e31e2ad5b0c1f62b93a4e554d16f8b9d28b5a15 |
|
03-Sep-2014 |
Mindy Pereira <mindyp@google.com> |
Fix issues for a progress spinner with a custom start and end position 1) make sure it snaps to the correct location after the user lets go 2) make sure that if the user doesn't reach the trigger point for refresh, the view scales back down and returns to its starting position fixes b/17361792 SwipeRefreshLayout does not return to start offset after swipe Change-Id: Ie5afd2e40add8f3c8523bada7a37c95009bcc9ac
/frameworks/support/v4/java/android/support/v4/widget/SwipeRefreshLayout.java
|
def2cfbb2561372e7b30fc88219af944c8121475 |
|
02-Sep-2014 |
Mindy Pereira <mindyp@google.com> |
Make sure to use the measured circle height in all places when computing original offset Fixes b/17284917 swipe refresh circle hangs slightly under the toolbar when the user does not complete the swipe gesture on pre-L builds Missed 1 spot before Change-Id: I8798708a5fb6b15a41ff4935ca1b6a9cc44612ac
/frameworks/support/v4/java/android/support/v4/widget/SwipeRefreshLayout.java
|
cdf346714ac98eb4f40acf33f4328eb68edfb2ef |
|
27-Aug-2014 |
Mindy Pereira <mindyp@google.com> |
Use the negative measured height as the starting offset of the progress view Fixes b/17284917 swipe refresh circle hangs slightly under the toolbar when the user does not complete the swipe gesture on pre-L builds Fixes b/17227950 pdtr shadow stuck on screen Change-Id: I22f730681d948e605d04764bc430c64a015b6039
/frameworks/support/v4/java/android/support/v4/widget/SwipeRefreshLayout.java
|
c39bdbe9d24491caf92194229393ff58c16aed7f |
|
26-Aug-2014 |
Mindy Pereira <mindyp@google.com> |
Update the measured height/ width for pre-L SDK's to include shadows Fixes b/17258999 pull to refresh final specs: pre L Also, remove the arrowhead extra offset; looks bad on older platforms, useless on new ones Change-Id: I76136d5365d99bc9b331d23a2fa8ed07c4751fbd
/frameworks/support/v4/java/android/support/v4/widget/SwipeRefreshLayout.java
|
dd27d55a5152f86c07758067e587bdd5b719abaf |
|
24-Aug-2014 |
Mindy Pereira <mindyp@google.com> |
Fixup the transition between colors in the swipe refresh progress circle Previously, there was a jumpy looking transition because the start position/rotation of the new arc re-wound to zero instead of starting where the last color arc ended Makes the min amount the arc set to match the height of the arc Updates the end cap of the progress circle to be a square instead of round Updates the sizes of the progress circle to the final spec Makes sure that the arrowhead does not visually overlap the arc when the progress circle is faded Works around skia issue on kitkat: the arrowhead was off by -0.25f radians because rotating the path that way in a matrix failed to respect the negative offset Fixes b/17113763 Refresh indicator: color should not change instantly in contracted state fixes b/17203935 Pull to refresh final specs fixes b/17212162 arrowhead trails behind arc in pre-LMP phones fixes b/17204307 Arrow in pull-to-refresh overlaps stroke and creates opaque artifact Change-Id: I181d909726094a338245bc70d8e827068e0c3416
/frameworks/support/v4/java/android/support/v4/widget/SwipeRefreshLayout.java
|
dc943d6192dab40df68b6b583c84e64045ea1bc8 |
|
15-Aug-2014 |
Mindy Pereira <mindyp@google.com> |
Multiple visual and animation polish updates to the SwipeRefreshLayout 1) update default/ large circle stroke and arrow head dimensions 2) when swiping, start the progress circle/ arrow at 30% opacity and animate to 100% when the trigger pos is reached 3) add api for just sending the ending position of the progress spinner 4) update overdrag / tension when the user is past the point where they can trigger refresh to match spec Fixes b/16984776 polish swipe to refresh motion after refresh target is reached/ color shift when target reached Fixes b/17090709 Need to expose mCircleHeight in SwipeRefreshLayout Change-Id: Idaa66ce91d66e6c0b919d5658a5cc747631dec5d
/frameworks/support/v4/java/android/support/v4/widget/SwipeRefreshLayout.java
|
0b7c53c6ee75c8473bcefd0dff9c6e3ed6c20410 |
|
12-Aug-2014 |
Mindy Pereira <mindyp@google.com> |
Make the swipe refresh background spinner visible during the swipe gesture on gingerbread and before fixes b/16985034 swipe refresh progress indicator does not always show up on gb Change-Id: I1feccccb35ab17e127cc7db22c1fadc7a092a12f
/frameworks/support/v4/java/android/support/v4/widget/SwipeRefreshLayout.java
|
3b8d2549e1a93e640335919d2b405907283afda1 |
|
12-Aug-2014 |
Mindy Pereira <mindyp@google.com> |
Merge "Fix the weird jitter when passing the original target offset; scale down arrowhead" into lmp-dev
|
8a9f3cb556aec9fd912909127c3f4bbc8f35232d |
|
08-Aug-2014 |
Mindy Pereira <mindyp@google.com> |
Fix the weird jitter when passing the original target offset; scale down arrowhead Fixes b/16898806 swiperefreshwidget: weird jump when it hits the threshhold Fixes b/16890278 arrowhead in swipe to refresh should shrink instead of just disappearing Change-Id: Ifcc43f2b80c603853a0d545b0707440b70bd615e
/frameworks/support/v4/java/android/support/v4/widget/SwipeRefreshLayout.java
|
d08402a890f1ac4d3de832a9a781cbc5ebde804f |
|
08-Aug-2014 |
Mindy Pereira <mindyp@google.com> |
Fill out missing javadocs I was asked to fix this before ship Fixes b/16894518 MaterialProgressDrawable and SwipeRefreshLayout are missing some documentation Change-Id: I212bafd77f274dbbc764263651fc22545d039008
/frameworks/support/v4/java/android/support/v4/widget/SwipeRefreshLayout.java
|
4ca82494575dc4927e7ff51291c3645025cc9414 |
|
08-Aug-2014 |
Mindy Pereira <mindyp@google.com> |
Shorten duration of hiding the progress spinner Fixes b/16870069 use short duration for shrinking away the swipe refresh spinner Change-Id: Iaf21c8b75d0d8a3ef3e691ee2cf3c296851d7b11
/frameworks/support/v4/java/android/support/v4/widget/SwipeRefreshLayout.java
|
74437a01478b39230bb5b4657b74480ede53ae94 |
|
06-Aug-2014 |
Mindy Pereira <mindyp@google.com> |
Add a triangle to the front of the spinner Fixes b/16342364 add scaling arrow to the front of progress spinner Change-Id: Iddafe0aa8c00bc8601aa9bc783b2af265d14eadb
/frameworks/support/v4/java/android/support/v4/widget/SwipeRefreshLayout.java
|
19506c9a0aacfc1c8de038e4e3f0b47e858b3a63 |
|
07-Aug-2014 |
Mindy Pereira <mindyp@google.com> |
Merge "Make the progress circle fade out pre-HC" into lmp-dev
|
96dfc170940d2f7218317242115eda1273863966 |
|
05-Aug-2014 |
Mindy Pereira <mindyp@google.com> |
Add a shadow behind the progress circle Fixes b/16343408 add shadow behind swipe progress circle Change-Id: I1b79a8d04704cef97a8fa85ff0ec8ff7b506fe8c
/frameworks/support/v4/java/android/support/v4/widget/SwipeRefreshLayout.java
|
d0b65a16762b554ee6531844b021e3e0975cbf18 |
|
29-Jul-2014 |
Mindy Pereira <mindyp@google.com> |
Make the progress circle fade out pre-HC Fixes b/16329404 pre-HC: make the progress circle fade in instead of scale Change-Id: I684c6f26983f51ca62d57b149bf42c58626b833c
/frameworks/support/v4/java/android/support/v4/widget/SwipeRefreshLayout.java
|
c27bc76d7eac50363e6cd063ae41996833f52ebe |
|
31-Jul-2014 |
Mindy Pereira <mindyp@google.com> |
Make sure to cancel all other animations before starting the new animation Fixes b/16518274] PDTR spinner doesn't always disappear after PDTR is complete, leaves white circle behind Fixup the rotation in response to drag; this should be at the same rate as growing the circle Change-Id: I0f1accc0167c9bf3884e7461c0177d72b6f2d791
/frameworks/support/v4/java/android/support/v4/widget/SwipeRefreshLayout.java
|
0f3c6c1be783cfb67a2d11a1a027de0847949064 |
|
08-Jul-2014 |
Mindy Pereira <mindyp@google.com> |
Material design style swipe to refresh Use safer mechanism for drawing the progress spinner on top Change-Id: Ib88857169b3d4cea4e742c882beb1acf6fcb2488
/frameworks/support/v4/java/android/support/v4/widget/SwipeRefreshLayout.java
|
689ab224266f62aefb35ef0b80af6edf66eb8972 |
|
08-Jul-2014 |
Mindy Pereira <mindyp@google.com> |
Material design style swipe to refresh b/15672855 update swipe refresh for Quantum] Change-Id: I692772260d31fea54a642f3020d02dcb763d1d5d
/frameworks/support/v4/java/android/support/v4/widget/SwipeRefreshLayout.java
|
31cba2230f2d39d69a68c15d34ffef797afcd367 |
|
18-Jul-2014 |
Mindy DelliCarpini <mindyp@google.com> |
Revert "Material design style swipe to refresh" This reverts commit 12ffe36178df269e0c2d3b33f7de360e74c63f71. need to fix docs; cherry picking it back in with the fix Change-Id: Ie386264870ba40727e83056a0f1a8cbc91aee3a2
/frameworks/support/v4/java/android/support/v4/widget/SwipeRefreshLayout.java
|
12ffe36178df269e0c2d3b33f7de360e74c63f71 |
|
08-Jul-2014 |
Mindy Pereira <mindyp@google.com> |
Material design style swipe to refresh b/15672855 update swipe refresh for Quantum Change-Id: I533ddfbfbf1ebf03dafc86b9f913d584c863b2a2
/frameworks/support/v4/java/android/support/v4/widget/SwipeRefreshLayout.java
|
b3115149a1b8bae074cbce6cb9a42da1e662d377 |
|
18-Jul-2014 |
Andrew Sapperstein <asapperstein@google.com> |
Revert "Material design style swipe to refresh" This reverts commit 2c5b547f947f9256b991489bc7d5cbbf09f8a51d. Change-Id: If67777aabd56565be6748cda5ac5134bf67d7385
/frameworks/support/v4/java/android/support/v4/widget/SwipeRefreshLayout.java
|
2c5b547f947f9256b991489bc7d5cbbf09f8a51d |
|
08-Jul-2014 |
Mindy Pereira <mindyp@google.com> |
Material design style swipe to refresh b/15672855 update swipe refresh for Quantum Change-Id: I89df442ec3a922c950a02a60c34f75ec4fefa31f
/frameworks/support/v4/java/android/support/v4/widget/SwipeRefreshLayout.java
|
ca9e92293ff32b4a8a15513b0a7afe42c127cdb7 |
|
06-May-2014 |
Andrew Flynn <flynn@google.com> |
Revert "Separate scroll and swipe views in SwipeRefreshLayout" This reverts commit cb084a5eea8cc641096fc288cb7156e0bb866d81. Change-Id: If8606bea02389900832a68bc84144c9e552797c4
/frameworks/support/v4/java/android/support/v4/widget/SwipeRefreshLayout.java
|
cb084a5eea8cc641096fc288cb7156e0bb866d81 |
|
01-May-2014 |
Andrew Flynn <flynn@google.com> |
Separate scroll and swipe views in SwipeRefreshLayout Add a new view that gets tracked by SwipeRefreshLayout. This allows SwipeRefreshLayout to have a full scrollable single child, but have the actual view that gets dragged down be separate from the only single child. This is useful for situations where there is a scroll view that has anchored headers or footers. The progress bar is additionally moved down so that it's the top anchor for the swipe view that is getting dragged downward. The swipe view is specified by exposing a setTarget() method that takes in the resource id of the view to become draggable. This change is backwards compatible in that if setTarget() is not called, it will default to having both the scroll and swipe view point to the same view that is the single child of the SwipeRefreshLayout. Change-Id: I346405656dba5c5435124763a92de7d42ddda685
/frameworks/support/v4/java/android/support/v4/widget/SwipeRefreshLayout.java
|
ca89dcd4dd8013b11f98bf79d8b9cb9cfc602aed |
|
07-Apr-2014 |
Chris Banes <chrisbanes@google.com> |
Merge "Fix jitter when scrolling back on SwipeRefreshLayout" into klp-ub-dev
|
dbb1c53060323726d9edd8d38832104281d7f6f2 |
|
04-Apr-2014 |
Chris Banes <chrisbanes@google.com> |
Fix jitter when scrolling back on SwipeRefreshLayout Bug: 12976151 Change-Id: Iff11734f622e47b2e2f19e0216118ffc3fbb05fb
/frameworks/support/v4/java/android/support/v4/widget/SwipeRefreshLayout.java
|
5f7fb42c9ff8a1e43a5462d19b9fcd9741f6895b |
|
02-Apr-2014 |
Chris Banes <chrisbanes@google.com> |
Allow setting SwipeRefreshLayout color scheme via colors At the moment SwipeRefreshLayout only accepts setting it's color scheme via color resource ids. This CL adds a way to set the scheme via raw color ints. Change-Id: I8fe01e45e124297669d696d8588f9dc8adf1e281
/frameworks/support/v4/java/android/support/v4/widget/SwipeRefreshLayout.java
|
272acf0aa6bc9bf0d744b68a5b8b092c2c3e46d4 |
|
25-Feb-2014 |
Chris Banes <chrisbanes@google.com> |
Improve SwipeRefreshLayout's touch handling At the moment SwipeRefreshLayout's touch handling does not handle all cases. Specifically it relies on the child view handling all of the touch events. This means that non-scrollable views can not trigger a refresh (e.g. empty views). This CL fixes this by using the standard touch handling patterns. Change-Id: I2c4aebb3ef3a89317293d0d295752f84f6786e36
/frameworks/support/v4/java/android/support/v4/widget/SwipeRefreshLayout.java
|
6611d8cf18999a874e37245e9ecf269e0e69846b |
|
17-Dec-2013 |
Mindy Pereira <mindyp@google.com> |
Read enabled flag from XML if it is suppled; default is true Fixes b/12128732 android:enabled="false" does not disable SwipeRefreshLayout from XML layout file Change-Id: Ifcf4421ca66113d9e4466726a0a7c0fe775387ea
/frameworks/support/v4/java/android/support/v4/widget/SwipeRefreshLayout.java
|
f25dedc8624a17b43426781516ac88e8ff01d5bd |
|
04-Dec-2013 |
Mindy DelliCarpini <mindyp@google.com> |
Implement method for determining if content is vertically scrollable for gb Since Viewcompat.canscrollvertically always returns false on sdk <= gb, use the type of the view to determine if the content that is scrollable in the swiperefreshlayout is scrolled to the top. Fixes b/11988379 SwipeRefreshLayout behaves differently on GingerBread than KitKat Change-Id: Iacb999c99e6918acd5a0d3c88806d13c16bb8b52
/frameworks/support/v4/java/android/support/v4/widget/SwipeRefreshLayout.java
|
e9a361cf082bf8fbe908d1abfdc327209ec01d82 |
|
07-Nov-2013 |
Mindy Pereira <mindyp@google.com> |
SwipeRefreshWidget Change-Id: I4f9c03796075b144d97ab38e978d0f4230f3bd78
/frameworks/support/v4/java/android/support/v4/widget/SwipeRefreshLayout.java
|