History log of /frameworks/support/compat/java/android/support/v4/view/ViewCompat.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
037924948b085de38de4e6646a2f4cd13de9dc0d 24-May-2017 Aurimas Liutikas <aurimas@google.com> Clarify ViewCompat#getMinimumHeight/Width method javadocs

Bug: 38379718
Change-Id: I21a773d08952ae3403728fe0ba6ad19184c0e294
/frameworks/support/compat/java/android/support/v4/view/ViewCompat.java
76daed103193a1756535d1f59b165e98e1d17445 13-Dec-2016 Chris Banes <chrisbanes@google.com> Nested scrolling++

This CL adds a number of overloads for the support
implementation of the nested scrolling APIs, to
add the 'type' parameter. This allow developers to
differentiate between direct touch scrolls, and
other non-direct scrolls. Primarily this is to support
dispatching the nested scrolling APIs from when a
scrolling view settles from a fling.

NestedScrollView and RecyclerView have both been updated
to dispatch these events from a fling settle. AppBarLayout
has also been updated to consume these new events.

The way the interfaces have been implemented allow us to
be API compatible without breaking anyone. Yes, the names
are fugly but so be it. If developers wish to support the
new APIs they just need to change the interface they
implement.

This CL also fixes some scroll issues in NSV and RV:
- NSV: fling not starting if scroll is completely
consumed (since it doesn't think it is dragging).
- RV: intercept setting the wrong X/Y start values
sometimes causing flinging in the wrong direction.

BUG: 22780822
Test: included for RV

Change-Id: I37de005e4fb33b5b443852058f3e1ab22ef98e20
/frameworks/support/compat/java/android/support/v4/view/ViewCompat.java
905bcd294a7351749c60382eab03aa0c679e08bb 13-Apr-2017 Alan Viverette <alanv@google.com> Un-suppress NewApi lint where applicable

Reduces scope where NewApi must be retained. Updates media compat
code to use BuildCompat directly rather than checking SDK_INT
against 26 (which is not a real SDK_INT on any devices yet).

Test: ./gradlew lint
Change-Id: I052641ae0540605559ad68132ef0470bc8dc3f22
/frameworks/support/compat/java/android/support/v4/view/ViewCompat.java
8a6d3a17d966d841ff7a02521ca2783d896d696d 22-Mar-2017 Evan Rosky <erosky@google.com> Add compat shims for keyboard navigation clusters

Bug: 34361159
Test: Updated KeyboardShortcutsTestCaseWithToolbar#testAccessActionBar

Change-Id: I314143bf655c625d462d194a3fc4ebdb4a408a74
(cherry picked from commit 2bcb55fd82a953c7e295412b1f5407783aa190dc)
/frameworks/support/compat/java/android/support/v4/view/ViewCompat.java
b277db249b60e227c7574bffaa41c5e81027426b 22-Mar-2017 Kirill Grouchnikov <kirillg@google.com> Tinting support for ImageView / ImageButton sources

Test: ./gradlew support-appcompat-v7:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.v7.widget.AppCompatImageButtonTest
Test: ./gradlew support-appcompat-v7:connectedCheck --info --daemon -Pandroid.testInstrumentationRunnerArguments.class=android.support.v7.widget.AppCompatImageViewTest
Bug: 26507378
Change-Id: I91e0ece8e1f520cf00ae44d1f10f501caeef2ccf
/frameworks/support/compat/java/android/support/v4/view/ViewCompat.java
eaf58c5833a82a2d96166ae80231c8cfb53b539e 18-Mar-2017 Yangjing Zhang <zhangyangjing@gmail.com> Use appropriate post invalidation method for compat shims

Fixes: 36447441
Test: None
Change-Id: I99ad1df0348649d58d86fdd082a75b2e7a2dcd00
/frameworks/support/compat/java/android/support/v4/view/ViewCompat.java
a972a99dddff41d5f54a18629185a7290a63d1f9 10-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Introduce android.support.v7.widget.TooltipCompat"
a4c6825b4b077cb12adb4f14b825001b6fd0e865 03-Mar-2017 Vladislav Kaznacheev <kaznacheev@google.com> Introduce android.support.v7.widget.TooltipCompat

Backport com.android.internal.view.TooltipPopup with
as much style and behavior details as practically possible.
Make it available through the new TooltipCompat class.

Bug: 35669189
Test: Support7Demos > AppCompat > Action Bar >
Action Bar Usage, hover mouse over action buttons.

Change-Id: I7077d01536d5d7ca9e6865a0c169a2e0dcf34b6b
/frameworks/support/compat/java/android/support/v4/view/ViewCompat.java
c69882cb9b130902c1554ef5d3e3b06d776cd796 05-Mar-2017 Alan Viverette <alanv@google.com> Re-enable lint enforcement, fix remaining lint issues

Bug: 29630077
Test: ./gradlew lint
Change-Id: Ied1e4b1c33ba158d6bfab5439497ee4fc8284a8f
/frameworks/support/compat/java/android/support/v4/view/ViewCompat.java
f87440725bb18397f734233f422c3429e7f284eb 17-Feb-2017 Aurimas Liutikas <aurimas@google.com> Clean up AccessibilityNodeInfoCompat after minSdk 14 bump.

Bug: 32794064
Test: ./gradlew assemble
Change-Id: I676824dd88d463d9172a7060b9952e98cea20cdf
/frameworks/support/compat/java/android/support/v4/view/ViewCompat.java
7a901584fbdc757f744df113a1c3f2878a7f5628 18-Feb-2017 Aurimas Liutikas <aurimas@google.com> Yet another ViewCompat cleanup.

Bug: 32794064
Test: ./gradlew assemble
Change-Id: I52f3bfe37f4115cffc2410a6ba8f2bc42107b37c
/frameworks/support/compat/java/android/support/v4/view/ViewCompat.java
81fc1bd17ae8e30350231e50d9148c7afe2690ab 18-Feb-2017 Aurimas Liutikas <aurimas@google.com> Clean up ViewCompat by removing ViewCompatImpl interface.

Bug: 32794064
Test: ./gradlew assemble
Change-Id: I53903be33d5231581e80b4b7209a0a31e3d5eae9
/frameworks/support/compat/java/android/support/v4/view/ViewCompat.java
488bc1352aacf47d87ee09df5132c342cbf61c28 18-Feb-2017 Aurimas Liutikas <aurimas@google.com> Clean up ViewCompatHC.java usage in ViewCompat.

Bug: 32794064
Test: ./gradlew assemble
Change-Id: Ibc6125fc86a7b51c99c6dd549fd06883627ec387
/frameworks/support/compat/java/android/support/v4/view/ViewCompat.java
cff24b415dea498a4253df6a8420377b660ae197 16-Feb-2017 Vladislav Kaznacheev <kaznacheev@google.com> Merge "Add mouse hover support to ViewCompat.setTooltipText"
f0b11dd4d9811f60fa61959095b3868d6077fb11 15-Feb-2017 Vladislav Kaznacheev <kaznacheev@google.com> Add mouse hover support to ViewCompat.setTooltipText

Bug: 30898263
Test: Support7Demos > AppCompat > Action Bar >
Action Bar Usage, hover mouse over action buttons.

Change-Id: Ie577762c152bca08a6e9ead7619c0e490291c8d0
/frameworks/support/compat/java/android/support/v4/view/ViewCompat.java
94ed1837dd2e64245efd7fd0ee122804ffc78d49 15-Feb-2017 Aurimas Liutikas <aurimas@google.com> Even more ViewCompat clean up after minSdk 14 bump.

Bug: 32794064
Test: ./gradlew assemble
Change-Id: I92fc094f2d0851b2f6cad92a88b2c5362f92b985
/frameworks/support/compat/java/android/support/v4/view/ViewCompat.java
130c79c956de092c5d81b81191c8a219aace87de 15-Feb-2017 Aurimas Liutikas <aurimas@google.com> Another ViewCompat cleanup after minSdk 14 bump.

There will be more follow up CLs.

Bug: 32794064
Test: ./gradlew assemble
Change-Id: Ic745244812b9e179d55f9066f1ffda6dd63d9235
/frameworks/support/compat/java/android/support/v4/view/ViewCompat.java
2a596d57ec25cdbd574fb3cb71739771fe5e7f18 09-Feb-2017 Aurimas Liutikas <aurimas@google.com> Clean up AccessibilityDelegateCompat after minSdk 14 bump.

Bug: 32794064
Test: ./gradlew assemble
Change-Id: Ifa504fbc4031f3433595a3f3477ee387cb104890
/frameworks/support/compat/java/android/support/v4/view/ViewCompat.java
fa0f82f629bf95681c14ed559922f77a3030aa18 30-Jan-2017 Aurimas Liutikas <aurimas@google.com> Deprecated ViewCompat methods that were added in API 11.

Deprecated all the ViewCompat methods that were APIs added to View
since API 11. Additionally this removes usages of these APIs in support
library.

Bug: 32794064
Test: ./gradlew assemble assembleAndroidTest still works
Change-Id: I18fb0cc1ebc67c911eeb30aada7b8315afc15835
/frameworks/support/compat/java/android/support/v4/view/ViewCompat.java
e337f69585dee67d926bba7558b6c35acc44aa54 19-Jan-2017 Vladislav Kaznacheev <kaznacheev@google.com> Rename View.setTooltip/getTooltip to setTooltipText/getTooltipText

Bug: 34454987
Test: Support7Demos -> Action Bar Usage
Change-Id: Idee511cabee413270ac6b4d2c76c328f51217836
/frameworks/support/compat/java/android/support/v4/view/ViewCompat.java
2087d84d266e0721db568b8d95569985d9be2bc3 19-Jan-2017 Yuichi Araki <yaraki@google.com> Merge "Backport set/getTransitionName"
9bd9cddbb551bea6b6194f6bd594ca97f38a1453 13-Jan-2017 Yuichi Araki <yaraki@google.com> Backport set/getTransitionName

ViewCompat.set/getTransitionName now works for older platform versions.

Test: ViewCompatTest#testTransitionName on API levels 10, 15, 18, and 25
Change-Id: Ibebc781cde1c67c956c3b9ca2083e6fc0f83b6f4
/frameworks/support/compat/java/android/support/v4/view/ViewCompat.java
8248123f8ff5651522abf63a36b29f700426e34f 07-Jan-2017 Yohei Yukawa <yukawa@google.com> Use unhidden APIs in ViewCompat

Following APIs are no longer hidden in API 24+.
- View#dispatchStartTemporaryDetach()
- View#dispatchFinishTemporaryDetach()

Hence ViewCompat can directly call them on API 24+ devices.

Bug: 27999046
Test: Manually tested with debugger on both API 24- and 25+ devices
Change-Id: I3d7dfb1f130e5591bf4a6af8d697de5610a741cf
/frameworks/support/compat/java/android/support/v4/view/ViewCompat.java
6f1dbebfcd27a5e92c4d297f52a62b76b160754d 03-Jan-2017 Alan Viverette <alanv@google.com> Use correct regex for javadoc tag with optional description

Also fixes instances of missing @RestrictTo in compat/ directory.

Previous CLs were tested against commits rather than files, so they
returned false positives (and negatives). This one was correctly run
against the entire compat/ directory.

Bug: 33462608
Test: ran checkstyle on compat
Change-Id: I7b194bb2dbf971bf1a1306794a4b2cdf554e4e02
/frameworks/support/compat/java/android/support/v4/view/ViewCompat.java
daa85ce5c5aa5d44fabf6675ede7e7be55a79034 23-Nov-2016 Vladislav Kaznacheev <kaznacheev@google.com> Introduce ViewCompat.setTooltip

This calls View.setTooltip on API26+. The fallback
implementation is a Toast-based tooltip.

Use the new method in ActionMenuItemView,
MediaRouteButton, ScrollingTabContainerView and
TabLayout.

Bug: 31516506
Test: manual in Support7Demos and SupportDesignDemos
Change-Id: I23832a2fd5b589769225a0542c2a0ce4778e673c
/frameworks/support/compat/java/android/support/v4/view/ViewCompat.java
8e10080c914d1ad0784394fa3026b85535535847 18-Nov-2016 Aurimas Liutikas <aurimas@google.com> Move from GROUP_ID to LIBRARY_GROUP annotations

- GROUP_ID was deprecated in favor of LIBRARY_GROUP.
- Fix import order in touched files.

Test: ./gradlew assemble assembleAndroidTest
Change-Id: I2a774e93215090f42262fb86cf8e841f2a546a4f
/frameworks/support/compat/java/android/support/v4/view/ViewCompat.java
d72e9db013c885dd699ad749b69409ffb6894838 23-Sep-2016 Vladislav Kaznacheev <kaznacheev@google.com> Set default pointer icon for disabled BottomNavigationItemView

Test: run SupportDesignDemos, select "Bottom navigation view", click "DISABLE ITEM"

Bug: 31652821
Change-Id: Idac02d7a3b29fb9f6baa82835ec8e29f477a493a
/frameworks/support/compat/java/android/support/v4/view/ViewCompat.java
c39d9c75590eca86a5e7e32a8824ba04a0d42e9b 25-Aug-2016 Alan Viverette <alanv@google.com> Add @RestrictTo(GROUP_ID) annotations to match @hide docs annotations

Also removes some unnecessary @hide annotations on classes that wouldn't
have shown up in docs anyway due to package/private visibility or NO_DOCS.

Bug: 27937193
Change-Id: Iab127a5a3ce57a2d61965d3cef782621eb3859f5
/frameworks/support/compat/java/android/support/v4/view/ViewCompat.java
47082c30c630c34829439a9eecd1cf7e8d255a86 23-Aug-2016 Aurimas Liutikas <aurimas@google.com> Fix all usages of deprecated setBackgroundDrawable.

- Adds ViewCompat#setBackground that will call setBackgroundDrawable
or setBackground depending on the version.
- Replaced usages of setBackgroundDrawable with this ViewCompat version.

Bug: 30074170
Change-Id: I756c8558608da752acd6f3ca7121114d3cd1416a
/frameworks/support/compat/java/android/support/v4/view/ViewCompat.java
b897ffb1d1cfe37e2e005e7dcdcd97bc5f74205d 12-Aug-2016 Yuichi Araki <yaraki@google.com> Add ViewCompat.getDisplay

Bug: 30776880
Change-Id: I8fa46a8f6b29ae9ae41f44e16cd32b039102860a
/frameworks/support/compat/java/android/support/v4/view/ViewCompat.java
e12dfa03641ad9cf0ddf272675bbe7d1198adbfd 11-Jul-2016 Aurimas Liutikas <aurimas@google.com> Stop using a several deprecated methods/constants.

- Swap FILL_PARENT with MATCH_PARENT
- Stop using ViewCompat#getOverScrollMode and related constants
- Clean up some unused import statements.

Bug: 30074170

Change-Id: Iaafd5415ee69181cc900a7fa971cdd6f5a20c6ce
/frameworks/support/compat/java/android/support/v4/view/ViewCompat.java
45bb6bf3d08ff20a6d683557202be64c456ad39b 21-Jul-2016 Alan Viverette <alanv@google.com> Merge "Add ViewCompat.isImportantForAccessibility()" into nyc-support-24.1-dev
766430739a6cd3b51bdbdd7edc5f9ac112308b76 21-Jul-2016 Alan Viverette <alanv@google.com> Add ViewCompat.isImportantForAccessibility()

Bug: 29346786
Change-Id: I74ecfc5855b6a70023d126b6951bfca29246001b
/frameworks/support/compat/java/android/support/v4/view/ViewCompat.java
17d15d92db2288bd27b8710c68e5bc1b9b5945f0 14-Jul-2016 Kirill Grouchnikov <kirillg@google.com> Additional deprecation notices on Compat APIs.

Bug: 30089429
Change-Id: Ie835c165a5a265146fda8f6cb9cf594933d0ce7d
/frameworks/support/compat/java/android/support/v4/view/ViewCompat.java
9d5e156e95528e4d134b0c2043dcee229b2ef96e 05-Jul-2016 Chris Banes <chrisbanes@google.com> Make getX and getY return sensible values pre-v11

BUG: 29974446
Change-Id: Ia5dd6cfce5ff37320359c8f7f6e787c5ed6c3270
/frameworks/support/compat/java/android/support/v4/view/ViewCompat.java
27705d3451499dd8498effd111f1f4c7df917d87 22-Jun-2016 Chris Banes <chrisbanes@google.com> Make Snackbar work with translucent navigation bars

Also fixed an issue in ViewCompat.setOnApplyWindowInsetsListener
which makes it NPE when given a null listener.

BUG: 29075380
Change-Id: I9c91437a33eee99326f2bbfe9719667f598e005a
/frameworks/support/compat/java/android/support/v4/view/ViewCompat.java
79a141a3eaca2b69ae043c1c6b7a61c7db90d644 07-Jun-2016 Abhinav Baid <abhinavbaid@google.com> Move WindowInsetsCompat to support-compat

Move WindowInsetsCompat to the compat/java directory and pull the
default method implementations into a base IMPL.
Similarly, move the OnApplyWindowInsetsListener interface to compat/java
from compat/gingerbread.
Also, add a public constructor to WindowInsetsCompat to make its
interface fully compatible with WindowInsets.

Bug: 29181287
Change-Id: Ib8ccc1e48d526f602b5dbbadf5f2f24b0ce6d456
/frameworks/support/compat/java/android/support/v4/view/ViewCompat.java
d1a7a6fd09c42e6abfd6862a350b81cacbfa0ccb 18-May-2016 Michael Wright <michaelwr@google.com> Remove Pointer Capture API.

Bug: 26830970
Change-Id: I9292a5fb28df40372a8ca2868330b5bdde675522
/frameworks/support/compat/java/android/support/v4/view/ViewCompat.java
5265345192fe12c768ff1cd1e6a37404eaec2fda 17-May-2016 Michael Wright <michaelwr@google.com> Rename PointerIcon and Pointer Capture APIs

This is a response to API council feedback.

Bug: 26830970
Change-Id: I4f525015275c4d068cef081a6465c1b77dcce625
/frameworks/support/compat/java/android/support/v4/view/ViewCompat.java
15375aa6fd54b036f97f99229aefab2822c8a1c9 24-May-2016 Aurimas Liutikas <aurimas@google.com> Add missing @Override annotations in support library code.

Change-Id: Ifcc3a20b54d6a14b0a14aa0f48e642cf7e8c0e70
/frameworks/support/compat/java/android/support/v4/view/ViewCompat.java
39dc51f5b655cd06600002d922ba214c608a9117 17-May-2016 Michael Wright <michaelwr@google.com> Removal of Pointer APIs.

We need an intermediate step where the APIs are removed from the
support lib before renaming them because SDK relies on the
support lib build (and the support lib build relies on the SDK).

Fun.

Bug: 26830970
Change-Id: Ie1e2e946271c6d87cb6ca913f1defbb0ea98ae40
/frameworks/support/compat/java/android/support/v4/view/ViewCompat.java
f185f104c4786740765e549d535f9ba1052f96cc 10-May-2016 Kirill Grouchnikov <kirillg@google.com> Combine donut/eclair/eclairmr1/froyo/gingerbread source folders.

* Where relevant, call APIs directly and mark Compat APIs as deprecated
* Remove eclair-gingerbread folders from gradle and makefiles
* Bump LOCAL_SDK_VERSION to 9 in a couple of places that were skipped

In the next CL compat/donut will be renamed to compat/gingerbread.
Not doing this here to minimize the amount of diffs in this CL.

Change-Id: I5f418a8746b91bedd918523090b666eabe0ec20c
/frameworks/support/compat/java/android/support/v4/view/ViewCompat.java
3ac77bf186f87ecad4bf0063b2f6c4384efbd56a 27-Apr-2016 Kirill Grouchnikov <kirillg@google.com> Support module refactoring

* Splitting support-v4 into two modules, support-compat and support-core
* Adding a new library module named support-v4 that combines the two
together for backward compatibility support of existing projects
* support-compat has all Compat classes, their few direct dependencies
and all data structures in the .util package

Change-Id: Icd1b0ab3a5b61a8a2bf85bc274098f0a828963e0
/frameworks/support/compat/java/android/support/v4/view/ViewCompat.java