summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Hemal Patel <hemalp@google.com> 2016-06-14 22:08:44 +0000
committer android-build-merger <android-build-merger@google.com> 2016-06-14 22:08:44 +0000
commit892d5ccdc59e6dd196ca62bcf16493ac6c0b052e (patch)
tree65e4e049c62fb76d489756be24aa098bf3ec7e12
parent2045488afd7de8747043c4c5e26c0fb6efe5da48 (diff)
parent37663db137819c4d23936c758d17d96dcc7b806b (diff)
Docs: Added overview of Custom Pointer API
am: 37663db137 Change-Id: I1bf94ef4e1c86dcd14bcf956d35e890ed3a1ad23
-rw-r--r--docs/html/preview/api-overview.jd21
1 files changed, 21 insertions, 0 deletions
diff --git a/docs/html/preview/api-overview.jd b/docs/html/preview/api-overview.jd
index 4abd95634b90..f2bc11136d58 100644
--- a/docs/html/preview/api-overview.jd
+++ b/docs/html/preview/api-overview.jd
@@ -37,6 +37,7 @@ page.image=images/cards/card-n-apis_2x.png
<li><a href="#apk_signature_v2">APK Signature Scheme v2</a></li>
<li><a href="#scoped_directory_access">Scoped Directory Access</a></li>
<li><a href="#keyboard_shortcuts_helper">Keyboard Shortcuts Helper</a></li>
+ <li><a href="#custom_pointer_api">Custom Pointer API</a></li>
<li><a href="#sustained_performance_api">Sustained Performance API</a></li>
<li><a href="#vr">VR Support</a></li>
<li><a href="#print_svc">Print Service Enhancements</a></li>
@@ -865,6 +866,26 @@ Directory Access</a> developer documentation.</p>
{@code Activity.requestKeyboardShortcutsHelper()} for the relevant activity.
</p>
+<h2 id="custom_pointer_api">
+ Custom Pointer API
+</h2>
+
+<p>
+ Android N introduces the Custom Pointer API, which lets you customize the
+ appearance, visibility, and behavior of the pointer. This capability is
+ especially useful when a user is using a mouse or touchpad to interact with
+ UI objects. The default pointer uses a standard icon. This API also includes
+ advanced functionality such as changing the pointer icon's appearance based
+ on specific mouse or touchpad movements.
+</p>
+
+<p>
+ To set a pointer icon, override the <code>onResolvePointerIcon()</code>
+ method of the <code>View</code> class. This method uses a
+ <code>PointerIcon</code> object to draw the icon that corresponds to a
+ specific motion event.
+</p>
+
<h2 id="sustained_performance_api">Sustained Performance API</h2>
<p>