From e229751d11692ede7fed3b56472f2d020767b412 Mon Sep 17 00:00:00 2001 From: Ricardo Cervera Date: Tue, 13 Jan 2015 10:04:04 -0800 Subject: [PATCH] docs: Add browseable Wearable Support Lib Javadoc Change-Id: Ied1f25f637c529046b0adc1e1ea173a290b22da1 --- .../android/support/wearable/R.attr.html | 2570 +++ .../android/support/wearable/R.color.html | 2043 ++ .../android/support/wearable/R.dimen.html | 1291 ++ .../android/support/wearable/R.drawable.html | 5098 +++++ .../reference/android/support/wearable/R.html | 1278 ++ .../android/support/wearable/R.id.html | 1949 ++ .../android/support/wearable/R.layout.html | 1291 ++ .../android/support/wearable/R.style.html | 1855 ++ .../android/support/wearable/R.styleable.html | 3091 +++ .../activity/ConfirmationActivity.html | 10316 ++++++++++ .../wearable/activity/package-summary.html | 707 + .../companion/WatchFaceCompanion.html | 1225 ++ .../wearable/companion/package-summary.html | 706 + .../support/wearable/package-summary.html | 802 + .../WearableCalendarContract.Attendees.html | 1130 ++ .../WearableCalendarContract.Instances.html | 1130 ++ .../WearableCalendarContract.Reminders.html | 1130 ++ .../provider/WearableCalendarContract.html | 1332 ++ .../wearable/provider/package-summary.html | 742 + .../view/BoxInsetLayout.LayoutParams.html | 2492 +++ .../support/wearable/view/BoxInsetLayout.html | 15506 ++++++++++++++ .../support/wearable/view/CardFragment.html | 4422 ++++ .../support/wearable/view/CardFrame.html | 15863 +++++++++++++++ .../support/wearable/view/CardScrollView.html | 15831 +++++++++++++++ .../wearable/view/CircledImageView.html | 16142 +++++++++++++++ .../wearable/view/CrossfadeDrawable.html | 3623 ++++ ...ationView.DelayedConfirmationListener.html | 969 + .../view/DelayedConfirmationView.html | 15881 +++++++++++++++ .../wearable/view/DismissOverlayView.html | 15250 ++++++++++++++ .../wearable/view/DotsPageIndicator.html | 13402 +++++++++++++ .../view/FragmentGridPagerAdapter.html | 2467 +++ .../GridPageOptions.BackgroundListener.html | 914 + .../wearable/view/GridPageOptions.html | 1009 + .../wearable/view/GridPagerAdapter.html | 2878 +++ .../view/GridViewPager.LayoutParams.html | 1848 ++ ...GridViewPager.OnAdapterChangeListener.html | 1029 + .../GridViewPager.OnPageChangeListener.html | 1146 ++ .../support/wearable/view/GridViewPager.html | 16747 ++++++++++++++++ .../wearable/view/SimpleAnimatorListener.html | 1586 ++ ...atchViewStub.OnLayoutInflatedListener.html | 908 + .../support/wearable/view/WatchViewStub.html | 15454 ++++++++++++++ .../view/WearableListView.Adapter.html | 1606 ++ .../view/WearableListView.ClickListener.html | 980 + ...bleListView.OnCenterProximityListener.html | 991 + .../WearableListView.OnScrollListener.html | 1118 ++ .../view/WearableListView.ViewHolder.html | 1375 ++ .../wearable/view/WearableListView.html | 16535 +++++++++++++++ .../wearable/view/package-summary.html | 1059 + .../CanvasWatchFaceService.Engine.html | 2252 +++ .../watchface/CanvasWatchFaceService.html | 6369 ++++++ .../Gles2WatchFaceService.Engine.html | 2460 +++ .../watchface/Gles2WatchFaceService.html | 6372 ++++++ .../watchface/WatchFaceService.Engine.html | 2384 +++ .../wearable/watchface/WatchFaceService.html | 6615 ++++++ .../watchface/WatchFaceStyle.Builder.html | 1816 ++ .../wearable/watchface/WatchFaceStyle.html | 2773 +++ .../wearable/watchface/package-summary.html | 791 + .../reference/packages-wearable-support.html | 679 + docs/html/training/building-wearables.jd | 6 +- docs/html/training/wearables/apps/layouts.jd | 6 +- docs/html/training/wearables/ui/layouts.jd | 4 +- .../training/wearables/watch-faces/service.jd | 4 +- 62 files changed, 261240 insertions(+), 8 deletions(-) create mode 100644 docs/html/reference/android/support/wearable/R.attr.html create mode 100644 docs/html/reference/android/support/wearable/R.color.html create mode 100644 docs/html/reference/android/support/wearable/R.dimen.html create mode 100644 docs/html/reference/android/support/wearable/R.drawable.html create mode 100644 docs/html/reference/android/support/wearable/R.html create mode 100644 docs/html/reference/android/support/wearable/R.id.html create mode 100644 docs/html/reference/android/support/wearable/R.layout.html create mode 100644 docs/html/reference/android/support/wearable/R.style.html create mode 100644 docs/html/reference/android/support/wearable/R.styleable.html create mode 100644 docs/html/reference/android/support/wearable/activity/ConfirmationActivity.html create mode 100644 docs/html/reference/android/support/wearable/activity/package-summary.html create mode 100644 docs/html/reference/android/support/wearable/companion/WatchFaceCompanion.html create mode 100644 docs/html/reference/android/support/wearable/companion/package-summary.html create mode 100644 docs/html/reference/android/support/wearable/package-summary.html create mode 100644 docs/html/reference/android/support/wearable/provider/WearableCalendarContract.Attendees.html create mode 100644 docs/html/reference/android/support/wearable/provider/WearableCalendarContract.Instances.html create mode 100644 docs/html/reference/android/support/wearable/provider/WearableCalendarContract.Reminders.html create mode 100644 docs/html/reference/android/support/wearable/provider/WearableCalendarContract.html create mode 100644 docs/html/reference/android/support/wearable/provider/package-summary.html create mode 100644 docs/html/reference/android/support/wearable/view/BoxInsetLayout.LayoutParams.html create mode 100644 docs/html/reference/android/support/wearable/view/BoxInsetLayout.html create mode 100644 docs/html/reference/android/support/wearable/view/CardFragment.html create mode 100644 docs/html/reference/android/support/wearable/view/CardFrame.html create mode 100644 docs/html/reference/android/support/wearable/view/CardScrollView.html create mode 100644 docs/html/reference/android/support/wearable/view/CircledImageView.html create mode 100644 docs/html/reference/android/support/wearable/view/CrossfadeDrawable.html create mode 100644 docs/html/reference/android/support/wearable/view/DelayedConfirmationView.DelayedConfirmationListener.html create mode 100644 docs/html/reference/android/support/wearable/view/DelayedConfirmationView.html create mode 100644 docs/html/reference/android/support/wearable/view/DismissOverlayView.html create mode 100644 docs/html/reference/android/support/wearable/view/DotsPageIndicator.html create mode 100644 docs/html/reference/android/support/wearable/view/FragmentGridPagerAdapter.html create mode 100644 docs/html/reference/android/support/wearable/view/GridPageOptions.BackgroundListener.html create mode 100644 docs/html/reference/android/support/wearable/view/GridPageOptions.html create mode 100644 docs/html/reference/android/support/wearable/view/GridPagerAdapter.html create mode 100644 docs/html/reference/android/support/wearable/view/GridViewPager.LayoutParams.html create mode 100644 docs/html/reference/android/support/wearable/view/GridViewPager.OnAdapterChangeListener.html create mode 100644 docs/html/reference/android/support/wearable/view/GridViewPager.OnPageChangeListener.html create mode 100644 docs/html/reference/android/support/wearable/view/GridViewPager.html create mode 100644 docs/html/reference/android/support/wearable/view/SimpleAnimatorListener.html create mode 100644 docs/html/reference/android/support/wearable/view/WatchViewStub.OnLayoutInflatedListener.html create mode 100644 docs/html/reference/android/support/wearable/view/WatchViewStub.html create mode 100644 docs/html/reference/android/support/wearable/view/WearableListView.Adapter.html create mode 100644 docs/html/reference/android/support/wearable/view/WearableListView.ClickListener.html create mode 100644 docs/html/reference/android/support/wearable/view/WearableListView.OnCenterProximityListener.html create mode 100644 docs/html/reference/android/support/wearable/view/WearableListView.OnScrollListener.html create mode 100644 docs/html/reference/android/support/wearable/view/WearableListView.ViewHolder.html create mode 100644 docs/html/reference/android/support/wearable/view/WearableListView.html create mode 100644 docs/html/reference/android/support/wearable/view/package-summary.html create mode 100644 docs/html/reference/android/support/wearable/watchface/CanvasWatchFaceService.Engine.html create mode 100644 docs/html/reference/android/support/wearable/watchface/CanvasWatchFaceService.html create mode 100644 docs/html/reference/android/support/wearable/watchface/Gles2WatchFaceService.Engine.html create mode 100644 docs/html/reference/android/support/wearable/watchface/Gles2WatchFaceService.html create mode 100644 docs/html/reference/android/support/wearable/watchface/WatchFaceService.Engine.html create mode 100644 docs/html/reference/android/support/wearable/watchface/WatchFaceService.html create mode 100644 docs/html/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html create mode 100644 docs/html/reference/android/support/wearable/watchface/WatchFaceStyle.html create mode 100644 docs/html/reference/android/support/wearable/watchface/package-summary.html create mode 100644 docs/html/reference/packages-wearable-support.html diff --git a/docs/html/reference/android/support/wearable/R.attr.html b/docs/html/reference/android/support/wearable/R.attr.html new file mode 100644 index 00000000000..33bf1b6ff67 --- /dev/null +++ b/docs/html/reference/android/support/wearable/R.attr.html @@ -0,0 +1,2570 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +R.attr | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+
+
+
+
+ +
+ +
+
+
Android APIs
+
+ + + + +
+
+ + + + + + +
+ +
+ + + + + + + + + + + + +
+ + + + +
+
+ + + + +
+ public + static + final + + class +

R.attr

+ + + + + extends Object
+ + + + + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + + + + + + + + +
java.lang.Object
   ↳android.support.wearable.R.attr
+ + + + + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Fields
+ public + static + + intcircle_border_color +

Must be a color value, in the form of "#rgb", "#argb", +"#rrggbb", or "#aarrggbb". + + + +

+ public + static + + intcircle_border_width +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". + + + +

+ public + static + + intcircle_color +

Must be a color value, in the form of "#rgb", "#argb", +"#rrggbb", or "#aarrggbb". + + + +

+ public + static + + intcircle_padding +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". + + + +

+ public + static + + intcircle_radius +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". + + + +

+ public + static + + intcircle_radius_pressed +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". + + + +

+ public + static + + intcircular_layout_gravity +

Must be one or more (separated by '|') of the following constant values. + + + +

+ public + static + + intcircular_text_size +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". + + + +

+ public + static + + intdotColor +

Must be a color value, in the form of "#rgb", "#argb", +"#rrggbb", or "#aarrggbb". + + + +

+ public + static + + intdotColorSelected +

Must be a color value, in the form of "#rgb", "#argb", +"#rrggbb", or "#aarrggbb". + + + +

+ public + static + + intdotFadeInDuration +

Must be an integer value, such as "100". + + + +

+ public + static + + intdotFadeOutDelay +

Must be an integer value, such as "100". + + + +

+ public + static + + intdotFadeOutDuration +

Must be an integer value, such as "100". + + + +

+ public + static + + intdotFadeWhenIdle +

Must be a boolean value, either "true" or "false". + + + +

+ public + static + + intdotRadius +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". + + + +

+ public + static + + intdotRadiusSelected +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". + + + +

+ public + static + + intdotShadowColor +

Must be a color value, in the form of "#rgb", "#argb", +"#rrggbb", or "#aarrggbb". + + + +

+ public + static + + intdotShadowDx +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". + + + +

+ public + static + + intdotShadowDy +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". + + + +

+ public + static + + intdotShadowRadius +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". + + + +

+ public + static + + intdotSpacing +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". + + + +

+ public + static + + intlayout_box +

Must be one or more (separated by '|') of the following constant values. + + + +

+ public + static + + intrectLayout +

Must be a reference to another resource, in the form "@[+][package:]type:name" +or to a theme attribute in the form "?[package:][type:]name". + + + +

+ public + static + + introundLayout +

Must be a reference to another resource, in the form "@[+][package:]type:name" +or to a theme attribute in the form "?[package:][type:]name". + + + +

+ public + static + + intshadow_width +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". + + + +

+ public + static + + intupdate_interval +

Must be an integer value, such as "100". + + + +

+ + + + + + + + + + + + + + + + + + + +
Public Constructors
+ + + + + + + + R.attr() + +
+ + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Methods
+ +From class + + java.lang.Object + +
+ + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + +

Fields

+ + + + + + +
+

+ + public + static + + int + + circle_border_color +

+
+ + + + +
+
+ + + + +

Must be a color value, in the form of "#rgb", "#argb", +"#rrggbb", or "#aarrggbb". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + circle_border_width +

+
+ + + + +
+
+ + + + +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". +Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), +in (inches), mm (millimeters). +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + circle_color +

+
+ + + + +
+
+ + + + +

Must be a color value, in the form of "#rgb", "#argb", +"#rrggbb", or "#aarrggbb". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + circle_padding +

+
+ + + + +
+
+ + + + +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". +Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), +in (inches), mm (millimeters). +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + circle_radius +

+
+ + + + +
+
+ + + + +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". +Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), +in (inches), mm (millimeters). +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + circle_radius_pressed +

+
+ + + + +
+
+ + + + +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". +Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), +in (inches), mm (millimeters). +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + circular_layout_gravity +

+
+ + + + +
+
+ + + + +

Must be one or more (separated by '|') of the following constant values.

+ ++++ + + + + + + + +
ConstantValueDescription
left0x03
top0x30
right0x05
bottom0x50
center_vertical0x10
center_horizontal0x01
center0x11
+

+ + +
+
+ + + + + +
+

+ + public + static + + int + + circular_text_size +

+
+ + + + +
+
+ + + + +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". +Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), +in (inches), mm (millimeters). +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + dotColor +

+
+ + + + +
+
+ + + + +

Must be a color value, in the form of "#rgb", "#argb", +"#rrggbb", or "#aarrggbb". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + dotColorSelected +

+
+ + + + +
+
+ + + + +

Must be a color value, in the form of "#rgb", "#argb", +"#rrggbb", or "#aarrggbb". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + dotFadeInDuration +

+
+ + + + +
+
+ + + + +

Must be an integer value, such as "100". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + dotFadeOutDelay +

+
+ + + + +
+
+ + + + +

Must be an integer value, such as "100". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + dotFadeOutDuration +

+
+ + + + +
+
+ + + + +

Must be an integer value, such as "100". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + dotFadeWhenIdle +

+
+ + + + +
+
+ + + + +

Must be a boolean value, either "true" or "false". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + dotRadius +

+
+ + + + +
+
+ + + + +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". +Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), +in (inches), mm (millimeters). +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + dotRadiusSelected +

+
+ + + + +
+
+ + + + +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". +Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), +in (inches), mm (millimeters). +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + dotShadowColor +

+
+ + + + +
+
+ + + + +

Must be a color value, in the form of "#rgb", "#argb", +"#rrggbb", or "#aarrggbb". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + dotShadowDx +

+
+ + + + +
+
+ + + + +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". +Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), +in (inches), mm (millimeters). +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + dotShadowDy +

+
+ + + + +
+
+ + + + +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". +Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), +in (inches), mm (millimeters). +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + dotShadowRadius +

+
+ + + + +
+
+ + + + +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". +Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), +in (inches), mm (millimeters). +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + dotSpacing +

+
+ + + + +
+
+ + + + +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". +Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), +in (inches), mm (millimeters). +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + layout_box +

+
+ + + + +
+
+ + + + +

Must be one or more (separated by '|') of the following constant values.

+ ++++ + + + + + +
ConstantValueDescription
left0x01
top0x02
right0x04
bottom0x08
all0x0F
+

+ + +
+
+ + + + + +
+

+ + public + static + + int + + rectLayout +

+
+ + + + +
+
+ + + + +

Must be a reference to another resource, in the form "@[+][package:]type:name" +or to a theme attribute in the form "?[package:][type:]name". +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + roundLayout +

+
+ + + + +
+
+ + + + +

Must be a reference to another resource, in the form "@[+][package:]type:name" +or to a theme attribute in the form "?[package:][type:]name". +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + shadow_width +

+
+ + + + +
+
+ + + + +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". +Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), +in (inches), mm (millimeters). +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + update_interval +

+
+ + + + +
+
+ + + + +

Must be an integer value, such as "100". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type. +

+ + +
+
+ + + + + + + + +

Public Constructors

+ + + + + +
+

+ + public + + + + + + + R.attr + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/R.color.html b/docs/html/reference/android/support/wearable/R.color.html new file mode 100644 index 00000000000..2ab198d0b6d --- /dev/null +++ b/docs/html/reference/android/support/wearable/R.color.html @@ -0,0 +1,2043 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +R.color | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+
+
+
+
+ +
+ +
+
+
Android APIs
+
+ + + + +
+
+ + + + + + +
+ +
+ + + + + + + + + + + + +
+ + + + +
+
+ + + + +
+ public + static + final + + class +

R.color

+ + + + + extends Object
+ + + + + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + + + + + + + + +
java.lang.Object
   ↳android.support.wearable.R.color
+ + + + + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Fields
+ public + static + + intblack + + + + +
+ public + static + + intblue + + + + +
+ public + static + + intcard_default_background + + + + +
+ public + static + + intdark_blue + + + + +
+ public + static + + intdark_grey + + + + +
+ public + static + + intdisabled_text_light + + + + +
+ public + static + + intdismiss_close + + + + +
+ public + static + + intdismiss_close_pressed + + + + +
+ public + static + + intdismiss_overlay_bg + + + + +
+ public + static + + intgreen + + + + +
+ public + static + + intgrey + + + + +
+ public + static + + intlight_grey + + + + +
+ public + static + + intorange + + + + +
+ public + static + + intprimary_text_dark + + + + +
+ public + static + + intprimary_text_light + + + + +
+ public + static + + intred + + + + +
+ public + static + + intsecondary_text_light + + + + +
+ public + static + + intsemitransparent_grey + + + + +
+ public + static + + intwhite + + + + +
+ + + + + + + + + + + + + + + + + + + +
Public Constructors
+ + + + + + + + R.color() + +
+ + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Methods
+ +From class + + java.lang.Object + +
+ + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + +

Fields

+ + + + + + +
+

+ + public + static + + int + + black +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + blue +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + card_default_background +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + dark_blue +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + dark_grey +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + disabled_text_light +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + dismiss_close +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + dismiss_close_pressed +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + dismiss_overlay_bg +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + green +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + grey +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + light_grey +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + orange +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + primary_text_dark +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + primary_text_light +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + red +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + secondary_text_light +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + semitransparent_grey +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + white +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + + + + +

Public Constructors

+ + + + + +
+

+ + public + + + + + + + R.color + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/R.dimen.html b/docs/html/reference/android/support/wearable/R.dimen.html new file mode 100644 index 00000000000..bfc0e3b0321 --- /dev/null +++ b/docs/html/reference/android/support/wearable/R.dimen.html @@ -0,0 +1,1291 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +R.dimen | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+
+
+
+
+ +
+ +
+
+
Android APIs
+
+ + + + +
+
+ + + + + + +
+ +
+ + + + + + + + + + + + +
+ + + + +
+
+ + + + +
+ public + static + final + + class +

R.dimen

+ + + + + extends Object
+ + + + + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + + + + + + + + +
java.lang.Object
   ↳android.support.wearable.R.dimen
+ + + + + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Fields
+ public + static + + intcard_content_padding_rect_top + + + + +
+ public + static + + intclose_button_diameter + + + + +
+ public + static + + intdismiss_padding + + + + +
+ + + + + + + + + + + + + + + + + + + +
Public Constructors
+ + + + + + + + R.dimen() + +
+ + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Methods
+ +From class + + java.lang.Object + +
+ + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + +

Fields

+ + + + + + +
+

+ + public + static + + int + + card_content_padding_rect_top +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + close_button_diameter +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + dismiss_padding +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + + + + +

Public Constructors

+ + + + + +
+

+ + public + + + + + + + R.dimen + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/R.drawable.html b/docs/html/reference/android/support/wearable/R.drawable.html new file mode 100644 index 00000000000..93b7a00acce --- /dev/null +++ b/docs/html/reference/android/support/wearable/R.drawable.html @@ -0,0 +1,5098 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +R.drawable | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+
+
+
+
+ +
+ +
+
+
Android APIs
+
+ + + + +
+
+ + + + + + +
+ +
+ + + + + + + + + + + + +
+ + + + +
+
+ + + + +
+ public + static + final + + class +

R.drawable

+ + + + + extends Object
+ + + + + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + + + + + + + + +
java.lang.Object
   ↳android.support.wearable.R.drawable
+ + + + + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Fields
+ public + static + + intcard_background + + + + +
+ public + static + + intcard_frame + + + + +
+ public + static + + intcard_frame_pressed + + + + +
+ public + static + + intclose_button + + + + +
+ public + static + + intconfirmation_animation + + + + +
+ public + static + + intgeneric_confirmation_00163 + + + + +
+ public + static + + intgeneric_confirmation_00164 + + + + +
+ public + static + + intgeneric_confirmation_00165 + + + + +
+ public + static + + intgeneric_confirmation_00166 + + + + +
+ public + static + + intgeneric_confirmation_00167 + + + + +
+ public + static + + intgeneric_confirmation_00168 + + + + +
+ public + static + + intgeneric_confirmation_00169 + + + + +
+ public + static + + intgeneric_confirmation_00170 + + + + +
+ public + static + + intgeneric_confirmation_00171 + + + + +
+ public + static + + intgeneric_confirmation_00172 + + + + +
+ public + static + + intgeneric_confirmation_00173 + + + + +
+ public + static + + intgeneric_confirmation_00174 + + + + +
+ public + static + + intgeneric_confirmation_00175 + + + + +
+ public + static + + intgeneric_confirmation_00185 + + + + +
+ public + static + + intgeneric_confirmation_00186 + + + + +
+ public + static + + intgeneric_confirmation_00187 + + + + +
+ public + static + + intgeneric_confirmation_00188 + + + + +
+ public + static + + intgeneric_confirmation_00189 + + + + +
+ public + static + + intgeneric_confirmation_00190 + + + + +
+ public + static + + intgeneric_confirmation_00191 + + + + +
+ public + static + + intgeneric_confirmation_00192 + + + + +
+ public + static + + intgeneric_confirmation_00193 + + + + +
+ public + static + + intgo_to_phone_00156 + + + + +
+ public + static + + intgo_to_phone_00157 + + + + +
+ public + static + + intgo_to_phone_00158 + + + + +
+ public + static + + intgo_to_phone_00159 + + + + +
+ public + static + + intgo_to_phone_00160 + + + + +
+ public + static + + intgo_to_phone_00161 + + + + +
+ public + static + + intgo_to_phone_00162 + + + + +
+ public + static + + intgo_to_phone_00163 + + + + +
+ public + static + + intgo_to_phone_00164 + + + + +
+ public + static + + intgo_to_phone_00165 + + + + +
+ public + static + + intgo_to_phone_00166 + + + + +
+ public + static + + intgo_to_phone_00167 + + + + +
+ public + static + + intgo_to_phone_00168 + + + + +
+ public + static + + intgo_to_phone_00169 + + + + +
+ public + static + + intgo_to_phone_00170 + + + + +
+ public + static + + intgo_to_phone_00171 + + + + +
+ public + static + + intgo_to_phone_00172 + + + + +
+ public + static + + intgo_to_phone_00173 + + + + +
+ public + static + + intgo_to_phone_00174 + + + + +
+ public + static + + intgo_to_phone_00175 + + + + +
+ public + static + + intgo_to_phone_00176 + + + + +
+ public + static + + intgo_to_phone_00177 + + + + +
+ public + static + + intgo_to_phone_00178 + + + + +
+ public + static + + intgo_to_phone_00185 + + + + +
+ public + static + + intgo_to_phone_00186 + + + + +
+ public + static + + intgo_to_phone_00187 + + + + +
+ public + static + + intgo_to_phone_00188 + + + + +
+ public + static + + intgo_to_phone_00189 + + + + +
+ public + static + + intgo_to_phone_00190 + + + + +
+ public + static + + intgo_to_phone_00191 + + + + +
+ public + static + + intgo_to_phone_00192 + + + + +
+ public + static + + intgo_to_phone_00193 + + + + +
+ public + static + + intgo_to_phone_00194 + + + + +
+ public + static + + intgo_to_phone_00195 + + + + +
+ public + static + + intgo_to_phone_00196 + + + + +
+ public + static + + intgo_to_phone_00197 + + + + +
+ public + static + + intgo_to_phone_00198 + + + + +
+ public + static + + intgo_to_phone_00199 + + + + +
+ public + static + + intgo_to_phone_00200 + + + + +
+ public + static + + intgo_to_phone_00210 + + + + +
+ public + static + + intgo_to_phone_00211 + + + + +
+ public + static + + intgo_to_phone_00212 + + + + +
+ public + static + + intgo_to_phone_00213 + + + + +
+ public + static + + intgo_to_phone_00214 + + + + +
+ public + static + + intgo_to_phone_00215 + + + + +
+ public + static + + intgo_to_phone_00216 + + + + +
+ public + static + + intgo_to_phone_00217 + + + + +
+ public + static + + intgo_to_phone_00218 + + + + +
+ public + static + + intgo_to_phone_00219 + + + + +
+ public + static + + intgo_to_phone_00220 + + + + +
+ public + static + + intgo_to_phone_00221 + + + + +
+ public + static + + intgo_to_phone_00222 + + + + +
+ public + static + + intgo_to_phone_00223 + + + + +
+ public + static + + intgo_to_phone_00224 + + + + +
+ public + static + + intgo_to_phone_animation + + + + +
+ public + static + + intic_full_cancel + + + + +
+ public + static + + intic_full_sad + + + + +
+ + + + + + + + + + + + + + + + + + + +
Public Constructors
+ + + + + + + + R.drawable() + +
+ + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Methods
+ +From class + + java.lang.Object + +
+ + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + +

Fields

+ + + + + + +
+

+ + public + static + + int + + card_background +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + card_frame +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + card_frame_pressed +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + close_button +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + confirmation_animation +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + generic_confirmation_00163 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + generic_confirmation_00164 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + generic_confirmation_00165 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + generic_confirmation_00166 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + generic_confirmation_00167 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + generic_confirmation_00168 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + generic_confirmation_00169 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + generic_confirmation_00170 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + generic_confirmation_00171 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + generic_confirmation_00172 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + generic_confirmation_00173 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + generic_confirmation_00174 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + generic_confirmation_00175 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + generic_confirmation_00185 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + generic_confirmation_00186 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + generic_confirmation_00187 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + generic_confirmation_00188 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + generic_confirmation_00189 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + generic_confirmation_00190 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + generic_confirmation_00191 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + generic_confirmation_00192 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + generic_confirmation_00193 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00156 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00157 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00158 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00159 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00160 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00161 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00162 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00163 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00164 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00165 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00166 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00167 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00168 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00169 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00170 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00171 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00172 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00173 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00174 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00175 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00176 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00177 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00178 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00185 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00186 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00187 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00188 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00189 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00190 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00191 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00192 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00193 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00194 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00195 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00196 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00197 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00198 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00199 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00200 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00210 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00211 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00212 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00213 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00214 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00215 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00216 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00217 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00218 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00219 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00220 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00221 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00222 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00223 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_00224 +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + go_to_phone_animation +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + ic_full_cancel +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + ic_full_sad +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + + + + +

Public Constructors

+ + + + + +
+

+ + public + + + + + + + R.drawable + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/R.html b/docs/html/reference/android/support/wearable/R.html new file mode 100644 index 00000000000..d0596a4c7c9 --- /dev/null +++ b/docs/html/reference/android/support/wearable/R.html @@ -0,0 +1,1278 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +R | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+
+
+
+
+ +
+ +
+
+
Android APIs
+
+ + + + +
+
+ + + + + + +
+ +
+ + + + + + + + + + + + +
+ + + + +
+
+ + + + +
+ public + + final + + class +

R

+ + + + + extends Object
+ + + + + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + + + + + + + + +
java.lang.Object
   ↳android.support.wearable.R
+ + + + + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Nested Classes
+ + + + + classR.attr +   + + + +
+ + + + + classR.color +   + + + +
+ + + + + classR.dimen +   + + + +
+ + + + + classR.drawable +   + + + +
+ + + + + classR.id +   + + + +
+ + + + + classR.layout +   + + + +
+ + + + + classR.style +   + + + +
+ + + + + classR.styleable +   + + + +
+ + + + + + + + + + +
Public Constructors
+ + + + + + + + R() + +
+ + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Methods
+ +From class + + java.lang.Object + +
+ + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Constructors

+ + + + + +
+

+ + public + + + + + + + R + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/R.id.html b/docs/html/reference/android/support/wearable/R.id.html new file mode 100644 index 00000000000..2e6a7e83d6d --- /dev/null +++ b/docs/html/reference/android/support/wearable/R.id.html @@ -0,0 +1,1949 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +R.id | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+
+
+
+
+ +
+ +
+
+
Android APIs
+
+ + + + +
+
+ + + + + + +
+ +
+ + + + + + + + + + + + +
+ + + + +
+
+ + + + +
+ public + static + final + + class +

R.id

+ + + + + extends Object
+ + + + + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + + + + + + + + +
java.lang.Object
   ↳android.support.wearable.R.id
+ + + + + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Fields
+ public + static + + intaction_error + + + + +
+ public + static + + intaction_success + + + + +
+ public + static + + intall + + + + +
+ public + static + + intanimation + + + + +
+ public + static + + intbottom + + + + +
+ public + static + + intcenter + + + + +
+ public + static + + intcenter_horizontal + + + + +
+ public + static + + intcenter_vertical + + + + +
+ public + static + + intdismiss_overlay_button + + + + +
+ public + static + + intdismiss_overlay_explain + + + + +
+ public + static + + interror_message + + + + +
+ public + static + + intleft + + + + +
+ public + static + + intmessage + + + + +
+ public + static + + intright + + + + +
+ public + static + + inttext + + + + +
+ public + static + + inttitle + + + + +
+ public + static + + inttop + + + + +
+ + + + + + + + + + + + + + + + + + + +
Public Constructors
+ + + + + + + + R.id() + +
+ + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Methods
+ +From class + + java.lang.Object + +
+ + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + +

Fields

+ + + + + + +
+

+ + public + static + + int + + action_error +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + action_success +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + all +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + animation +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + bottom +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + center +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + center_horizontal +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + center_vertical +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + dismiss_overlay_button +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + dismiss_overlay_explain +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + error_message +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + left +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + message +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + right +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + text +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + title +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + top +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + + + + +

Public Constructors

+ + + + + +
+

+ + public + + + + + + + R.id + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/R.layout.html b/docs/html/reference/android/support/wearable/R.layout.html new file mode 100644 index 00000000000..8bc319a6c7e --- /dev/null +++ b/docs/html/reference/android/support/wearable/R.layout.html @@ -0,0 +1,1291 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +R.layout | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+
+
+
+
+ +
+ +
+
+
Android APIs
+
+ + + + +
+
+ + + + + + +
+ +
+ + + + + + + + + + + + +
+ + + + +
+
+ + + + +
+ public + static + final + + class +

R.layout

+ + + + + extends Object
+ + + + + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + + + + + + + + +
java.lang.Object
   ↳android.support.wearable.R.layout
+ + + + + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Fields
+ public + static + + intconfirmation_activity_layout + + + + +
+ public + static + + intdismiss_overlay + + + + +
+ public + static + + intwatch_card_content + + + + +
+ + + + + + + + + + + + + + + + + + + +
Public Constructors
+ + + + + + + + R.layout() + +
+ + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Methods
+ +From class + + java.lang.Object + +
+ + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + +

Fields

+ + + + + + +
+

+ + public + static + + int + + confirmation_activity_layout +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + dismiss_overlay +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + watch_card_content +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + + + + +

Public Constructors

+ + + + + +
+

+ + public + + + + + + + R.layout + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/R.style.html b/docs/html/reference/android/support/wearable/R.style.html new file mode 100644 index 00000000000..39785e7a841 --- /dev/null +++ b/docs/html/reference/android/support/wearable/R.style.html @@ -0,0 +1,1855 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +R.style | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+
+
+
+
+ +
+ +
+
+
Android APIs
+
+ + + + +
+
+ + + + + + +
+ +
+ + + + + + + + + + + + +
+ + + + +
+
+ + + + +
+ public + static + final + + class +

R.style

+ + + + + extends Object
+ + + + + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + + + + + + + + +
java.lang.Object
   ↳android.support.wearable.R.style
+ + + + + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Fields
+ public + static + + intCardText + + + + +
+ public + static + + intCardTitle + + + + +
+ public + static + + intDismissOverlayText + + + + +
+ public + static + + intDotsPageIndicatorStyle + + + + +
+ public + static + + intTextAppearance_Wearable_Large + + + + +
+ public + static + + intTextAppearance_Wearable_Medium + + + + +
+ public + static + + intTextAppearance_Wearable_Small + + + + +
+ public + static + + intTextView_Large + + + + +
+ public + static + + intTextView_Large_Light + + + + +
+ public + static + + intTextView_Medium + + + + +
+ public + static + + intTextView_Medium_Light + + + + +
+ public + static + + intTextView_Small + + + + +
+ public + static + + intTextView_Small_Light + + + + +
+ public + static + + intTheme_Wearable + + + + +
+ public + static + + intTheme_Wearable_Modal + + + + +
+ + + + + + + + + + + + + + + + + + + +
Public Constructors
+ + + + + + + + R.style() + +
+ + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Methods
+ +From class + + java.lang.Object + +
+ + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + +

Fields

+ + + + + + +
+

+ + public + static + + int + + CardText +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + CardTitle +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + DismissOverlayText +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + DotsPageIndicatorStyle +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + TextAppearance_Wearable_Large +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + TextAppearance_Wearable_Medium +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + TextAppearance_Wearable_Small +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + TextView_Large +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + TextView_Large_Light +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + TextView_Medium +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + TextView_Medium_Light +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + TextView_Small +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + TextView_Small_Light +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + Theme_Wearable +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + + int + + Theme_Wearable_Modal +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + + + + +

Public Constructors

+ + + + + +
+

+ + public + + + + + + + R.style + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/R.styleable.html b/docs/html/reference/android/support/wearable/R.styleable.html new file mode 100644 index 00000000000..2b6710ee0b8 --- /dev/null +++ b/docs/html/reference/android/support/wearable/R.styleable.html @@ -0,0 +1,3091 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +R.styleable | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+
+
+
+
+ +
+ +
+
+
Android APIs
+
+ + + + +
+
+ + + + + + +
+ +
+ + + + + + + + + + + + +
+ + + + +
+
+ + + + +
+ public + static + final + + class +

R.styleable

+ + + + + extends Object
+ + + + + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + + + + + + + + +
java.lang.Object
   ↳android.support.wearable.R.styleable
+ + + + + + + +
+ + + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Fields
+ public + static + final + int[]BoxInsetLayout_Layout + Attributes that can be used with a BoxInsetLayout_Layout. + + + +
+ public + static + + intBoxInsetLayout_Layout_layout_box +

This symbol is the offset where the layout_box + attribute's value can be found in the BoxInsetLayout_Layout array. + + + +

+ public + static + final + int[]CircledImageView + Attributes that can be used with a CircledImageView. + + + +
+ public + static + + intCircledImageView_android_src +

This symbol is the offset where the src + attribute's value can be found in the CircledImageView array. + + + +

+ public + static + + intCircledImageView_circle_border_color +

This symbol is the offset where the circle_border_color + attribute's value can be found in the CircledImageView array. + + + +

+ public + static + + intCircledImageView_circle_border_width +

This symbol is the offset where the circle_border_width + attribute's value can be found in the CircledImageView array. + + + +

+ public + static + + intCircledImageView_circle_color +

This symbol is the offset where the circle_color + attribute's value can be found in the CircledImageView array. + + + +

+ public + static + + intCircledImageView_circle_padding +

This symbol is the offset where the circle_padding + attribute's value can be found in the CircledImageView array. + + + +

+ public + static + + intCircledImageView_circle_radius +

This symbol is the offset where the circle_radius + attribute's value can be found in the CircledImageView array. + + + +

+ public + static + + intCircledImageView_circle_radius_pressed +

This symbol is the offset where the circle_radius_pressed + attribute's value can be found in the CircledImageView array. + + + +

+ public + static + + intCircledImageView_shadow_width +

This symbol is the offset where the shadow_width + attribute's value can be found in the CircledImageView array. + + + +

+ public + static + final + int[]DelayedConfirmationView + Attributes that can be used with a DelayedConfirmationView. + + + +
+ public + static + + intDelayedConfirmationView_update_interval +

This symbol is the offset where the update_interval + attribute's value can be found in the DelayedConfirmationView array. + + + +

+ public + static + final + int[]DotsPageIndicator + Attributes that can be used with a DotsPageIndicator. + + + +
+ public + static + + intDotsPageIndicator_dotColor +

This symbol is the offset where the dotColor + attribute's value can be found in the DotsPageIndicator array. + + + +

+ public + static + + intDotsPageIndicator_dotColorSelected +

This symbol is the offset where the dotColorSelected + attribute's value can be found in the DotsPageIndicator array. + + + +

+ public + static + + intDotsPageIndicator_dotFadeInDuration +

This symbol is the offset where the dotFadeInDuration + attribute's value can be found in the DotsPageIndicator array. + + + +

+ public + static + + intDotsPageIndicator_dotFadeOutDelay +

This symbol is the offset where the dotFadeOutDelay + attribute's value can be found in the DotsPageIndicator array. + + + +

+ public + static + + intDotsPageIndicator_dotFadeOutDuration +

This symbol is the offset where the dotFadeOutDuration + attribute's value can be found in the DotsPageIndicator array. + + + +

+ public + static + + intDotsPageIndicator_dotFadeWhenIdle +

This symbol is the offset where the dotFadeWhenIdle + attribute's value can be found in the DotsPageIndicator array. + + + +

+ public + static + + intDotsPageIndicator_dotRadius +

This symbol is the offset where the dotRadius + attribute's value can be found in the DotsPageIndicator array. + + + +

+ public + static + + intDotsPageIndicator_dotRadiusSelected +

This symbol is the offset where the dotRadiusSelected + attribute's value can be found in the DotsPageIndicator array. + + + +

+ public + static + + intDotsPageIndicator_dotShadowColor +

This symbol is the offset where the dotShadowColor + attribute's value can be found in the DotsPageIndicator array. + + + +

+ public + static + + intDotsPageIndicator_dotShadowDx +

This symbol is the offset where the dotShadowDx + attribute's value can be found in the DotsPageIndicator array. + + + +

+ public + static + + intDotsPageIndicator_dotShadowDy +

This symbol is the offset where the dotShadowDy + attribute's value can be found in the DotsPageIndicator array. + + + +

+ public + static + + intDotsPageIndicator_dotShadowRadius +

This symbol is the offset where the dotShadowRadius + attribute's value can be found in the DotsPageIndicator array. + + + +

+ public + static + + intDotsPageIndicator_dotSpacing +

This symbol is the offset where the dotSpacing + attribute's value can be found in the DotsPageIndicator array. + + + +

+ public + static + final + int[]WatchViewStub + Attributes that can be used with a WatchViewStub. + + + +
+ public + static + + intWatchViewStub_rectLayout +

This symbol is the offset where the rectLayout + attribute's value can be found in the WatchViewStub array. + + + +

+ public + static + + intWatchViewStub_roundLayout +

This symbol is the offset where the roundLayout + attribute's value can be found in the WatchViewStub array. + + + +

+ public + static + final + int[]WearableHeaderTextView + Attributes that can be used with a WearableHeaderTextView. + + + +
+ public + static + + intWearableHeaderTextView_circular_layout_gravity +

This symbol is the offset where the circular_layout_gravity + attribute's value can be found in the WearableHeaderTextView array. + + + +

+ public + static + + intWearableHeaderTextView_circular_text_size +

This symbol is the offset where the circular_text_size + attribute's value can be found in the WearableHeaderTextView array. + + + +

+ + + + + + + + + + + + + + + + + + + +
Public Constructors
+ + + + + + + + R.styleable() + +
+ + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Methods
+ +From class + + java.lang.Object + +
+ + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + +

Fields

+ + + + + + +
+

+ + public + static + final + int[] + + BoxInsetLayout_Layout +

+
+ + + + +
+
+ + + + +

Attributes that can be used with a BoxInsetLayout_Layout. +

Includes the following attributes:

+ + + + + +
AttributeDescription
android.support.wearable:layout_box

+ + + +
+
+ + + + + +
+

+ + public + static + + int + + BoxInsetLayout_Layout_layout_box +

+
+ + + + +
+
+ + + + +

This symbol is the offset where the layout_box + attribute's value can be found in the BoxInsetLayout_Layout array. + + +

Must be one or more (separated by '|') of the following constant values.

+ ++++ + + + + + +
ConstantValueDescription
left0x01
top0x02
right0x04
bottom0x08
all0x0F

+ + +
+
+ + + + + + + + + + + +
+

+ + public + static + + int + + CircledImageView_android_src +

+
+ + + + +
+
+ + + + +

This symbol is the offset where the src + attribute's value can be found in the CircledImageView array.

+ + +
+
+ + + + + +
+

+ + public + static + + int + + CircledImageView_circle_border_color +

+
+ + + + +
+
+ + + + +

This symbol is the offset where the circle_border_color + attribute's value can be found in the CircledImageView array. + + +

Must be a color value, in the form of "#rgb", "#argb", +"#rrggbb", or "#aarrggbb". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type.

+ + +
+
+ + + + + +
+

+ + public + static + + int + + CircledImageView_circle_border_width +

+
+ + + + +
+
+ + + + +

This symbol is the offset where the circle_border_width + attribute's value can be found in the CircledImageView array. + + +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". +Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), +in (inches), mm (millimeters). +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type.

+ + +
+
+ + + + + +
+

+ + public + static + + int + + CircledImageView_circle_color +

+
+ + + + +
+
+ + + + +

This symbol is the offset where the circle_color + attribute's value can be found in the CircledImageView array. + + +

Must be a color value, in the form of "#rgb", "#argb", +"#rrggbb", or "#aarrggbb". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type.

+ + +
+
+ + + + + +
+

+ + public + static + + int + + CircledImageView_circle_padding +

+
+ + + + +
+
+ + + + +

This symbol is the offset where the circle_padding + attribute's value can be found in the CircledImageView array. + + +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". +Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), +in (inches), mm (millimeters). +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type.

+ + +
+
+ + + + + +
+

+ + public + static + + int + + CircledImageView_circle_radius +

+
+ + + + +
+
+ + + + +

This symbol is the offset where the circle_radius + attribute's value can be found in the CircledImageView array. + + +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". +Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), +in (inches), mm (millimeters). +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type.

+ + +
+
+ + + + + +
+

+ + public + static + + int + + CircledImageView_circle_radius_pressed +

+
+ + + + +
+
+ + + + +

This symbol is the offset where the circle_radius_pressed + attribute's value can be found in the CircledImageView array. + + +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". +Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), +in (inches), mm (millimeters). +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type.

+ + +
+
+ + + + + +
+

+ + public + static + + int + + CircledImageView_shadow_width +

+
+ + + + +
+
+ + + + +

This symbol is the offset where the shadow_width + attribute's value can be found in the CircledImageView array. + + +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". +Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), +in (inches), mm (millimeters). +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type.

+ + +
+
+ + + + + +
+

+ + public + static + final + int[] + + DelayedConfirmationView +

+
+ + + + +
+
+ + + + +

Attributes that can be used with a DelayedConfirmationView. +

Includes the following attributes:

+ + + + + +
AttributeDescription
android.support.wearable:update_interval

+ + + +
+
+ + + + + +
+

+ + public + static + + int + + DelayedConfirmationView_update_interval +

+
+ + + + +
+
+ + + + +

This symbol is the offset where the update_interval + attribute's value can be found in the DelayedConfirmationView array. + + +

Must be an integer value, such as "100". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type.

+ + +
+
+ + + + + + + + + + + +
+

+ + public + static + + int + + DotsPageIndicator_dotColor +

+
+ + + + +
+
+ + + + +

This symbol is the offset where the dotColor + attribute's value can be found in the DotsPageIndicator array. + + +

Must be a color value, in the form of "#rgb", "#argb", +"#rrggbb", or "#aarrggbb". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type.

+ + +
+
+ + + + + +
+

+ + public + static + + int + + DotsPageIndicator_dotColorSelected +

+
+ + + + +
+
+ + + + +

This symbol is the offset where the dotColorSelected + attribute's value can be found in the DotsPageIndicator array. + + +

Must be a color value, in the form of "#rgb", "#argb", +"#rrggbb", or "#aarrggbb". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type.

+ + +
+
+ + + + + +
+

+ + public + static + + int + + DotsPageIndicator_dotFadeInDuration +

+
+ + + + +
+
+ + + + +

This symbol is the offset where the dotFadeInDuration + attribute's value can be found in the DotsPageIndicator array. + + +

Must be an integer value, such as "100". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type.

+ + +
+
+ + + + + +
+

+ + public + static + + int + + DotsPageIndicator_dotFadeOutDelay +

+
+ + + + +
+
+ + + + +

This symbol is the offset where the dotFadeOutDelay + attribute's value can be found in the DotsPageIndicator array. + + +

Must be an integer value, such as "100". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type.

+ + +
+
+ + + + + +
+

+ + public + static + + int + + DotsPageIndicator_dotFadeOutDuration +

+
+ + + + +
+
+ + + + +

This symbol is the offset where the dotFadeOutDuration + attribute's value can be found in the DotsPageIndicator array. + + +

Must be an integer value, such as "100". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type.

+ + +
+
+ + + + + +
+

+ + public + static + + int + + DotsPageIndicator_dotFadeWhenIdle +

+
+ + + + +
+
+ + + + +

This symbol is the offset where the dotFadeWhenIdle + attribute's value can be found in the DotsPageIndicator array. + + +

Must be a boolean value, either "true" or "false". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type.

+ + +
+
+ + + + + +
+

+ + public + static + + int + + DotsPageIndicator_dotRadius +

+
+ + + + +
+
+ + + + +

This symbol is the offset where the dotRadius + attribute's value can be found in the DotsPageIndicator array. + + +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". +Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), +in (inches), mm (millimeters). +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type.

+ + +
+
+ + + + + +
+

+ + public + static + + int + + DotsPageIndicator_dotRadiusSelected +

+
+ + + + +
+
+ + + + +

This symbol is the offset where the dotRadiusSelected + attribute's value can be found in the DotsPageIndicator array. + + +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". +Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), +in (inches), mm (millimeters). +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type.

+ + +
+
+ + + + + +
+

+ + public + static + + int + + DotsPageIndicator_dotShadowColor +

+
+ + + + +
+
+ + + + +

This symbol is the offset where the dotShadowColor + attribute's value can be found in the DotsPageIndicator array. + + +

Must be a color value, in the form of "#rgb", "#argb", +"#rrggbb", or "#aarrggbb". +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type.

+ + +
+
+ + + + + +
+

+ + public + static + + int + + DotsPageIndicator_dotShadowDx +

+
+ + + + +
+
+ + + + +

This symbol is the offset where the dotShadowDx + attribute's value can be found in the DotsPageIndicator array. + + +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". +Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), +in (inches), mm (millimeters). +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type.

+ + +
+
+ + + + + +
+

+ + public + static + + int + + DotsPageIndicator_dotShadowDy +

+
+ + + + +
+
+ + + + +

This symbol is the offset where the dotShadowDy + attribute's value can be found in the DotsPageIndicator array. + + +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". +Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), +in (inches), mm (millimeters). +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type.

+ + +
+
+ + + + + +
+

+ + public + static + + int + + DotsPageIndicator_dotShadowRadius +

+
+ + + + +
+
+ + + + +

This symbol is the offset where the dotShadowRadius + attribute's value can be found in the DotsPageIndicator array. + + +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". +Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), +in (inches), mm (millimeters). +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type.

+ + +
+
+ + + + + +
+

+ + public + static + + int + + DotsPageIndicator_dotSpacing +

+
+ + + + +
+
+ + + + +

This symbol is the offset where the dotSpacing + attribute's value can be found in the DotsPageIndicator array. + + +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". +Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), +in (inches), mm (millimeters). +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type.

+ + +
+
+ + + + + +
+

+ + public + static + final + int[] + + WatchViewStub +

+
+ + + + +
+
+ + + + +

Attributes that can be used with a WatchViewStub. +

Includes the following attributes:

+ + + + + + +
AttributeDescription
android.support.wearable:rectLayout
android.support.wearable:roundLayout

+ + + +
+
+ + + + + +
+

+ + public + static + + int + + WatchViewStub_rectLayout +

+
+ + + + +
+
+ + + + +

This symbol is the offset where the rectLayout + attribute's value can be found in the WatchViewStub array. + + +

Must be a reference to another resource, in the form "@[+][package:]type:name" +or to a theme attribute in the form "?[package:][type:]name".

+ + +
+
+ + + + + +
+

+ + public + static + + int + + WatchViewStub_roundLayout +

+
+ + + + +
+
+ + + + +

This symbol is the offset where the roundLayout + attribute's value can be found in the WatchViewStub array. + + +

Must be a reference to another resource, in the form "@[+][package:]type:name" +or to a theme attribute in the form "?[package:][type:]name".

+ + +
+
+ + + + + +
+

+ + public + static + final + int[] + + WearableHeaderTextView +

+
+ + + + +
+
+ + + + +

Attributes that can be used with a WearableHeaderTextView. +

Includes the following attributes:

+ + + + + + +
AttributeDescription
android.support.wearable:circular_layout_gravity
android.support.wearable:circular_text_size

+ + + +
+
+ + + + + +
+

+ + public + static + + int + + WearableHeaderTextView_circular_layout_gravity +

+
+ + + + +
+
+ + + + +

This symbol is the offset where the circular_layout_gravity + attribute's value can be found in the WearableHeaderTextView array. + + +

Must be one or more (separated by '|') of the following constant values.

+ ++++ + + + + + + + +
ConstantValueDescription
left0x03
top0x30
right0x05
bottom0x50
center_vertical0x10
center_horizontal0x01
center0x11

+ + +
+
+ + + + + +
+

+ + public + static + + int + + WearableHeaderTextView_circular_text_size +

+
+ + + + +
+
+ + + + +

This symbol is the offset where the circular_text_size + attribute's value can be found in the WearableHeaderTextView array. + + +

Must be a dimension value, which is a floating point number appended with a unit such as "14.5sp". +Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), +in (inches), mm (millimeters). +

This may also be a reference to a resource (in the form +"@[package:]type:name") or +theme attribute (in the form +"?[package:][type:]name") +containing a value of this type.

+ + +
+
+ + + + + + + + +

Public Constructors

+ + + + + +
+

+ + public + + + + + + + R.styleable + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/activity/ConfirmationActivity.html b/docs/html/reference/android/support/wearable/activity/ConfirmationActivity.html new file mode 100644 index 00000000000..a70c5468c3b --- /dev/null +++ b/docs/html/reference/android/support/wearable/activity/ConfirmationActivity.html @@ -0,0 +1,10316 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +ConfirmationActivity | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+
+
+
+
+ +
+ +
+
+
Android APIs
+
+ + + + +
+
+ + + + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+
+ + + + +
+ public + + + + class +

ConfirmationActivity

+ + + + + + + + + + + + + + + + + + + + + extends Activity
+ + + + + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
java.lang.Object
   ↳android.content.Context
    ↳android.content.ContextWrapper
     ↳android.view.ContextThemeWrapper
      ↳android.app.Activity
       ↳android.support.wearable.activity.ConfirmationActivity
+ + + + + + + +
+ + +

Class Overview

+

This Activity is used to display confirmation animations after the user completes an action on + the wearable. There are three types of confirmations: Success: the action was completed + successfully on the wearable. Failure: the action failed to complete. Open on Phone: the action + has caused something to display on the phone, or in order to complete the action, the user will + need to go to their phone to continue. + +

It is the responsibility of the wearable application developer to determine whether the action + has succeeded, failed, or requires the user to go to their phone, and trigger the appropriate + confirmation. + +

To invoke a confirmation animation, start this Activity using an Intent populated with the + following extras: +

    +
  • EXTRA_ANIMATION_TYPE: Which type of confirmation, either SUCCESS_ANIMATION, + OPEN_ON_PHONE_ANIMATION, or FAILURE_ANIMATION. +
  • EXTRA_MESSAGE: Optional message to include beneath the animation. If omitted, the animation + will be displayed without a message. +
+

+ + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Constants
StringEXTRA_ANIMATION_TYPE + + + + +
StringEXTRA_MESSAGE + + + + +
intFAILURE_ANIMATION + + + + +
intOPEN_ON_PHONE_ANIMATION + + + + +
intSUCCESS_ANIMATION + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Constants
+ + From class +android.app.Activity +
+ + +
+
+ + From class +android.content.Context +
+ + +
+
+ + From interface +android.content.ComponentCallbacks2 +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Fields
+ + From class +android.app.Activity +
+ + +
+
+ + + + + + + + + + + + + + + + +
Public Constructors
+ + + + + + + + ConfirmationActivity() + +
+ + + + + + + + + + + + + + + + + + +
Public Methods
+ + + + + + void + + onCreate(Bundle savedInstanceState) + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Methods
+ +From class + + android.app.Activity + +
+ + +
+
+ +From class + + android.view.ContextThemeWrapper + +
+ + +
+
+ +From class + + android.content.ContextWrapper + +
+ + +
+
+ +From class + + android.content.Context + +
+ + +
+
+ +From class + + java.lang.Object + +
+ + +
+
+ +From interface + + android.view.LayoutInflater.Factory2 + +
+ + +
+
+ +From interface + + android.view.Window.Callback + +
+ + +
+
+ +From interface + + android.view.KeyEvent.Callback + +
+ + +
+
+ +From interface + + android.view.View.OnCreateContextMenuListener + +
+ + +
+
+ +From interface + + android.content.ComponentCallbacks2 + +
+ + +
+
+ +From interface + + android.view.LayoutInflater.Factory + +
+ + +
+
+ +From interface + + android.content.ComponentCallbacks + +
+ + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + +

Constants

+ + + + + + +
+

+ + public + static + final + String + + EXTRA_ANIMATION_TYPE +

+
+ + + + +
+
+ + + + +

+ + +
+ Constant Value: + + + "animation_type" + + +
+ +
+
+ + + + + +
+

+ + public + static + final + String + + EXTRA_MESSAGE +

+
+ + + + +
+
+ + + + +

+ + +
+ Constant Value: + + + "message" + + +
+ +
+
+ + + + + +
+

+ + public + static + final + int + + FAILURE_ANIMATION +

+
+ + + + +
+
+ + + + +

+ + +
+ Constant Value: + + + 3 + (0x00000003) + + +
+ +
+
+ + + + + +
+

+ + public + static + final + int + + OPEN_ON_PHONE_ANIMATION +

+
+ + + + +
+
+ + + + +

+ + +
+ Constant Value: + + + 2 + (0x00000002) + + +
+ +
+
+ + + + + +
+

+ + public + static + final + int + + SUCCESS_ANIMATION +

+
+ + + + +
+
+ + + + +

+ + +
+ Constant Value: + + + 1 + (0x00000001) + + +
+ +
+
+ + + + + + + + + + + +

Public Constructors

+ + + + + +
+

+ + public + + + + + + + ConfirmationActivity + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + + + + + +

Public Methods

+ + + + + +
+

+ + public + + + + + void + + onCreate + (Bundle savedInstanceState) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/activity/package-summary.html b/docs/html/reference/android/support/wearable/activity/package-summary.html new file mode 100644 index 00000000000..b1c171b3c50 --- /dev/null +++ b/docs/html/reference/android/support/wearable/activity/package-summary.html @@ -0,0 +1,707 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +android.support.wearable.activity | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+
+
+
+
+ +
+ +
+
+
Android APIs
+
+ + + + +
+
+ + + + + + +
+ +
+
+ + + + +
+
+ +
+ package +

android.support.wearable.activity

+
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + + + + +

Classes

+
+ + + + + + + + + + +
ConfirmationActivity + This Activity is used to display confirmation animations after the user completes an action on + the wearable.  + + + +
+ +
+ + + + + + + + + + + + + +
+
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/companion/WatchFaceCompanion.html b/docs/html/reference/android/support/wearable/companion/WatchFaceCompanion.html new file mode 100644 index 00000000000..5a80333744d --- /dev/null +++ b/docs/html/reference/android/support/wearable/companion/WatchFaceCompanion.html @@ -0,0 +1,1225 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +WatchFaceCompanion | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+
+
+
+
+ +
+ +
+
+
Android APIs
+
+ + + + +
+
+ + + + + + +
+ +
+ + + + + + + + + + + + +
+ + + + +
+
+ + + + +
+ public + + final + + class +

WatchFaceCompanion

+ + + + + extends Object
+ + + + + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + + + + + + + + +
java.lang.Object
   ↳android.support.wearable.companion.WatchFaceCompanion
+ + + + + + + +
+ + +

Class Overview

+

Constants for use by watch face configuration activities. + +

To register a configuration activity for a watch face, add a <meta-data> + entry to the watch face component in its Android Manifest file with an intent action to be + fired to start the activity. The following meta-data will register the + com.example.watchface.CONFIG_DIGITAL action to be started when configuring a watch + face on the wearable device: + +

+ <meta-data
+     android:name="com.google.android.wearable.watchface.wearableConfigurationAction"
+     android:value="com.example.watchface.CONFIG_DIGITAL" />
+ +

To register a configuration activity to be started on a companion phone, + add the following alternative meta-data entry to the watch face component: + +

+ <meta-data
+     android:name="com.google.android.wearable.watchface.companionConfigurationAction"
+     android:value="com.example.watchface.CONFIG_DIGITAL" />
+ +

The activity should have an intent filter which lists the action specified in the + meta-data block above, in addition to the two categories present in the + following example: + +

+ <activity android:name=".MyWatchFaceConfigActivity">
+     <intent-filter>
+         <action android:name="com.example.watchface.CONFIG_DIGITAL" />
+         <category android:name="com.google.android.wearable.watchface.category.WEARABLE_CONFIGURATION" />
+         <category android:name="android.intent.category.DEFAULT" />
+     </intent-filter>
+ </activity>
+ +

For phone side configuration activities, substitute the category + com.google.android.wearable.watchface.category.COMPANION_CONFIGURATION for + com.google.android.wearable.watchface.category.WEARABLE_CONFIGURATION. +

+ + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Constants
StringEXTRA_PEER_ID + The key for String extra specifying the ID of the currently connected device in the + phone-side config activity launch Intent. + + + +
StringEXTRA_WATCH_FACE_COMPONENT + The key for String extra specifying a ComponentName of the + watch face being configured in the config activity launch Intent. + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Methods
+ +From class + + java.lang.Object + +
+ + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + +

Constants

+ + + + + + +
+

+ + public + static + final + String + + EXTRA_PEER_ID +

+
+ + + + +
+
+ + + + +

The key for String extra specifying the ID of the currently connected device in the + phone-side config activity launch Intent. +

+ + +
+ Constant Value: + + + "android.support.wearable.watchface.extra.PEER_ID" + + +
+ +
+
+ + + + + +
+

+ + public + static + final + String + + EXTRA_WATCH_FACE_COMPONENT +

+
+ + + + +
+
+ + + + +

The key for String extra specifying a ComponentName of the + watch face being configured in the config activity launch Intent. +

+ + +
+ Constant Value: + + + "android.support.wearable.watchface.extra.WATCH_FACE_COMPONENT" + + +
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/companion/package-summary.html b/docs/html/reference/android/support/wearable/companion/package-summary.html new file mode 100644 index 00000000000..191230e08ef --- /dev/null +++ b/docs/html/reference/android/support/wearable/companion/package-summary.html @@ -0,0 +1,706 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +android.support.wearable.companion | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+
+
+
+
+ +
+ +
+
+
Android APIs
+
+ + + + +
+
+ + + + + + +
+ +
+
+ + + + +
+
+ +
+ package +

android.support.wearable.companion

+
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + + + + +

Classes

+
+ + + + + + + + + + +
WatchFaceCompanion + Constants for use by watch face configuration activities.  + + + +
+ +
+ + + + + + + + + + + + + +
+
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/package-summary.html b/docs/html/reference/android/support/wearable/package-summary.html new file mode 100644 index 00000000000..441c5d6b903 --- /dev/null +++ b/docs/html/reference/android/support/wearable/package-summary.html @@ -0,0 +1,802 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +android.support.wearable | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+
+
+
+
+ +
+ +
+
+
Android APIs
+
+ + + + +
+
+ + + + + + +
+ +
+
+ + + + +
+
+ +
+ package +

android.support.wearable

+
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + + + + +

Classes

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
R +   + + + +
R.attr +   + + + +
R.color +   + + + +
R.dimen +   + + + +
R.drawable +   + + + +
R.id +   + + + +
R.layout +   + + + +
R.style +   + + + +
R.styleable +   + + + +
+ +
+ + + + + + + + + + + + + +
+
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/provider/WearableCalendarContract.Attendees.html b/docs/html/reference/android/support/wearable/provider/WearableCalendarContract.Attendees.html new file mode 100644 index 00000000000..bd7a9ab3fcb --- /dev/null +++ b/docs/html/reference/android/support/wearable/provider/WearableCalendarContract.Attendees.html @@ -0,0 +1,1130 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +WearableCalendarContract.Attendees | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ +
+ + + + + + + + + + + + +
+ + + + +
+
+ + + + +
+ public + static + final + + class +

WearableCalendarContract.Attendees

+ + + + + extends Object
+ + + + + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + + + + + + + + +
java.lang.Object
   ↳android.support.wearable.provider.WearableCalendarContract.Attendees
+ + + + + + + +
+ + + + +
+
See Also
+ +
+ + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Fields
+ public + static + final + UriCONTENT_URI + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Methods
+ +From class + + java.lang.Object + +
+ + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + +

Fields

+ + + + + + +
+

+ + public + static + final + Uri + + CONTENT_URI +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/provider/WearableCalendarContract.Instances.html b/docs/html/reference/android/support/wearable/provider/WearableCalendarContract.Instances.html new file mode 100644 index 00000000000..8c8e2843146 --- /dev/null +++ b/docs/html/reference/android/support/wearable/provider/WearableCalendarContract.Instances.html @@ -0,0 +1,1130 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +WearableCalendarContract.Instances | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ +
+ + + + + + + + + + + + +
+ + + + +
+
+ + + + +
+ public + static + final + + class +

WearableCalendarContract.Instances

+ + + + + extends Object
+ + + + + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + + + + + + + + +
java.lang.Object
   ↳android.support.wearable.provider.WearableCalendarContract.Instances
+ + + + + + + +
+ + + + +
+
See Also
+ +
+ + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Fields
+ public + static + final + UriCONTENT_URI + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Methods
+ +From class + + java.lang.Object + +
+ + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + +

Fields

+ + + + + + +
+

+ + public + static + final + Uri + + CONTENT_URI +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/provider/WearableCalendarContract.Reminders.html b/docs/html/reference/android/support/wearable/provider/WearableCalendarContract.Reminders.html new file mode 100644 index 00000000000..d30c834f72b --- /dev/null +++ b/docs/html/reference/android/support/wearable/provider/WearableCalendarContract.Reminders.html @@ -0,0 +1,1130 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +WearableCalendarContract.Reminders | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ +
+ + + + + + + + + + + + +
+ + + + +
+
+ + + + +
+ public + static + final + + class +

WearableCalendarContract.Reminders

+ + + + + extends Object
+ + + + + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + + + + + + + + +
java.lang.Object
   ↳android.support.wearable.provider.WearableCalendarContract.Reminders
+ + + + + + + +
+ + + + +
+
See Also
+ +
+ + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Fields
+ public + static + final + UriCONTENT_URI + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Methods
+ +From class + + java.lang.Object + +
+ + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + +

Fields

+ + + + + + +
+

+ + public + static + final + Uri + + CONTENT_URI +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/provider/WearableCalendarContract.html b/docs/html/reference/android/support/wearable/provider/WearableCalendarContract.html new file mode 100644 index 00000000000..f78ac77d2cd --- /dev/null +++ b/docs/html/reference/android/support/wearable/provider/WearableCalendarContract.html @@ -0,0 +1,1332 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +WearableCalendarContract | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ +
+ + + + + + + + + + + + +
+ + + + +
+
+ + + + +
+ public + + + + class +

WearableCalendarContract

+ + + + + extends Object
+ + + + + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + + + + + + + + +
java.lang.Object
   ↳android.support.wearable.provider.WearableCalendarContract
+ + + + + + + +
+ + +

Class Overview

+

The contract between the wearable calendar provider and applications. This API provides + a subset of the data available through CalendarContract, but is automatically + synced to wearable devices. +

+ + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Nested Classes
+ + + + + classWearableCalendarContract.Attendees +   + + + +
+ + + + + classWearableCalendarContract.Instances +   + + + +
+ + + + + classWearableCalendarContract.Reminders +   + + + +
+ + + + + + + + + + + +
Constants
StringAUTHORITY + + + + +
+ + + + + + + + + + + + + + + + + + + + +
Fields
+ public + static + final + UriCONTENT_URI + The content:// style URL for the top-level wearable calendar authority. + + + +
+ + + + + + + + + + + + + + + + + + + +
Public Constructors
+ + + + + + + + WearableCalendarContract() + +
+ + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Methods
+ +From class + + java.lang.Object + +
+ + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + +

Constants

+ + + + + + +
+

+ + public + static + final + String + + AUTHORITY +

+
+ + + + +
+
+ + + + +

+ + +
+ Constant Value: + + + "com.google.android.wearable.provider.calendar" + + +
+ +
+
+ + + + + + + + +

Fields

+ + + + + + +
+

+ + public + static + final + Uri + + CONTENT_URI +

+
+ + + + +
+
+ + + + +

The content:// style URL for the top-level wearable calendar authority. +

+ + +
+
+ + + + + + + + +

Public Constructors

+ + + + + +
+

+ + public + + + + + + + WearableCalendarContract + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/provider/package-summary.html b/docs/html/reference/android/support/wearable/provider/package-summary.html new file mode 100644 index 00000000000..7d9aa23028b --- /dev/null +++ b/docs/html/reference/android/support/wearable/provider/package-summary.html @@ -0,0 +1,742 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +android.support.wearable.provider | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ +
+
+ + + + +
+
+ +
+ package +

android.support.wearable.provider

+
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + + + + +

Classes

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
WearableCalendarContract + The contract between the wearable calendar provider and applications.  + + + +
WearableCalendarContract.Attendees +   + + + +
WearableCalendarContract.Instances +   + + + +
WearableCalendarContract.Reminders +   + + + +
+ +
+ + + + + + + + + + + + + +
+
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/view/BoxInsetLayout.LayoutParams.html b/docs/html/reference/android/support/wearable/view/BoxInsetLayout.LayoutParams.html new file mode 100644 index 00000000000..fdcf3713c20 --- /dev/null +++ b/docs/html/reference/android/support/wearable/view/BoxInsetLayout.LayoutParams.html @@ -0,0 +1,2492 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +BoxInsetLayout.LayoutParams | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+
+ + + + +
+ public + static + + + class +

BoxInsetLayout.LayoutParams

+ + + + + + + + + + + + + + + + + extends FrameLayout.LayoutParams
+ + + + + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
java.lang.Object
   ↳android.view.ViewGroup.LayoutParams
    ↳android.view.ViewGroup.MarginLayoutParams
     ↳android.widget.FrameLayout.LayoutParams
      ↳android.support.wearable.view.BoxInsetLayout.LayoutParams
+ + + + + + + +
+ + +

Class Overview

+

adds layout_box attribute to layout parameters +

+ + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Constants
intBOX_ALL + + + + +
intBOX_BOTTOM + + + + +
intBOX_LEFT + + + + +
intBOX_NONE + + + + +
intBOX_RIGHT + + + + +
intBOX_TOP + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Constants
+ + From class +android.view.ViewGroup.LayoutParams +
+ + +
+
+ + + + + + + + + + + + + + + + + +
Fields
+ public + + + intboxedEdges + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Fields
+ + From class +android.widget.FrameLayout.LayoutParams +
+ + +
+
+ + From class +android.view.ViewGroup.MarginLayoutParams +
+ + +
+
+ + From class +android.view.ViewGroup.LayoutParams +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Constructors
+ + + + + + + + BoxInsetLayout.LayoutParams(Context context, AttributeSet attrs) + +
+ + + + + + + + BoxInsetLayout.LayoutParams(int width, int height) + +
+ + + + + + + + BoxInsetLayout.LayoutParams(int width, int height, int gravity) + +
+ + + + + + + + BoxInsetLayout.LayoutParams(int width, int height, int gravity, int boxed) + +
+ + + + + + + + BoxInsetLayout.LayoutParams(ViewGroup.LayoutParams source) + +
+ + + + + + + + BoxInsetLayout.LayoutParams(ViewGroup.MarginLayoutParams source) + +
+ + + + + + + + BoxInsetLayout.LayoutParams(FrameLayout.LayoutParams source) + +
+ + + + + + + + BoxInsetLayout.LayoutParams(BoxInsetLayout.LayoutParams source) + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Methods
+ +From class + + android.view.ViewGroup.MarginLayoutParams + +
+ + +
+
+ +From class + + android.view.ViewGroup.LayoutParams + +
+ + +
+
+ +From class + + java.lang.Object + +
+ + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + +

Constants

+ + + + + + +
+

+ + public + static + final + int + + BOX_ALL +

+
+ + + + +
+
+ + + + +

+ + +
+ Constant Value: + + + 15 + (0x0000000f) + + +
+ +
+
+ + + + + +
+

+ + public + static + final + int + + BOX_BOTTOM +

+
+ + + + +
+
+ + + + +

+ + +
+ Constant Value: + + + 8 + (0x00000008) + + +
+ +
+
+ + + + + +
+

+ + public + static + final + int + + BOX_LEFT +

+
+ + + + +
+
+ + + + +

+ + +
+ Constant Value: + + + 1 + (0x00000001) + + +
+ +
+
+ + + + + +
+

+ + public + static + final + int + + BOX_NONE +

+
+ + + + +
+
+ + + + +

+ + +
+ Constant Value: + + + 0 + (0x00000000) + + +
+ +
+
+ + + + + +
+

+ + public + static + final + int + + BOX_RIGHT +

+
+ + + + +
+
+ + + + +

+ + +
+ Constant Value: + + + 4 + (0x00000004) + + +
+ +
+
+ + + + + +
+

+ + public + static + final + int + + BOX_TOP +

+
+ + + + +
+
+ + + + +

+ + +
+ Constant Value: + + + 2 + (0x00000002) + + +
+ +
+
+ + + + + + + + +

Fields

+ + + + + + +
+

+ + public + + + int + + boxedEdges +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + + + + +

Public Constructors

+ + + + + +
+

+ + public + + + + + + + BoxInsetLayout.LayoutParams + (Context context, AttributeSet attrs) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + + + BoxInsetLayout.LayoutParams + (int width, int height) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + + + BoxInsetLayout.LayoutParams + (int width, int height, int gravity) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + + + BoxInsetLayout.LayoutParams + (int width, int height, int gravity, int boxed) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + + + BoxInsetLayout.LayoutParams + (ViewGroup.LayoutParams source) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + + + BoxInsetLayout.LayoutParams + (ViewGroup.MarginLayoutParams source) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + + + BoxInsetLayout.LayoutParams + (FrameLayout.LayoutParams source) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + + + BoxInsetLayout.LayoutParams + (BoxInsetLayout.LayoutParams source) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/view/BoxInsetLayout.html b/docs/html/reference/android/support/wearable/view/BoxInsetLayout.html new file mode 100644 index 00000000000..8da89379fdc --- /dev/null +++ b/docs/html/reference/android/support/wearable/view/BoxInsetLayout.html @@ -0,0 +1,15506 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +BoxInsetLayout | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+
+ + + + +
+ public + + + + class +

BoxInsetLayout

+ + + + + + + + + + + + + + + + + extends FrameLayout
+ + + + + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
java.lang.Object
   ↳android.view.View
    ↳android.view.ViewGroup
     ↳android.widget.FrameLayout
      ↳android.support.wearable.view.BoxInsetLayout
+ + + + + + + +
+ + +

Class Overview

+

BoxInsetLayout is a screen shape-aware FrameLayout that can box its children + in the center square of a round screen by using the + layout_box attribute. The values for this attribute specify the + child's edges to be boxed in: + left|top|right|bottom or all. + The layout_box attribute is ignored on a device with a rectangular + screen. +

+ + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Nested Classes
+ + + + + classBoxInsetLayout.LayoutParams + adds layout_box attribute to layout parameters +  + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Constants
+ + From class +android.view.ViewGroup +
+ + +
+
+ + From class +android.view.View +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Fields
+ + From class +android.view.View +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Constructors
+ + + + + + + + BoxInsetLayout(Context context) + +
+ + + + + + + + BoxInsetLayout(Context context, AttributeSet attrs) + +
+ + + + + + + + BoxInsetLayout(Context context, AttributeSet attrs, int defStyle) + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Methods
+ + + + + + BoxInsetLayout.LayoutParams + + generateLayoutParams(AttributeSet attrs) + +
+ + + + + + Rect + + getInsets() + +
+ + + + + + boolean + + isRound() + +
+ determine screen shape + + + +
+ +
+ + + + + + WindowInsets + + onApplyWindowInsets(WindowInsets insets) + +
+ + + + + + void + + setForeground(Drawable drawable) + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Protected Methods
+ + + + + + boolean + + checkLayoutParams(ViewGroup.LayoutParams p) + +
+ + + + + + ViewGroup.LayoutParams + + generateLayoutParams(ViewGroup.LayoutParams p) + +
+ + + + + + void + + onAttachedToWindow() + +
+ + + + + + void + + onLayout(boolean changed, int left, int top, int right, int bottom) + +
+ + + + + + void + + onMeasure(int widthMeasureSpec, int heightMeasureSpec) + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Methods
+ +From class + + android.widget.FrameLayout + +
+ + +
+
+ +From class + + android.view.ViewGroup + +
+ + +
+
+ +From class + + android.view.View + +
+ + +
+
+ +From class + + java.lang.Object + +
+ + +
+
+ +From interface + + android.view.ViewParent + +
+ + +
+
+ +From interface + + android.view.ViewManager + +
+ + +
+
+ +From interface + + android.graphics.drawable.Drawable.Callback + +
+ + +
+
+ +From interface + + android.view.KeyEvent.Callback + +
+ + +
+
+ +From interface + + android.view.accessibility.AccessibilityEventSource + +
+ + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Constructors

+ + + + + +
+

+ + public + + + + + + + BoxInsetLayout + (Context context) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + + + BoxInsetLayout + (Context context, AttributeSet attrs) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + + + BoxInsetLayout + (Context context, AttributeSet attrs, int defStyle) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + + + + + +

Public Methods

+ + + + + +
+

+ + public + + + + + BoxInsetLayout.LayoutParams + + generateLayoutParams + (AttributeSet attrs) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + Rect + + getInsets + () +

+
+
+ + + +
+
+ + + + +

+
+
Returns
+
  • the system window insets Rect +
+
+ +
+
+ + + + +
+

+ + public + + + + + boolean + + isRound + () +

+
+
+ + + +
+
+ + + + +

determine screen shape

+
+
Returns
+
  • true if on a round screen +
+
+ +
+
+ + + + +
+

+ + public + + + + + WindowInsets + + onApplyWindowInsets + (WindowInsets insets) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + setForeground + (Drawable drawable) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + +

Protected Methods

+ + + + + +
+

+ + protected + + + + + boolean + + checkLayoutParams + (ViewGroup.LayoutParams p) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + protected + + + + + ViewGroup.LayoutParams + + generateLayoutParams + (ViewGroup.LayoutParams p) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + protected + + + + + void + + onAttachedToWindow + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + protected + + + + + void + + onLayout + (boolean changed, int left, int top, int right, int bottom) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + protected + + + + + void + + onMeasure + (int widthMeasureSpec, int heightMeasureSpec) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/view/CardFragment.html b/docs/html/reference/android/support/wearable/view/CardFragment.html new file mode 100644 index 00000000000..b9bf564fa2b --- /dev/null +++ b/docs/html/reference/android/support/wearable/view/CardFragment.html @@ -0,0 +1,4422 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +CardFragment | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+
+ + + + +
+ public + + + + class +

CardFragment

+ + + + + + + + + extends Fragment
+ + + + + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
java.lang.Object
   ↳android.app.Fragment
    ↳android.support.wearable.view.CardFragment
+ + + + + + + +
+ + +

Class Overview

+

Presents content within an expandable, vertically scrollable card. The default layout contains a + title, icon and text, but may be replaced by overriding + onCreateContentView(LayoutInflater, ViewGroup, Bundle). +

+ Additional methods are supplied for adjusting the appearance of the card, including whether + content should clip or appear as expandable, and the maximum height of the card.

+ + + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Constants
intEXPAND_DOWN + + + + +
intEXPAND_UP + + + + +
StringKEY_ICON_RESOURCE + + + + +
StringKEY_TEXT + + + + +
StringKEY_TITLE + + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Constants
+ + From interface +android.content.ComponentCallbacks2 +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + +
Public Constructors
+ + + + + + + + CardFragment() + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Methods
+ + + + static + + CardFragment + + create(CharSequence title, CharSequence description) + +
+ Construct a new CardFragment using the default content layout. + + + +
+ +
+ + + + static + + CardFragment + + create(CharSequence title, CharSequence text, int iconRes) + +
+ Construct a new CardFragment using the default content layout, including and icon. + + + +
+ +
+ + + + + + void + + onActivityCreated(Bundle savedInstanceState) + +
+ + + final + + + View + + onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) + +
+ + + + + + void + + onDestroy() + +
+ + + + + + void + + scrollToBottom() + +
+ Sets the card scroll position as far down as possible so the bottom edge is visible. + + + +
+ +
+ + + + + + void + + scrollToTop() + +
+ Sets the card scroll position as far up as possible so the top edge is visible. + + + +
+ +
+ + + + + + void + + setCardGravity(int gravity) + +
+ Assigns vertical gravity to the card, which determines where it should float when the card + and it's content are shorter than the page. + + + +
+ +
+ + + + + + void + + setCardMarginBottom(int bottom) + +
+ Sets the additional margin between the bottom edge of the card shadow, and the parent view. + + + +
+ +
+ + + + + + void + + setCardMarginLeft(int left) + +
+ Sets the additional margin between the left edge of the card shadow, and the parent view. + + + +
+ +
+ + + + + + void + + setCardMarginRight(int right) + +
+ Sets the additional margin between the right edge of the card shadow, and the parent view. + + + +
+ +
+ + + + + + void + + setCardMarginTop(int top) + +
+ Sets the additional margin between the top edge of the card shadow, and the parent view. + + + +
+ +
+ + + + + + void + + setCardMargins(int left, int top, int right, int bottom) + +
+ Sets the additional margin between the card shadow edge and the parent view. + + + +
+ +
+ + + + + + void + + setContentPadding(int left, int top, int right, int bottom) + +
+ Sets padding between the inside card edge and the card content. + + + +
+ +
+ + + + + + void + + setExpansionDirection(int direction) + +
+ Adjusts which direction the card height will expand. + + + +
+ +
+ + + + + + void + + setExpansionEnabled(boolean enabled) + +
+ Enables support contents which maybe be larger than the card's container. + + + +
+ +
+ + + + + + void + + setExpansionFactor(float factor) + +
+ Sets the allowed maximum height of the card as a multiple of the parent height. + + + +
+ +
+ + + + + + + + + + + + + + + + +
Protected Methods
+ + + + + + View + + onCreateContentView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) + +
+ Called to have subclasses instantiate their layout which is inserted within the card. + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Methods
+ +From class + + android.app.Fragment + +
+ + +
+
+ +From class + + java.lang.Object + +
+ + +
+
+ +From interface + + android.content.ComponentCallbacks2 + +
+ + +
+
+ +From interface + + android.view.View.OnCreateContextMenuListener + +
+ + +
+
+ +From interface + + android.content.ComponentCallbacks + +
+ + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + +

Constants

+ + + + + + +
+

+ + public + static + final + int + + EXPAND_DOWN +

+
+ + + + +
+
+ + + + +

+ + +
+ Constant Value: + + + 1 + (0x00000001) + + +
+ +
+
+ + + + + +
+

+ + public + static + final + int + + EXPAND_UP +

+
+ + + + +
+
+ + + + +

+ + +
+ Constant Value: + + + -1 + (0xffffffff) + + +
+ +
+
+ + + + + +
+

+ + public + static + final + String + + KEY_ICON_RESOURCE +

+
+ + + + +
+
+ + + + +

+ + +
+ Constant Value: + + + "CardFragment_icon" + + +
+ +
+
+ + + + + +
+

+ + public + static + final + String + + KEY_TEXT +

+
+ + + + +
+
+ + + + +

+ + +
+ Constant Value: + + + "CardFragment_text" + + +
+ +
+
+ + + + + +
+

+ + public + static + final + String + + KEY_TITLE +

+
+ + + + +
+
+ + + + +

+ + +
+ Constant Value: + + + "CardFragment_title" + + +
+ +
+
+ + + + + + + + + + + +

Public Constructors

+ + + + + +
+

+ + public + + + + + + + CardFragment + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + + + + + +

Public Methods

+ + + + + +
+

+ + public + static + + + + CardFragment + + create + (CharSequence title, CharSequence description) +

+
+
+ + + +
+
+ + + + +

Construct a new CardFragment using the default content layout.

+
+
Parameters
+ + + + + + + +
title + the card title displayed on the first line
description + the card text displayed below the title
+
+
+
Returns
+
  • a new CardFragment +
+
+ +
+
+ + + + +
+

+ + public + static + + + + CardFragment + + create + (CharSequence title, CharSequence text, int iconRes) +

+
+
+ + + +
+
+ + + + +

Construct a new CardFragment using the default content layout, including and icon.

+
+
Parameters
+ + + + + + + + + + +
title + the card title displayed on the first line
text + the card text displayed below the title
iconRes + a resourceId for an icon to be displayed next to the title
+
+
+
Returns
+
  • a new CardFragment +
+
+ +
+
+ + + + +
+

+ + public + + + + + void + + onActivityCreated + (Bundle savedInstanceState) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + final + + + View + + onCreateView + (LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + onDestroy + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + scrollToBottom + () +

+
+
+ + + +
+
+ + + + +

Sets the card scroll position as far down as possible so the bottom edge is visible. +

+ +
+
+ + + + +
+

+ + public + + + + + void + + scrollToTop + () +

+
+
+ + + +
+
+ + + + +

Sets the card scroll position as far up as possible so the top edge is visible. +

+ +
+
+ + + + +
+

+ + public + + + + + void + + setCardGravity + (int gravity) +

+
+
+ + + +
+
+ + + + +

Assigns vertical gravity to the card, which determines where it should float when the card + and it's content are shorter than the page.

+
+
Parameters
+ + + + +
gravity + a vertical gravity, either TOP or BOTTOM +
+
+ +
+
+ + + + +
+

+ + public + + + + + void + + setCardMarginBottom + (int bottom) +

+
+
+ + + +
+
+ + + + +

Sets the additional margin between the bottom edge of the card shadow, and the parent view.

+
+
Parameters
+ + + + +
bottom + the top margin +
+
+ +
+
+ + + + +
+

+ + public + + + + + void + + setCardMarginLeft + (int left) +

+
+
+ + + +
+
+ + + + +

Sets the additional margin between the left edge of the card shadow, and the parent view.

+
+
Parameters
+ + + + +
left + the top margin +
+
+ +
+
+ + + + +
+

+ + public + + + + + void + + setCardMarginRight + (int right) +

+
+
+ + + +
+
+ + + + +

Sets the additional margin between the right edge of the card shadow, and the parent view.

+
+
Parameters
+ + + + +
right + the top margin +
+
+ +
+
+ + + + +
+

+ + public + + + + + void + + setCardMarginTop + (int top) +

+
+
+ + + +
+
+ + + + +

Sets the additional margin between the top edge of the card shadow, and the parent view.

+
+
Parameters
+ + + + +
top + the top margin +
+
+ +
+
+ + + + +
+

+ + public + + + + + void + + setCardMargins + (int left, int top, int right, int bottom) +

+
+
+ + + +
+
+ + + + +

Sets the additional margin between the card shadow edge and the parent view.

+
+
Parameters
+ + + + + + + + + + + + + +
left + the left margin
top + the top margin
right + the right margin
bottom + the bottom margin +
+
+ +
+
+ + + + +
+

+ + public + + + + + void + + setContentPadding + (int left, int top, int right, int bottom) +

+
+
+ + + +
+
+ + + + +

Sets padding between the inside card edge and the card content.

+
+
Parameters
+ + + + + + + + + + + + + +
left + the left padding
top + the top padding
right + the right padding
bottom + the bottom padding +
+
+ +
+
+ + + + +
+

+ + public + + + + + void + + setExpansionDirection + (int direction) +

+
+
+ + + +
+
+ + + + +

Adjusts which direction the card height will expand. This also determines which edge is + rendered with a faded edge when more content is available by scrolling.

+
+
Parameters
+ + + + +
direction + a direction constant, either EXPAND_UP or EXPAND_DOWN +
+
+ +
+
+ + + + +
+

+ + public + + + + + void + + setExpansionEnabled + (boolean enabled) +

+
+
+ + + +
+
+ + + + +

Enables support contents which maybe be larger than the card's container. When expansion is + enabled, and the contents are larger than the card, the top or bottom edge will fade to + indicate this. The expansion factor must also be increased to allow the card to increase in + height. +

+ +
+
+ + + + +
+

+ + public + + + + + void + + setExpansionFactor + (float factor) +

+
+
+ + + +
+
+ + + + +

Sets the allowed maximum height of the card as a multiple of the parent height. If expansion + is enabled, The card will increase in height up to this amount as needed to accommodate + content.

+
+
Parameters
+ + + + +
factor + the vertical height multiplier to set the maximum height +
+
+ +
+
+ + + + + + + +

Protected Methods

+ + + + + +
+

+ + protected + + + + + View + + onCreateContentView + (LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) +

+
+
+ + + +
+
+ + + + +

Called to have subclasses instantiate their layout which is inserted within the card. + Override this method to supply your own custom layout for the card content.

+
+
Parameters
+ + + + + + + + + + +
inflater + The LayoutInflater object that can be used to inflate any views in the + fragment
container + If non-null, this is the parent view that the fragment's UI should be + attached to. The fragment should not add the view itself, but this can be used to + generate the LayoutParams of the view
savedInstanceState + If non-null, this fragment is being re-constructed from a previous + saved state as given here
+
+
+
Returns
+
  • Return the View for the fragment's UI, or null +
+
+ +
+
+ + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/view/CardFrame.html b/docs/html/reference/android/support/wearable/view/CardFrame.html new file mode 100644 index 00000000000..b92006f97ab --- /dev/null +++ b/docs/html/reference/android/support/wearable/view/CardFrame.html @@ -0,0 +1,15863 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +CardFrame | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+
+ + + + +
+ public + + + + class +

CardFrame

+ + + + + + + + + + + + + extends ViewGroup
+ + + + + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
java.lang.Object
   ↳android.view.View
    ↳android.view.ViewGroup
     ↳android.support.wearable.view.CardFrame
+ + + + + + + +
+ + +

Class Overview

+

Wraps a view in a card-styled frame with a white background, rounded corners and a light + drop-shadow. This layout is designed to be given a height of + WRAP_CONTENT within a container with a + fixed height. +

+ To function properly, this view should be contained within a CardScrollView. A + CardFragment provides this automatically. +

+ + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Constants
intEXPAND_DOWN + + + + +
intEXPAND_UP + + + + +
floatNO_EXPANSION + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Constants
+ + From class +android.view.ViewGroup +
+ + +
+
+ + From class +android.view.View +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Fields
+ + From class +android.view.View +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Constructors
+ + + + + + + + CardFrame(Context context) + +
+ + + + + + + + CardFrame(Context context, AttributeSet attrs) + +
+ + + + + + + + CardFrame(Context context, AttributeSet attrs, int defStyle) + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Methods
+ + + + + + void + + addView(View child) + +
+ + + + + + void + + addView(View child, int index) + +
+ + + + + + void + + addView(View child, int index, ViewGroup.LayoutParams params) + +
+ + + + + + void + + addView(View child, ViewGroup.LayoutParams params) + +
+ + + + + + int + + getContentPaddingBottom() + +
+ Returns the inner padding before the Card's bottom edge + + + + +
+ +
+ + + + + + int + + getContentPaddingLeft() + +
+ Returns the inner padding after the Card's left edge + + + + +
+ +
+ + + + + + int + + getContentPaddingRight() + +
+ Returns the inner padding before the Card's right edge + + + + +
+ +
+ + + + + + int + + getContentPaddingTop() + +
+ Returns the inner padding after the Card's top edge + + + + +
+ +
+ + + + + + int + + getExpansionDirection() + +
+ Returns the current expansion direction, either EXPAND_UP or EXPAND_DOWN. + + + +
+ +
+ + + + + + float + + getExpansionFactor() + +
+ Returns the current expansionFactor which is the maximum height of this view as a multiple of + the parent view's height. + + + +
+ +
+ + + + + + boolean + + isExpansionEnabled() + +
+ Indicates whether expansion is on. + + + +
+ +
+ + + + + + WindowInsets + + onApplyWindowInsets(WindowInsets insets) + +
+ + + + + + void + + onInitializeAccessibilityEvent(AccessibilityEvent event) + +
+ + + + + + void + + onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo info) + +
+ + + + + + void + + setExpansionDirection(int direction) + +
+ Sets the direction in which content expands. + + + +
+ +
+ + + + + + void + + setExpansionEnabled(boolean enabled) + +
+ Enables support contents which maybe be larger than the card's container. + + + +
+ +
+ + + + + + void + + setExpansionFactor(float expansionFactor) + +
+ Sets the allowed expansion amount as a multiple of the parent height. + + + +
+ +
+ + + + + + boolean + + shouldDelayChildPressedState() + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Protected Methods
+ + + + + + boolean + + drawChild(Canvas canvas, View child, long drawingTime) + +
+ + + + static + + int + + getDefaultSize(int size, int measureSpec, boolean greedy) + +
+ Get a default size, will be as small as possible unless forced by the parent, or greedy is + specified. + + + +
+ +
+ + + + + + void + + onAttachedToWindow() + +
+ + + + + + void + + onLayout(boolean changed, int left, int top, int right, int bottom) + +
+ + + + + + void + + onMeasure(int widthMeasureSpec, int heightMeasureSpec) + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Methods
+ +From class + + android.view.ViewGroup + +
+ + +
+
+ +From class + + android.view.View + +
+ + +
+
+ +From class + + java.lang.Object + +
+ + +
+
+ +From interface + + android.view.ViewParent + +
+ + +
+
+ +From interface + + android.view.ViewManager + +
+ + +
+
+ +From interface + + android.graphics.drawable.Drawable.Callback + +
+ + +
+
+ +From interface + + android.view.KeyEvent.Callback + +
+ + +
+
+ +From interface + + android.view.accessibility.AccessibilityEventSource + +
+ + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + +

Constants

+ + + + + + +
+

+ + public + static + final + int + + EXPAND_DOWN +

+
+ + + + +
+
+ + + + +

+ + +
+ Constant Value: + + + 1 + (0x00000001) + + +
+ +
+
+ + + + + +
+

+ + public + static + final + int + + EXPAND_UP +

+
+ + + + +
+
+ + + + +

+ + +
+ Constant Value: + + + -1 + (0xffffffff) + + +
+ +
+
+ + + + + +
+

+ + public + static + final + float + + NO_EXPANSION +

+
+ + + + +
+
+ + + + +

+ + +
+ Constant Value: + + + 1.0 + + +
+ +
+
+ + + + + + + + + + + +

Public Constructors

+ + + + + +
+

+ + public + + + + + + + CardFrame + (Context context) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + + + CardFrame + (Context context, AttributeSet attrs) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + + + CardFrame + (Context context, AttributeSet attrs, int defStyle) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + + + + + +

Public Methods

+ + + + + +
+

+ + public + + + + + void + + addView + (View child) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + addView + (View child, int index) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + addView + (View child, int index, ViewGroup.LayoutParams params) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + addView + (View child, ViewGroup.LayoutParams params) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + int + + getContentPaddingBottom + () +

+
+
+ + + +
+
+ + + + +

Returns the inner padding before the Card's bottom edge +

+ +
+
+ + + + +
+

+ + public + + + + + int + + getContentPaddingLeft + () +

+
+
+ + + +
+
+ + + + +

Returns the inner padding after the Card's left edge +

+ +
+
+ + + + +
+

+ + public + + + + + int + + getContentPaddingRight + () +

+
+
+ + + +
+
+ + + + +

Returns the inner padding before the Card's right edge +

+ +
+
+ + + + +
+

+ + public + + + + + int + + getContentPaddingTop + () +

+
+
+ + + +
+
+ + + + +

Returns the inner padding after the Card's top edge +

+ +
+
+ + + + +
+

+ + public + + + + + int + + getExpansionDirection + () +

+
+
+ + + +
+
+ + + + +

Returns the current expansion direction, either EXPAND_UP or EXPAND_DOWN. +

+ +
+
+ + + + +
+

+ + public + + + + + float + + getExpansionFactor + () +

+
+
+ + + +
+
+ + + + +

Returns the current expansionFactor which is the maximum height of this view as a multiple of + the parent view's height. +

+ +
+
+ + + + +
+

+ + public + + + + + boolean + + isExpansionEnabled + () +

+
+
+ + + +
+
+ + + + +

Indicates whether expansion is on. A CardFrame will increase in height up to + expansionFactor times the parent view's height. When expansion is enabled, + content which is taller than this will have a fading effect applied to the expanding edge, + otherwise content is simply clipped. +

+ +
+
+ + + + +
+

+ + public + + + + + WindowInsets + + onApplyWindowInsets + (WindowInsets insets) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + onInitializeAccessibilityEvent + (AccessibilityEvent event) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + onInitializeAccessibilityNodeInfo + (AccessibilityNodeInfo info) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + setExpansionDirection + (int direction) +

+
+
+ + + +
+
+ + + + +

Sets the direction in which content expands. Determines whether the top or bottom edge + receives the fading edge appearance and whether more content is viewed by scrolling up or + down, after increasing the expansion factor. +

+ +
+
+ + + + +
+

+ + public + + + + + void + + setExpansionEnabled + (boolean enabled) +

+
+
+ + + +
+
+ + + + +

Enables support contents which maybe be larger than the card's container. When expansion is + enabled, and the contents are larger than the card, the top or bottom edge will fade to + indicate this. The expansion factor must also be increased to allow the card to increase in + height. +

+ +
+
+ + + + +
+

+ + public + + + + + void + + setExpansionFactor + (float expansionFactor) +

+
+
+ + + +
+
+ + + + +

Sets the allowed expansion amount as a multiple of the parent height. If expansion is + enabled, the card will grow up to this height as needed to accommodate content. +

+ +
+
+ + + + +
+

+ + public + + + + + boolean + + shouldDelayChildPressedState + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + +

Protected Methods

+ + + + + +
+

+ + protected + + + + + boolean + + drawChild + (Canvas canvas, View child, long drawingTime) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + protected + static + + + + int + + getDefaultSize + (int size, int measureSpec, boolean greedy) +

+
+
+ + + +
+
+ + + + +

Get a default size, will be as small as possible unless forced by the parent, or greedy is + specified. +

+ +
+
+ + + + +
+

+ + protected + + + + + void + + onAttachedToWindow + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + protected + + + + + void + + onLayout + (boolean changed, int left, int top, int right, int bottom) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + protected + + + + + void + + onMeasure + (int widthMeasureSpec, int heightMeasureSpec) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/view/CardScrollView.html b/docs/html/reference/android/support/wearable/view/CardScrollView.html new file mode 100644 index 00000000000..11d8f7ea88c --- /dev/null +++ b/docs/html/reference/android/support/wearable/view/CardScrollView.html @@ -0,0 +1,15831 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +CardScrollView | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+
+ + + + +
+ public + + + + class +

CardScrollView

+ + + + + + + + + + + + + + + + + extends FrameLayout
+ + + + + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
java.lang.Object
   ↳android.view.View
    ↳android.view.ViewGroup
     ↳android.widget.FrameLayout
      ↳android.support.wearable.view.CardScrollView
+ + + + + + + +
+ + +

Class Overview

+

Designed to host a CardFrame and provides special support for scrolling with expansion in both + the upward and downward directions. +

+ + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Constants
+ + From class +android.view.ViewGroup +
+ + +
+
+ + From class +android.view.View +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Fields
+ + From class +android.view.View +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + +
Public Constructors
+ + + + + + + + CardScrollView(Context context) + +
+ + + + + + + + CardScrollView(Context context, AttributeSet attrs) + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Methods
+ + + + + + void + + addView(View child, int index, ViewGroup.LayoutParams params) + +
+ + + + + + boolean + + canScrollHorizontally(int direction) + +
+ + + + + + int + + getAvailableScrollDelta(int direction) + +
+ Indicates how far the container may be vertically scrolled in the given direction. + + + +
+ +
+ + + + + + int + + getCardGravity() + +
+ Returns the current layout gravity for contained card frame. + + + +
+ +
+ + + + + + int + + getExpansionDirection() + +
+ Returns the current expansion direction for the contained CardFrame. + + + +
+ +
+ + + + + + float + + getExpansionFactor() + +
+ Returns the current expansion factor for the contained CardFrame. + + + +
+ +
+ + + + + + boolean + + isExpansionEnabled() + +
+ Indicates if expansion is enabled. + + + +
+ +
+ + + + + + WindowInsets + + onApplyWindowInsets(WindowInsets insets) + +
+ + + + + + void + + setCardGravity(int gravity) + +
+ Applies gravity to adjust the vertical alignment of the contained card frame when it's + shorter than the containing view. + + + +
+ +
+ + + + + + void + + setExpansionDirection(int direction) + +
+ Control which direction expansion occurs. + + + +
+ +
+ + + + + + void + + setExpansionEnabled(boolean enableExpansion) + +
+ Whether the height of the card is permitted to increase beyond the card layout bounds. + + + +
+ +
+ + + + + + void + + setExpansionFactor(float expansionFactor) + +
+ Changes the expansion factor for the contained CardFrame. + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Protected Methods
+ + + + + + void + + onAttachedToWindow() + +
+ + + + + + void + + onFinishInflate() + +
+ + + + + + void + + onLayout(boolean changed, int left, int top, int right, int bottom) + +
+ + + + + + void + + onMeasure(int widthMeasureSpec, int heightMeasureSpec) + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Methods
+ +From class + + android.widget.FrameLayout + +
+ + +
+
+ +From class + + android.view.ViewGroup + +
+ + +
+
+ +From class + + android.view.View + +
+ + +
+
+ +From class + + java.lang.Object + +
+ + +
+
+ +From interface + + android.view.ViewParent + +
+ + +
+
+ +From interface + + android.view.ViewManager + +
+ + +
+
+ +From interface + + android.graphics.drawable.Drawable.Callback + +
+ + +
+
+ +From interface + + android.view.KeyEvent.Callback + +
+ + +
+
+ +From interface + + android.view.accessibility.AccessibilityEventSource + +
+ + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Constructors

+ + + + + +
+

+ + public + + + + + + + CardScrollView + (Context context) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + + + CardScrollView + (Context context, AttributeSet attrs) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + + + + + +

Public Methods

+ + + + + +
+

+ + public + + + + + void + + addView + (View child, int index, ViewGroup.LayoutParams params) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + boolean + + canScrollHorizontally + (int direction) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + int + + getAvailableScrollDelta + (int direction) +

+
+
+ + + +
+
+ + + + +

Indicates how far the container may be vertically scrolled in the given direction. +

+ When providing a positive direction value, the return value indicates the available increase + in scroll position (how far the content can move up). When providing a negative direction + value, the return value indicates the available decrease in scroll position (how far the + content can move down).

+
+
Parameters
+ + + + +
direction + the direction value to check, only the sign of the value is significant +
+
+ +
+
+ + + + +
+

+ + public + + + + + int + + getCardGravity + () +

+
+
+ + + +
+
+ + + + +

Returns the current layout gravity for contained card frame.

+
+
See Also
+ +
+ +
+
+ + + + +
+

+ + public + + + + + int + + getExpansionDirection + () +

+
+
+ + + +
+
+ + + + +

Returns the current expansion direction for the contained CardFrame.

+
+
See Also
+ +
+ +
+
+ + + + +
+

+ + public + + + + + float + + getExpansionFactor + () +

+
+
+ + + +
+
+ + + + +

Returns the current expansion factor for the contained CardFrame.

+
+
See Also
+ +
+ +
+
+ + + + +
+

+ + public + + + + + boolean + + isExpansionEnabled + () +

+
+
+ + + +
+
+ + + + +

Indicates if expansion is enabled.

+
+
See Also
+ +
+ +
+
+ + + + +
+

+ + public + + + + + WindowInsets + + onApplyWindowInsets + (WindowInsets insets) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + setCardGravity + (int gravity) +

+
+
+ + + +
+
+ + + + +

Applies gravity to adjust the vertical alignment of the contained card frame when it's + shorter than the containing view. +

+ Supported gravity values are either TOP or BOTTOM. +

+ +
+
+ + + + +
+

+ + public + + + + + void + + setExpansionDirection + (int direction) +

+
+
+ + + +
+
+ + + + +

Control which direction expansion occurs. When content is taller than this container, this + edge will fade to indicate expansion is possible. If expansion is disabled, this edge will + simply be clipped. If the card is smaller than this layout, this setting has no effect.

+
+
Parameters
+ + + + +
direction + the direction for content expansion +
+
+ +
+
+ + + + +
+

+ + public + + + + + void + + setExpansionEnabled + (boolean enableExpansion) +

+
+
+ + + +
+
+ + + + +

Whether the height of the card is permitted to increase beyond the card layout bounds. If + enabled, content will expand the card up to the current expansion level. If taller, a fading + edge will indicate that more expansion is possible.

+
+
Parameters
+ + + + +
enableExpansion + whether content will be allowed to expand
+
+
+
See Also
+ +
+ +
+
+ + + + +
+

+ + public + + + + + void + + setExpansionFactor + (float expansionFactor) +

+
+
+ + + +
+
+ + + + +

Changes the expansion factor for the contained CardFrame.

+
+
See Also
+ +
+ +
+
+ + + + + + + +

Protected Methods

+ + + + + +
+

+ + protected + + + + + void + + onAttachedToWindow + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + protected + + + + + void + + onFinishInflate + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + protected + + + + + void + + onLayout + (boolean changed, int left, int top, int right, int bottom) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + protected + + + + + void + + onMeasure + (int widthMeasureSpec, int heightMeasureSpec) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/view/CircledImageView.html b/docs/html/reference/android/support/wearable/view/CircledImageView.html new file mode 100644 index 00000000000..ad4d09cf3bb --- /dev/null +++ b/docs/html/reference/android/support/wearable/view/CircledImageView.html @@ -0,0 +1,16142 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +CircledImageView | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+
+ + + + +
+ public + + + + class +

CircledImageView

+ + + + + + + + + + + + + + + + + extends FrameLayout
+ + + + + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
java.lang.Object
   ↳android.view.View
    ↳android.view.ViewGroup
     ↳android.widget.FrameLayout
      ↳android.support.wearable.view.CircledImageView
+ + + + +
+ + Known Direct Subclasses + +
+ + +
+
+ + + + +
+ + +

Class Overview

+

An image view surrounded by a circle. +

+ + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Constants
+ + From class +android.view.ViewGroup +
+ + +
+
+ + From class +android.view.View +
+ + +
+
+ + + + + + + + + + + + + + + + + +
Fields
+ protected + + + floatmProgress + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Fields
+ + From class +android.view.View +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Constructors
+ + + + + + + + CircledImageView(Context context) + +
+ + + + + + + + CircledImageView(Context context, AttributeSet attrs) + +
+ + + + + + + + CircledImageView(Context context, AttributeSet attrs, int defStyle) + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Methods
+ + + + + + ColorStateList + + getCircleColorStateList() + +
+ + + + + + float + + getCircleRadius() + +
+ + + + + + int + + getDefaultCircleColor() + +
+ + + + + + float + + getInitialCircleRadius() + +
+ + + + + + void + + setCircleBorderColor(int circleBorderColor) + +
+ + + + + + void + + setCircleBorderWidth(float circleBorderWidth) + +
+ Set the border around the circle. + + + +
+ +
+ + + + + + void + + setCircleColor(int circleColor) + +
+ + + + + + void + + setCircleColorStateList(ColorStateList circleColor) + +
+ + + + + + void + + setCircleHidden(boolean circleHidden) + +
+ + + + + + void + + setCircleRadius(float circleRadius) + +
+ + + + + + void + + setCircleRadiusPressed(float circleRadiusPressed) + +
+ + + + + + void + + setImageDrawable(Drawable drawable) + +
+ + + + + + void + + setImageResource(int resId) + +
+ + + + + + void + + setPressed(boolean pressed) + +
+ + + + + + void + + setProgress(float progress) + +
+ + + + + + void + + setShadowVisibility(float shadowVisibility) + +
+ Set how much of the shadow should be shown. + + + +
+ +
+ + + + + + void + + showIndeterminateProgress(boolean show) + +
+ Show the circle border as an indeterminate progress spinner. + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Protected Methods
+ + + + + + void + + drawableStateChanged() + +
+ + + + + + void + + onDraw(Canvas canvas) + +
+ + + + + + void + + onMeasure(int widthMeasureSpec, int heightMeasureSpec) + +
+ + + + + + void + + onVisibilityChanged(View changedView, int visibility) + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Methods
+ +From class + + android.widget.FrameLayout + +
+ + +
+
+ +From class + + android.view.ViewGroup + +
+ + +
+
+ +From class + + android.view.View + +
+ + +
+
+ +From class + + java.lang.Object + +
+ + +
+
+ +From interface + + android.view.ViewParent + +
+ + +
+
+ +From interface + + android.view.ViewManager + +
+ + +
+
+ +From interface + + android.graphics.drawable.Drawable.Callback + +
+ + +
+
+ +From interface + + android.view.KeyEvent.Callback + +
+ + +
+
+ +From interface + + android.view.accessibility.AccessibilityEventSource + +
+ + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + +

Fields

+ + + + + + +
+

+ + protected + + + float + + mProgress +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + + + + +

Public Constructors

+ + + + + +
+

+ + public + + + + + + + CircledImageView + (Context context) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + + + CircledImageView + (Context context, AttributeSet attrs) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + + + CircledImageView + (Context context, AttributeSet attrs, int defStyle) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + + + + + +

Public Methods

+ + + + + +
+

+ + public + + + + + ColorStateList + + getCircleColorStateList + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + float + + getCircleRadius + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + int + + getDefaultCircleColor + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + float + + getInitialCircleRadius + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + setCircleBorderColor + (int circleBorderColor) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + setCircleBorderWidth + (float circleBorderWidth) +

+
+
+ + + +
+
+ + + + +

Set the border around the circle.

+
+
Parameters
+ + + + +
circleBorderWidth + Width of the border around the circle. +
+
+ +
+
+ + + + +
+

+ + public + + + + + void + + setCircleColor + (int circleColor) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + setCircleColorStateList + (ColorStateList circleColor) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + setCircleHidden + (boolean circleHidden) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + setCircleRadius + (float circleRadius) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + setCircleRadiusPressed + (float circleRadiusPressed) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + setImageDrawable + (Drawable drawable) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + setImageResource + (int resId) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + setPressed + (boolean pressed) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + setProgress + (float progress) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + setShadowVisibility + (float shadowVisibility) +

+
+
+ + + +
+
+ + + + +

Set how much of the shadow should be shown.

+
+
Parameters
+ + + + +
shadowVisibility + Value between 0 and 1. +
+
+ +
+
+ + + + +
+

+ + public + + + + + void + + showIndeterminateProgress + (boolean show) +

+
+
+ + + +
+
+ + + + +

Show the circle border as an indeterminate progress spinner. + The views circle border width and color must be set for this to have an effect.

+
+
Parameters
+ + + + +
show + true if the progress spinner is shown, false to hide it. +
+
+ +
+
+ + + + + + + +

Protected Methods

+ + + + + +
+

+ + protected + + + + + void + + drawableStateChanged + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + protected + + + + + void + + onDraw + (Canvas canvas) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + protected + + + + + void + + onMeasure + (int widthMeasureSpec, int heightMeasureSpec) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + protected + + + + + void + + onVisibilityChanged + (View changedView, int visibility) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/view/CrossfadeDrawable.html b/docs/html/reference/android/support/wearable/view/CrossfadeDrawable.html new file mode 100644 index 00000000000..62402e9db50 --- /dev/null +++ b/docs/html/reference/android/support/wearable/view/CrossfadeDrawable.html @@ -0,0 +1,3623 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +CrossfadeDrawable | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+
+ + + + +
+ public + + + + class +

CrossfadeDrawable

+ + + + + + + + + extends Drawable
+ + + + + + + implements + + Drawable.Callback + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
java.lang.Object
   ↳android.graphics.drawable.Drawable
    ↳android.support.wearable.view.CrossfadeDrawable
+ + + + + + + +
+ + +

Class Overview

+

Contains two child drawables and provides methods to directly adjust the blend between the two. +

+ The base layer is always painted fully opaque, and the fading layer is adjusted according to the + current progress value.

+ + + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Constructors
+ + + + + + + + CrossfadeDrawable() + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Methods
+ + + + + + void + + clearColorFilter() + +
+ + + + + + void + + draw(Canvas canvas) + +
+ + + + + + int + + getAlpha() + +
+ + + + + + int + + getChangingConfigurations() + +
+ + + + + + int + + getIntrinsicHeight() + +
+ + + + + + int + + getIntrinsicWidth() + +
+ + + + + + int + + getOpacity() + +
+ + + + + + void + + invalidateDrawable(Drawable who) + +
+ + + + + + boolean + + isStateful() + +
+ + + + + + void + + jumpToCurrentState() + +
+ + + + + + void + + scheduleDrawable(Drawable who, Runnable what, long when) + +
+ + + + + + void + + setAlpha(int alpha) + +
+ + + + + + void + + setBase(Drawable d) + +
+ Sets the image for the base layer. + + + +
+ +
+ + + + + + void + + setChangingConfigurations(int configs) + +
+ + + + + + void + + setColorFilter(ColorFilter cf) + +
+ + + + + + void + + setColorFilter(int color, PorterDuff.Mode mode) + +
+ + + + + + void + + setDither(boolean dither) + +
+ + + + + + void + + setFading(Drawable d) + +
+ Sets the image for the fading layer. + + + +
+ +
+ + + + + + void + + setFilterBitmap(boolean filter) + +
+ + + + + + void + + setProgress(float progress) + +
+ + + + + + void + + unscheduleDrawable(Drawable who, Runnable what) + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Protected Methods
+ + + + + + Drawable + + getBase() + +
+ + + + + + Drawable + + getFading() + +
+ + + + + + void + + onBoundsChange(Rect bounds) + +
+ + + + + + boolean + + onLevelChange(int level) + +
+ + + + + + boolean + + onStateChange(int[] state) + +
+ + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Methods
+ +From class + + android.graphics.drawable.Drawable + +
+ + +
+
+ +From class + + java.lang.Object + +
+ + +
+
+ +From interface + + android.graphics.drawable.Drawable.Callback + +
+ + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Constructors

+ + + + + +
+

+ + public + + + + + + + CrossfadeDrawable + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + + + + + +

Public Methods

+ + + + + +
+

+ + public + + + + + void + + clearColorFilter + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + draw + (Canvas canvas) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + int + + getAlpha + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + int + + getChangingConfigurations + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + int + + getIntrinsicHeight + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + int + + getIntrinsicWidth + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + int + + getOpacity + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + invalidateDrawable + (Drawable who) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + boolean + + isStateful + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + jumpToCurrentState + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + scheduleDrawable + (Drawable who, Runnable what, long when) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + setAlpha + (int alpha) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + setBase + (Drawable d) +

+
+
+ + + +
+
+ + + + +

Sets the image for the base layer. This drawable's opacity remains fixed. It's fully visible + when progress == 0, and completely obscured when progress == 1. +

+ +
+
+ + + + +
+

+ + public + + + + + void + + setChangingConfigurations + (int configs) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + setColorFilter + (ColorFilter cf) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + setColorFilter + (int color, PorterDuff.Mode mode) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + setDither + (boolean dither) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + setFading + (Drawable d) +

+
+
+ + + +
+
+ + + + +

Sets the image for the fading layer. This drawable's opacity will vary directly + proportionally to the progress value. It's invisible when progress == 0 and fully opaque when + progress == 1. +

+ +
+
+ + + + +
+

+ + public + + + + + void + + setFilterBitmap + (boolean filter) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + setProgress + (float progress) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + unscheduleDrawable + (Drawable who, Runnable what) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + +

Protected Methods

+ + + + + +
+

+ + protected + + + + + Drawable + + getBase + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + protected + + + + + Drawable + + getFading + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + protected + + + + + void + + onBoundsChange + (Rect bounds) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + protected + + + + + boolean + + onLevelChange + (int level) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + protected + + + + + boolean + + onStateChange + (int[] state) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/view/DelayedConfirmationView.DelayedConfirmationListener.html b/docs/html/reference/android/support/wearable/view/DelayedConfirmationView.DelayedConfirmationListener.html new file mode 100644 index 00000000000..3a9e29851bc --- /dev/null +++ b/docs/html/reference/android/support/wearable/view/DelayedConfirmationView.DelayedConfirmationListener.html @@ -0,0 +1,969 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +DelayedConfirmationView.DelayedConfirmationListener | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ +
+ + + + + +
+ + + + +
+
+ + + + +
+ public + static + + + interface +

DelayedConfirmationView.DelayedConfirmationListener

+ + + + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + +
android.support.wearable.view.DelayedConfirmationView.DelayedConfirmationListener
+ + + + + + + +
+ + +

Class Overview

+

Implement this interface to receive callbacks when the timer is finished and when the user + taps the View to select it. +

+ + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Methods
+ abstract + + + + + void + + onTimerFinished(View v) + +
+ Called when the timer is finished. + + + +
+ +
+ abstract + + + + + void + + onTimerSelected(View v) + +
+ Called when the user selects the timer. + + + +
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Methods

+ + + + + +
+

+ + public + + + abstract + + void + + onTimerFinished + (View v) +

+
+
+ + + +
+
+ + + + +

Called when the timer is finished. +

+ +
+
+ + + + +
+

+ + public + + + abstract + + void + + onTimerSelected + (View v) +

+
+
+ + + +
+
+ + + + +

Called when the user selects the timer. +

+ +
+
+ + + + + + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/view/DelayedConfirmationView.html b/docs/html/reference/android/support/wearable/view/DelayedConfirmationView.html new file mode 100644 index 00000000000..44118c6179f --- /dev/null +++ b/docs/html/reference/android/support/wearable/view/DelayedConfirmationView.html @@ -0,0 +1,15881 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +DelayedConfirmationView | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+
+ + + + +
+ public + + + + class +

DelayedConfirmationView

+ + + + + + + + + + + + + + + + + + + + + extends CircledImageView
+ + + + + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
java.lang.Object
   ↳android.view.View
    ↳android.view.ViewGroup
     ↳android.widget.FrameLayout
      ↳android.support.wearable.view.CircledImageView
       ↳android.support.wearable.view.DelayedConfirmationView
+ + + + + + + +
+ + +

Class Overview

+

DelayedConfirmationView provides a circular countdown timer, typically used to + automatically confirm an operation after a short delay has elapsed. The delay is intended to give + the user a chance to cancel the operation by tapping the View. +

+ The developer can specify a countdown interval via setTotalTimeMs(long) and a listener via + setListener(DelayedConfirmationView.DelayedConfirmationListener) to be called when the View is tapped or the time has elapsed. +

+ More information on what are required XML attributes can be found at CircledImageView. +

+ + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Nested Classes
+ + + + + interfaceDelayedConfirmationView.DelayedConfirmationListener + Implement this interface to receive callbacks when the timer is finished and when the user + taps the View to select it.  + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Constants
+ + From class +android.view.ViewGroup +
+ + +
+
+ + From class +android.view.View +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Fields
+ + From class +android.support.wearable.view.CircledImageView +
+ + +
+
+ + From class +android.view.View +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Constructors
+ + + + + + + + DelayedConfirmationView(Context context) + +
+ + + + + + + + DelayedConfirmationView(Context context, AttributeSet attrs) + +
+ + + + + + + + DelayedConfirmationView(Context context, AttributeSet attrs, int defStyle) + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Methods
+ + + + + + boolean + + onTouchEvent(MotionEvent event) + +
+ + + + + + void + + reset() + +
+ Resets the timer. + + + +
+ +
+ + + + + + void + + setListener(DelayedConfirmationView.DelayedConfirmationListener listener) + +
+ Sets a listener to get callbacks for when the timer finishes or cancelled. + + + +
+ +
+ + + + + + void + + setStartTimeMs(long time) + +
+ Artificially sets the start time in milliseconds for the Timer to countdown from. + + + +
+ +
+ + + + + + void + + setTotalTimeMs(long time) + +
+ Sets the total time in milliseconds for the Timer to countdown to. + + + +
+ +
+ + + + + + void + + start() + +
+ Starts the timer countdown. + + + +
+ +
+ + + + + + + + + + + + + + + + +
Protected Methods
+ + + + + + void + + onDraw(Canvas canvas) + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Methods
+ +From class + + android.support.wearable.view.CircledImageView + +
+ + +
+
+ +From class + + android.widget.FrameLayout + +
+ + +
+
+ +From class + + android.view.ViewGroup + +
+ + +
+
+ +From class + + android.view.View + +
+ + +
+
+ +From class + + java.lang.Object + +
+ + +
+
+ +From interface + + android.view.ViewParent + +
+ + +
+
+ +From interface + + android.view.ViewManager + +
+ + +
+
+ +From interface + + android.graphics.drawable.Drawable.Callback + +
+ + +
+
+ +From interface + + android.view.KeyEvent.Callback + +
+ + +
+
+ +From interface + + android.view.accessibility.AccessibilityEventSource + +
+ + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Constructors

+ + + + + +
+

+ + public + + + + + + + DelayedConfirmationView + (Context context) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + + + DelayedConfirmationView + (Context context, AttributeSet attrs) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + + + DelayedConfirmationView + (Context context, AttributeSet attrs, int defStyle) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + + + + + +

Public Methods

+ + + + + +
+

+ + public + + + + + boolean + + onTouchEvent + (MotionEvent event) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + reset + () +

+
+
+ + + +
+
+ + + + +

Resets the timer. +

+ +
+
+ + + + +
+

+ + public + + + + + void + + setListener + (DelayedConfirmationView.DelayedConfirmationListener listener) +

+
+
+ + + +
+
+ + + + +

Sets a listener to get callbacks for when the timer finishes or cancelled. +

+
+
Parameters
+ + + + +
listener + listener to register. +
+
+ + +
+
+ + + + +
+

+ + public + + + + + void + + setStartTimeMs + (long time) +

+
+
+ + + +
+
+ + + + +

Artificially sets the start time in milliseconds for the Timer to countdown from. + This should be called after the timer is started with start().

+
+
Parameters
+ + + + +
time + start time in milliseconds. +
+
+ +
+
+ + + + +
+

+ + public + + + + + void + + setTotalTimeMs + (long time) +

+
+
+ + + +
+
+ + + + +

Sets the total time in milliseconds for the Timer to countdown to. Once the countdown is + finished, if there is a listener registered, calls the listener. +

+
+
Parameters
+ + + + +
time + countdown time in milliseconds. +
+
+ + +
+
+ + + + +
+

+ + public + + + + + void + + start + () +

+
+
+ + + +
+
+ + + + +

Starts the timer countdown. +

+ +
+
+ + + + + + + +

Protected Methods

+ + + + + +
+

+ + protected + + + + + void + + onDraw + (Canvas canvas) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/view/DismissOverlayView.html b/docs/html/reference/android/support/wearable/view/DismissOverlayView.html new file mode 100644 index 00000000000..d77b61665b2 --- /dev/null +++ b/docs/html/reference/android/support/wearable/view/DismissOverlayView.html @@ -0,0 +1,15250 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +DismissOverlayView | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+
+ + + + +
+ public + + + + class +

DismissOverlayView

+ + + + + + + + + + + + + + + + + extends FrameLayout
+ + + + + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
java.lang.Object
   ↳android.view.View
    ↳android.view.ViewGroup
     ↳android.widget.FrameLayout
      ↳android.support.wearable.view.DismissOverlayView
+ + + + + + + +
+ + +

Class Overview

+

A view for implementing long-press-to-dismiss in an app. + +

DismissOverlayView should be added to your layout such that it draws + full-screen and over all other views. To use it, set the intro text using + setIntroText(CharSequence) and call showIntroIfNecessary() + in your activity's onCreate (or your fragment's + onCreateView). Then, use a GestureDetector in your activity to + detect long press gestures; when one is found, call show() on your + DismissOverlayView. DismissOverlayView takes care of all + of the hiding, showing, and dismissal logic for you; setting its visibility + or alpha may lead to unintended behavior. +

+ + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Constants
+ + From class +android.view.ViewGroup +
+ + +
+
+ + From class +android.view.View +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Fields
+ + From class +android.view.View +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Constructors
+ + + + + + + + DismissOverlayView(Context context) + +
+ + + + + + + + DismissOverlayView(Context context, AttributeSet attrs) + +
+ + + + + + + + DismissOverlayView(Context context, AttributeSet attrs, int defStyle) + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Methods
+ + + + + + boolean + + performClick() + +
+ + + + + + void + + setIntroText(int textResId) + +
+ Set the intro text. + + + +
+ +
+ + + + + + void + + setIntroText(CharSequence str) + +
+ Set the intro text. + + + +
+ +
+ + + + + + void + + show() + +
+ Show the exit button. + + + +
+ +
+ + + + + + void + + showIntroIfNecessary() + +
+ Displays the intro overlay over your app if necessary. + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Methods
+ +From class + + android.widget.FrameLayout + +
+ + +
+
+ +From class + + android.view.ViewGroup + +
+ + +
+
+ +From class + + android.view.View + +
+ + +
+
+ +From class + + java.lang.Object + +
+ + +
+
+ +From interface + + android.view.ViewParent + +
+ + +
+
+ +From interface + + android.view.ViewManager + +
+ + +
+
+ +From interface + + android.graphics.drawable.Drawable.Callback + +
+ + +
+
+ +From interface + + android.view.KeyEvent.Callback + +
+ + +
+
+ +From interface + + android.view.accessibility.AccessibilityEventSource + +
+ + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Constructors

+ + + + + +
+

+ + public + + + + + + + DismissOverlayView + (Context context) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + + + DismissOverlayView + (Context context, AttributeSet attrs) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + + + DismissOverlayView + (Context context, AttributeSet attrs, int defStyle) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + + + + + +

Public Methods

+ + + + + +
+

+ + public + + + + + boolean + + performClick + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + setIntroText + (int textResId) +

+
+
+ + + +
+
+ + + + +

Set the intro text. + + The intro text is the text displayed when the app is run for the first time, as an overlay + on the rest of your app's content. +

+ +
+
+ + + + +
+

+ + public + + + + + void + + setIntroText + (CharSequence str) +

+
+
+ + + +
+
+ + + + +

Set the intro text. + + The intro text is the text displayed when the app is run for the first time, as an overlay + on the rest of your app's content. +

+ +
+
+ + + + +
+

+ + public + + + + + void + + show + () +

+
+
+ + + +
+
+ + + + +

Show the exit button. + + This should be called from a long-press listener. +

+ +
+
+ + + + +
+

+ + public + + + + + void + + showIntroIfNecessary + () +

+
+
+ + + +
+
+ + + + +

Displays the intro overlay over your app if necessary. + + This does nothing if no intro text has been set, or if this is not the first time + showIntroIfNecessary is called for your app. +

+ +
+
+ + + + + + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/view/DotsPageIndicator.html b/docs/html/reference/android/support/wearable/view/DotsPageIndicator.html new file mode 100644 index 00000000000..851a5975cfa --- /dev/null +++ b/docs/html/reference/android/support/wearable/view/DotsPageIndicator.html @@ -0,0 +1,13402 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +DotsPageIndicator | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+
+ + + + +
+ public + + + + class +

DotsPageIndicator

+ + + + + + + + + extends View
+ + + + + + + implements + + GridViewPager.OnPageChangeListener + + GridViewPager.OnAdapterChangeListener + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
java.lang.Object
   ↳android.view.View
    ↳android.support.wearable.view.DotsPageIndicator
+ + + + + + + +
+ + +

Class Overview

+

A page indicator for GridViewPager which identifies the current page in relation to all + available pages on the current row. Pages are represented as dots. The current page can be + highlighted with a different color or size dot. +

+ The default behavior is to fade out the dots when the pager is idle (not settling or being + dragged). This can be changed with setDotFadeWhenIdle(boolean). +

+ Use setPager(GridViewPager) to connect this view to a pager instance. +

+ + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Constants
+ + From class +android.view.View +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Fields
+ + From class +android.view.View +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Constructors
+ + + + + + + + DotsPageIndicator(Context context) + +
+ + + + + + + + DotsPageIndicator(Context context, AttributeSet attrs) + +
+ + + + + + + + DotsPageIndicator(Context context, AttributeSet attrs, int defStyleAttr) + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Methods
+ + + + + + int + + getDotColor() + +
+ Returns the color used for dots other than the selected page. + + + +
+ +
+ + + + + + int + + getDotColorSelected() + +
+ Returns the color of the dot for the selected page. + + + +
+ +
+ + + + + + int + + getDotFadeInDuration() + +
+ Returns the duration of the fade in duration, in milliseconds. + + + +
+ +
+ + + + + + int + + getDotFadeOutDelay() + +
+ Sets the delay between the pager arriving at an idle state, and the fade out animation + beginning, in milliseconds. + + + +
+ +
+ + + + + + int + + getDotFadeOutDuration() + +
+ Returns the duration of fade out animation, in milliseconds. + + + +
+ +
+ + + + + + boolean + + getDotFadeWhenIdle() + +
+ Indicates if the dots fade out when the pager is idle. + + + +
+ +
+ + + + + + float + + getDotRadius() + +
+ Gets the radius of the page dots. + + + +
+ +
+ + + + + + float + + getDotRadiusSelected() + +
+ Gets the radius of the page dot for the selected page. + + + +
+ +
+ + + + + + int + + getDotShadowColor() + +
+ Returns the color of the shadows drawn beneath the dots. + + + +
+ +
+ + + + + + float + + getDotShadowDx() + +
+ Returns the horizontal offset of shadows drawn beneath the dots. + + + +
+ +
+ + + + + + float + + getDotShadowDy() + +
+ Returns the vertical offset of shadows drawn beneath the dots. + + + +
+ +
+ + + + + + float + + getDotShadowRadius() + +
+ Sets the pixel radius of shadows drawn beneath the dots. + + + +
+ +
+ + + + + + float + + getDotSpacing() + +
+ Gets the center-to-center distance between page dots. + + + +
+ +
+ + + + + + void + + onAdapterChanged(GridPagerAdapter oldAdapter, GridPagerAdapter newAdapter) + +
+ Called when the adapter is changed with setAdapter(GridPagerAdapter). + + + +
+ +
+ + + + + + void + + onDataSetChanged() + +
+ Called when a change is made to the content of the current adapter. + + + +
+ +
+ + + + + + void + + onPageScrollStateChanged(int state) + +
+ Called when the scroll state changes. + + + +
+ +
+ + + + + + void + + onPageScrolled(int row, int column, float rowOffset, float columnOffset, int rowOffsetPixels, int columnOffsetPixels) + +
+ This method will be invoked when the current page is scrolled, either as part of a + programmatically initiated smooth scroll or a user initiated touch scroll. + + + +
+ +
+ + + + + + void + + onPageSelected(int row, int column) + +
+ This method is called when a new page becomes selected. + + + +
+ +
+ + + + + + void + + setDotColor(int color) + +
+ Sets the color used for dots other than the selected page. + + + +
+ +
+ + + + + + void + + setDotColorSelected(int color) + +
+ Sets the color of the dot for the selected page. + + + +
+ +
+ + + + + + void + + setDotFadeInDuration(int duration, TimeUnit unit) + +
+ Sets the duration of the fade in animation. + + + +
+ +
+ + + + + + void + + setDotFadeOutDelay(int delay) + +
+ Sets the delay between the pager arriving at an idle state, and the fade out animation + beginning, in milliseconds. + + + +
+ +
+ + + + + + void + + setDotFadeOutDuration(int duration, TimeUnit unit) + +
+ Sets the duration of the fade out animation. + + + +
+ +
+ + + + + + void + + setDotFadeWhenIdle(boolean fade) + +
+ Sets whether the dots fade out when the pager is idle. + + + +
+ +
+ + + + + + void + + setDotRadius(int radius) + +
+ Sets the radius of the page dots. + + + +
+ +
+ + + + + + void + + setDotRadiusSelected(int radius) + +
+ Sets the radius of the page dot for the selected page. + + + +
+ +
+ + + + + + void + + setDotShadowColor(int color) + +
+ Sets the color of the shadows drawn beneath the dots. + + + +
+ +
+ + + + + + void + + setDotShadowDx(float dx) + +
+ Sets the horizontal offset of shadows drawn beneath the dots. + + + +
+ +
+ + + + + + void + + setDotShadowDy(float dy) + +
+ Sets the vertical offset of shadows drawn beneath the dots. + + + +
+ +
+ + + + + + void + + setDotShadowRadius(float radius) + +
+ Sets the pixel radius of shadows drawn beneath the dots. + + + +
+ +
+ + + + + + void + + setDotSpacing(int spacing) + +
+ Sets the center-to-center distance between page dots. + + + +
+ +
+ + + + + + void + + setOnAdapterChangeListener(GridViewPager.OnAdapterChangeListener listener) + +
+ Sets a listener to receive the adapter change events that are provided to the page indicator. + + + +
+ +
+ + + + + + void + + setOnPageChangeListener(GridViewPager.OnPageChangeListener listener) + +
+ Sets a listener to receive the page change events that are provided to the page indicator. + + + +
+ +
+ + + + + + void + + setPager(GridViewPager pager) + +
+ Supplies the GridViewPager instance, and attaches this views GridViewPager.OnPageChangeListener and + GridViewPager.OnAdapterChangeListener listeners to the pager. + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + +
Protected Methods
+ + + + + + void + + onDraw(Canvas canvas) + +
+ + + + + + void + + onMeasure(int widthMeasureSpec, int heightMeasureSpec) + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Methods
+ +From class + + android.view.View + +
+ + +
+
+ +From class + + java.lang.Object + +
+ + +
+
+ +From interface + + android.graphics.drawable.Drawable.Callback + +
+ + +
+
+ +From interface + + android.view.KeyEvent.Callback + +
+ + +
+
+ +From interface + + android.view.accessibility.AccessibilityEventSource + +
+ + +
+
+ +From interface + + android.support.wearable.view.GridViewPager.OnPageChangeListener + +
+ + +
+
+ +From interface + + android.support.wearable.view.GridViewPager.OnAdapterChangeListener + +
+ + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Constructors

+ + + + + +
+

+ + public + + + + + + + DotsPageIndicator + (Context context) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + + + DotsPageIndicator + (Context context, AttributeSet attrs) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + + + DotsPageIndicator + (Context context, AttributeSet attrs, int defStyleAttr) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + + + + + +

Public Methods

+ + + + + +
+

+ + public + + + + + int + + getDotColor + () +

+
+
+ + + +
+
+ + + + +

Returns the color used for dots other than the selected page.

+
+
Returns
+
  • color the color used for dots other than the selected page +
+
+ +
+
+ + + + +
+

+ + public + + + + + int + + getDotColorSelected + () +

+
+
+ + + +
+
+ + + + +

Returns the color of the dot for the selected page.

+
+
Returns
+
  • the color used for the selected page dot +
+
+ +
+
+ + + + +
+

+ + public + + + + + int + + getDotFadeInDuration + () +

+
+
+ + + +
+
+ + + + +

Returns the duration of the fade in duration, in milliseconds.

+
+
Returns
+
  • the duration of the fade in duration, in milliseconds +
+
+ +
+
+ + + + +
+

+ + public + + + + + int + + getDotFadeOutDelay + () +

+
+
+ + + +
+
+ + + + +

Sets the delay between the pager arriving at an idle state, and the fade out animation + beginning, in milliseconds.

+
+
Returns
+
  • the delay before the fade out animation begins, in milliseconds +
+
+ +
+
+ + + + +
+

+ + public + + + + + int + + getDotFadeOutDuration + () +

+
+
+ + + +
+
+ + + + +

Returns the duration of fade out animation, in milliseconds.

+
+
Returns
+
  • the duration of the fade out animation, in milliseconds +
+
+ +
+
+ + + + +
+

+ + public + + + + + boolean + + getDotFadeWhenIdle + () +

+
+
+ + + +
+
+ + + + +

Indicates if the dots fade out when the pager is idle.

+
+
Returns
+
  • whether the dots fade out when idle +
+
+ +
+
+ + + + +
+

+ + public + + + + + float + + getDotRadius + () +

+
+
+ + + +
+
+ + + + +

Gets the radius of the page dots.

+
+
Returns
+
  • the radius of the page dots +
+
+ +
+
+ + + + +
+

+ + public + + + + + float + + getDotRadiusSelected + () +

+
+
+ + + +
+
+ + + + +

Gets the radius of the page dot for the selected page.

+
+
Returns
+
  • the radius of the selected page dot +
+
+ +
+
+ + + + +
+

+ + public + + + + + int + + getDotShadowColor + () +

+
+
+ + + +
+
+ + + + +

Returns the color of the shadows drawn beneath the dots.

+
+
Returns
+
  • the color of the shadows drawn beneath the dots +
+
+ +
+
+ + + + +
+

+ + public + + + + + float + + getDotShadowDx + () +

+
+
+ + + +
+
+ + + + +

Returns the horizontal offset of shadows drawn beneath the dots.

+
+
Returns
+
  • the horizontal offset of shadows drawn beneath the dots +
+
+ +
+
+ + + + +
+

+ + public + + + + + float + + getDotShadowDy + () +

+
+
+ + + +
+
+ + + + +

Returns the vertical offset of shadows drawn beneath the dots.

+
+
Returns
+
  • the vertical offset of shadows drawn beneath the dots +
+
+ +
+
+ + + + +
+

+ + public + + + + + float + + getDotShadowRadius + () +

+
+
+ + + +
+
+ + + + +

Sets the pixel radius of shadows drawn beneath the dots.

+
+
Returns
+
  • the pixel radius of shadows rendered beneath the dots +
+
+ +
+
+ + + + +
+

+ + public + + + + + float + + getDotSpacing + () +

+
+
+ + + +
+
+ + + + +

Gets the center-to-center distance between page dots.

+
+
Returns
+
  • the distance between page dots +
+
+ +
+
+ + + + +
+

+ + public + + + + + void + + onAdapterChanged + (GridPagerAdapter oldAdapter, GridPagerAdapter newAdapter) +

+
+
+ + + +
+
+ + + + +

Called when the adapter is changed with setAdapter(GridPagerAdapter). +

+ +
+
+ + + + +
+

+ + public + + + + + void + + onDataSetChanged + () +

+
+
+ + + +
+
+ + + + +

Called when a change is made to the content of the current adapter. +

+ +
+
+ + + + +
+

+ + public + + + + + void + + onPageScrollStateChanged + (int state) +

+
+
+ + + +
+
+ + + + +

Called when the scroll state changes. Useful for discovering when the user begins + dragging, when the pager is automatically settling to the current page, or when it is + fully stopped/idle.

+
+
Parameters
+ + + + +
state + The new scroll state.
+
+ +
+
+ + + + +
+

+ + public + + + + + void + + onPageScrolled + (int row, int column, float rowOffset, float columnOffset, int rowOffsetPixels, int columnOffsetPixels) +

+
+
+ + + +
+
+ + + + +

This method will be invoked when the current page is scrolled, either as part of a + programmatically initiated smooth scroll or a user initiated touch scroll.

+
+
Parameters
+ + + + + + + + + + + + + + + + + + + +
row + Vertical position index of the new selected page row position+1 will be + visible if positionOffset is nonzero
column + Horizontal position index of the new selected page
rowOffset + Value from [0, 1) indicating the offset from the row
columnOffset + Value from [0, 1) indicating the offset from the column
rowOffsetPixels + Value in pixels indicating the offset from row
columnOffsetPixels + Value in pixels indicating the offset from column +
+
+ +
+
+ + + + +
+

+ + public + + + + + void + + onPageSelected + (int row, int column) +

+
+
+ + + +
+
+ + + + +

This method is called when a new page becomes selected. The page may still be settling + into final position.

+
+
Parameters
+ + + + + + + +
row + Vertical position index of the new selected page
column + Horizontal position index of the new selected page +
+
+ +
+
+ + + + +
+

+ + public + + + + + void + + setDotColor + (int color) +

+
+
+ + + +
+
+ + + + +

Sets the color used for dots other than the selected page.

+
+
Parameters
+ + + + +
color + the color used for dots other than the selected page +
+
+ +
+
+ + + + +
+

+ + public + + + + + void + + setDotColorSelected + (int color) +

+
+
+ + + +
+
+ + + + +

Sets the color of the dot for the selected page.

+
+
Parameters
+ + + + +
color + the color of the dot for the selected page +
+
+ +
+
+ + + + +
+

+ + public + + + + + void + + setDotFadeInDuration + (int duration, TimeUnit unit) +

+
+
+ + + +
+
+ + + + +

Sets the duration of the fade in animation.

+
+
Parameters
+ + + + +
duration + the duration of the fade in animation +
+
+ +
+
+ + + + +
+

+ + public + + + + + void + + setDotFadeOutDelay + (int delay) +

+
+
+ + + +
+
+ + + + +

Sets the delay between the pager arriving at an idle state, and the fade out animation + beginning, in milliseconds.

+
+
Parameters
+ + + + +
delay + the delay before the fade out animation begins, in milliseconds +
+
+ +
+
+ + + + +
+

+ + public + + + + + void + + setDotFadeOutDuration + (int duration, TimeUnit unit) +

+
+
+ + + +
+
+ + + + +

Sets the duration of the fade out animation.

+
+
Parameters
+ + + + +
duration + the duration of the fade out animation +
+
+ +
+
+ + + + +
+

+ + public + + + + + void + + setDotFadeWhenIdle + (boolean fade) +

+
+
+ + + +
+
+ + + + +

Sets whether the dots fade out when the pager is idle.

+
+
Parameters
+ + + + +
fade + whether the dots fade out when idle +
+
+ +
+
+ + + + +
+

+ + public + + + + + void + + setDotRadius + (int radius) +

+
+
+ + + +
+
+ + + + +

Sets the radius of the page dots.

+
+
Parameters
+ + + + +
radius + the radius of the page dots +
+
+ +
+
+ + + + +
+

+ + public + + + + + void + + setDotRadiusSelected + (int radius) +

+
+
+ + + +
+
+ + + + +

Sets the radius of the page dot for the selected page.

+
+
Parameters
+ + + + +
radius + the radius of the selected page dot +
+
+ +
+
+ + + + +
+

+ + public + + + + + void + + setDotShadowColor + (int color) +

+
+
+ + + +
+
+ + + + +

Sets the color of the shadows drawn beneath the dots.

+
+
Parameters
+ + + + +
color + the color of the shadows drawn beneath the dots +
+
+ +
+
+ + + + +
+

+ + public + + + + + void + + setDotShadowDx + (float dx) +

+
+
+ + + +
+
+ + + + +

Sets the horizontal offset of shadows drawn beneath the dots.

+
+
Parameters
+ + + + +
dx + the horizontal offset of shadows drawn beneath the dots +
+
+ +
+
+ + + + +
+

+ + public + + + + + void + + setDotShadowDy + (float dy) +

+
+
+ + + +
+
+ + + + +

Sets the vertical offset of shadows drawn beneath the dots.

+
+
Parameters
+ + + + +
dy + the vertical offset of shadows drawn beneath the dots +
+
+ +
+
+ + + + +
+

+ + public + + + + + void + + setDotShadowRadius + (float radius) +

+
+
+ + + +
+
+ + + + +

Sets the pixel radius of shadows drawn beneath the dots.

+
+
Parameters
+ + + + +
radius + the pixel radius of shadows rendered beneath the dots +
+
+ +
+
+ + + + +
+

+ + public + + + + + void + + setDotSpacing + (int spacing) +

+
+
+ + + +
+
+ + + + +

Sets the center-to-center distance between page dots.

+
+
Parameters
+ + + + +
spacing + the distance between page dots +
+
+ +
+
+ + + + +
+

+ + public + + + + + void + + setOnAdapterChangeListener + (GridViewPager.OnAdapterChangeListener listener) +

+
+
+ + + +
+
+ + + + +

Sets a listener to receive the adapter change events that are provided to the page indicator. + This allows an additional component to respond to these events without the need for + additional code.

+
+
Parameters
+ + + + +
listener + the listener for adapter change events +
+
+ +
+
+ + + + +
+

+ + public + + + + + void + + setOnPageChangeListener + (GridViewPager.OnPageChangeListener listener) +

+
+
+ + + +
+
+ + + + +

Sets a listener to receive the page change events that are provided to the page indicator. + This allows an additional component to respond to these events without the need for + additional code.

+
+
Parameters
+ + + + +
listener + the listener for page change events +
+
+ +
+
+ + + + +
+

+ + public + + + + + void + + setPager + (GridViewPager pager) +

+
+
+ + + +
+
+ + + + +

Supplies the GridViewPager instance, and attaches this views GridViewPager.OnPageChangeListener and + GridViewPager.OnAdapterChangeListener listeners to the pager.

+
+
Parameters
+ + + + +
pager + the pager for the page indicator +
+
+ +
+
+ + + + + + + +

Protected Methods

+ + + + + +
+

+ + protected + + + + + void + + onDraw + (Canvas canvas) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + protected + + + + + void + + onMeasure + (int widthMeasureSpec, int heightMeasureSpec) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/view/FragmentGridPagerAdapter.html b/docs/html/reference/android/support/wearable/view/FragmentGridPagerAdapter.html new file mode 100644 index 00000000000..133e3e2a9b4 --- /dev/null +++ b/docs/html/reference/android/support/wearable/view/FragmentGridPagerAdapter.html @@ -0,0 +1,2467 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +FragmentGridPagerAdapter | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+
+ + + + +
+ public + + + abstract + class +

FragmentGridPagerAdapter

+ + + + + + + + + extends GridPagerAdapter
+ + + + + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
java.lang.Object
   ↳android.support.wearable.view.GridPagerAdapter
    ↳android.support.wearable.view.FragmentGridPagerAdapter
+ + + + + + + +
+ + +

Class Overview

+

An implementation of GridPagerAdapter which represents each page as a Fragment. +

+ A minimal implementation needs only the abstract methods: getRowCount(), + getColumnCount(int), getFragment(int, int). +

+ If any changes are made to the data, notifyDataSetChanged() must be called to notify the + adapter of the change, so it can be reflected in the View. +

+ If pages the data at be inserted or removed, performance can be improved by implementing + getFragmentId(int, int) to to provide a stable ID for each item, based on the content. +

+ + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Constants
+ + From class +android.support.wearable.view.GridPagerAdapter +
+ + +
+
+ + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Fields
+ + From class +android.support.wearable.view.GridPagerAdapter +
+ + +
+
+ + + + + + + + + + + + + + + + +
Public Constructors
+ + + + + + + + FragmentGridPagerAdapter(FragmentManager fm) + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Methods
+ + + + + + Drawable + + getBackgroundForPage(int row, int column) + +
+ Provides content to be displayed as the background for a specific page. + + + +
+ +
+ abstract + + + + + Fragment + + getFragment(int row, int column) + +
+ Returns the Fragment at the specified row number and column number. + + + +
+ +
+ + + + + + boolean + + isViewFromObject(View view, Object object) + +
+ Determines whether a page View is associated with a specific key object as returned by + instantiateItem(ViewGroup, int, int). + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Protected Methods
+ + + + + + void + + destroyItem(ViewGroup container, int row, int column, Object object) + +
+ Removes a page for the given position. + + + +
+ +
+ + + + + + void + + finishUpdate(ViewGroup container) + +
+ Called when the a change in the shown pages has been completed. + + + +
+ +
+ + + final + + + Drawable + + getFragmentBackground(int row, int column) + +
+ Returns a background for Fragments implementing GridPageOptions. + + + +
+ +
+ + + + + + long + + getFragmentId(int row, int column) + +
+ Returns a unique identifier for the Fragment at the given row/column + position. + + + +
+ +
+ + + + + + Fragment + + instantiateItem(ViewGroup container, int row, int column) + +
+ Creates the page for the given position. + + + +
+ +
+ + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Methods
+ +From class + + android.support.wearable.view.GridPagerAdapter + +
+ + +
+
+ +From class + + java.lang.Object + +
+ + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Constructors

+ + + + + +
+

+ + public + + + + + + + FragmentGridPagerAdapter + (FragmentManager fm) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + + + + + +

Public Methods

+ + + + + +
+

+ + public + + + + + Drawable + + getBackgroundForPage + (int row, int column) +

+
+
+ + + +
+
+ + + + +

Provides content to be displayed as the background for a specific page. +

+ The return value BACKGROUND_NONE indicates that there is no page-specific + background. and the row background should be used (if any). +

+ This implementation simply returns the result of getFragmentBackground(int, int).

+
+
Parameters
+ + + + + + + +
row + the row of the page
column + the column of the page
+
+
+
Returns
+ +
+ +
+
+ + + + +
+

+ + public + + + abstract + + Fragment + + getFragment + (int row, int column) +

+
+
+ + + +
+
+ + + + +

Returns the Fragment at the specified row number and column number. +

+ Fragment instances MAY be stored and reused ONLY if no structural changes are made to the + data set or if getFragmentId(int, int) is overridden to provide a stable identifier + for each the item at each position, otherwise results are undefined.

+
+
Parameters
+ + + + + + + +
row + the row of the position
column + the column of the position +
+
+ +
+
+ + + + +
+

+ + public + + + + + boolean + + isViewFromObject + (View view, Object object) +

+
+
+ + + +
+
+ + + + +

Determines whether a page View is associated with a specific key object as returned by + instantiateItem(ViewGroup, int, int). This method is required for a PagerAdapter to + function properly.

+
+
Parameters
+ + + + + + + +
view + Page View to check for association with object
object + Object to check for association with view
+
+
+
Returns
+
  • true if view is associated with the key object object +
+
+ +
+
+ + + + + + + +

Protected Methods

+ + + + + +
+

+ + protected + + + + + void + + destroyItem + (ViewGroup container, int row, int column, Object object) +

+
+
+ + + +
+
+ + + + +

Removes a page for the given position. The adapter is responsible for removing the view from + its container, although it only must ensure this is done by the time it returns from + finishUpdate(ViewGroup).

+
+
Parameters
+ + + + + + + + + + + + + +
container + The containing View from which the page will be removed.
row + the row to be destroyed
column + the column within the row to be destroyed
object + The same object that was returned by + instantiateItem(ViewGroup, int, int). +
+
+ +
+
+ + + + +
+

+ + protected + + + + + void + + finishUpdate + (ViewGroup container) +

+
+
+ + + +
+
+ + + + +

Called when the a change in the shown pages has been completed. At this point you must ensure + that all of the pages have actually been added or removed from the container as appropriate.

+
+
Parameters
+ + + + +
container + The containing View which is displaying this adapter's page views +
+
+ +
+
+ + + + +
+

+ + protected + + final + + + Drawable + + getFragmentBackground + (int row, int column) +

+
+
+ + + +
+
+ + + + +

Returns a background for Fragments implementing GridPageOptions.

+
+
Parameters
+ + + + + + + +
row + the row of the fragment
column + the column of the fragment
+
+
+
Returns
+ +
+ +
+
+ + + + +
+

+ + protected + + + + + long + + getFragmentId + (int row, int column) +

+
+
+ + + +
+
+ + + + +

Returns a unique identifier for the Fragment at the given row/column + position. +

+ The default implementation returns a fixed number based on the position. Subclasses should + override this method if the positions of items can change. +

+
+
Parameters
+ + + + + + + +
row + the row that this item is at
column + the column within this row that the item is at
+
+
+
Returns
+
  • Unique identifier for the item at position +
+
+ +
+
+ + + + +
+

+ + protected + + + + + Fragment + + instantiateItem + (ViewGroup container, int row, int column) +

+
+
+ + + +
+
+ + + + +

Creates the page for the given position. The adapter is responsible for adding the view to + the container given here, although it only must ensure this is done by the time it returns + from finishUpdate(ViewGroup)

+
+
Parameters
+ + + + + + + + + + +
container + containing View in which the page will be shown
row + the row to be instantiated
column + the column within the row to be instantiated
+
+
+
Returns
+
  • a an object representing the new page +
+
+ +
+
+ + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/view/GridPageOptions.BackgroundListener.html b/docs/html/reference/android/support/wearable/view/GridPageOptions.BackgroundListener.html new file mode 100644 index 00000000000..ba85ae42209 --- /dev/null +++ b/docs/html/reference/android/support/wearable/view/GridPageOptions.BackgroundListener.html @@ -0,0 +1,914 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +GridPageOptions.BackgroundListener | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ +
+ + + + + +
+ + + + +
+
+ + + + +
+ public + static + + + interface +

GridPageOptions.BackgroundListener

+ + + + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + +
android.support.wearable.view.GridPageOptions.BackgroundListener
+ + + + + + + +
+ + +

Class Overview

+

Interface for communicating background changes to a listener. +

+ + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Methods
+ abstract + + + + + void + + notifyBackgroundChanged() + +
+ Notifies the container about a change to the background. + + + +
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Methods

+ + + + + +
+

+ + public + + + abstract + + void + + notifyBackgroundChanged + () +

+
+
+ + + +
+
+ + + + +

Notifies the container about a change to the background. When necessary, + getBackground() will be called again for this page to update the + background. +

+ +
+
+ + + + + + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/view/GridPageOptions.html b/docs/html/reference/android/support/wearable/view/GridPageOptions.html new file mode 100644 index 00000000000..0281f588d54 --- /dev/null +++ b/docs/html/reference/android/support/wearable/view/GridPageOptions.html @@ -0,0 +1,1009 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +GridPageOptions | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ +
+ + + + + +
+ + + + +
+
+ + + + +
+ public + + + + interface +

GridPageOptions

+ + + + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + +
android.support.wearable.view.GridPageOptions
+ + + + + + + +
+ + +

Class Overview

+

An optional interface for a Fragment within a GridViewPager which provides additional + configurable options. +

+ + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Nested Classes
+ + + + + interfaceGridPageOptions.BackgroundListener + Interface for communicating background changes to a listener.  + + + +
+ + + + + + + + + + + + + + + + +
Public Methods
+ abstract + + + + + Drawable + + getBackground() + +
+ Provides a background for the page represented by this Fragment. + + + +
+ +
+ abstract + + + + + void + + setBackgroundListener(GridPageOptions.BackgroundListener listener) + +
+ Provides a listener used to notify the container about a change to the background. + + + +
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Methods

+ + + + + +
+

+ + public + + + abstract + + Drawable + + getBackground + () +

+
+
+ + + +
+
+ + + + +

Provides a background for the page represented by this Fragment. A return value of + BACKGROUND_NONE will default to the background for the row, if + supplied.

+
+
See Also
+ +
+ +
+
+ + + + +
+

+ + public + + + abstract + + void + + setBackgroundListener + (GridPageOptions.BackgroundListener listener) +

+
+
+ + + +
+
+ + + + +

Provides a listener used to notify the container about a change to the background.

+
+
Parameters
+ + + + +
listener + a listener used to notify about background changes +
+
+ +
+
+ + + + + + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/view/GridPagerAdapter.html b/docs/html/reference/android/support/wearable/view/GridPagerAdapter.html new file mode 100644 index 00000000000..28864de4df5 --- /dev/null +++ b/docs/html/reference/android/support/wearable/view/GridPagerAdapter.html @@ -0,0 +1,2878 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +GridPagerAdapter | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ +
+ + + + + + + + + + + + +
+ + + + +
+
+ + + + +
+ public + + + abstract + class +

GridPagerAdapter

+ + + + + extends Object
+ + + + + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + + + + + + + + +
java.lang.Object
   ↳android.support.wearable.view.GridPagerAdapter
+ + + + +
+ + Known Direct Subclasses + +
+ + +
+
+ + + + +
+ + +

Class Overview

+

This component is responsible for providing views requested by a GridViewPager. +

+ Content is organized into rows and columns of pages, where each page is represented by a View. + Each row may contain a different number of columns. +

+ In addition to content views, this adapter is also queried for backgrounds to be displayed for + each page. When the same background spans multiple pages, it's automatically zoomed and panned to + create a parallax effect against the movement of the page content as it moves. By default, no + background is provided. +

+ + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Constants
intOPTION_DISABLE_PARALLAX + Disables zooming and parallax scrolling of the background. + + + +
intPAGE_DEFAULT_OPTIONS + Default background options. + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Fields
+ public + static + final + DrawableBACKGROUND_NONE + This value indicates that no background should drawn. + + + +
+ public + static + final + PointPOSITION_NONE + + + + +
+ public + static + final + PointPOSITION_UNCHANGED + + + + +
+ + + + + + + + + + + + + + + + + + + +
Public Constructors
+ + + + + + + + GridPagerAdapter() + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Methods
+ + + + + + Drawable + + getBackgroundForPage(int row, int column) + +
+ Provides content to be displayed as background for a specific page. + + + +
+ +
+ + + + + + Drawable + + getBackgroundForRow(int row) + +
+ Provides content to be displayed as the default background for all pages on the given row. + + + +
+ +
+ abstract + + + + + int + + getColumnCount(int row) + +
+ Returns the maximum number of columns for each row. + + + +
+ +
+ + + + + + int + + getCurrentColumnForRow(int row, int currentColumn) + +
+ Returns the column to arrive at when navigating vertically to the specified row. + + + +
+ +
+ + + + + + Point + + getItemPosition(Object object) + +
+ Called when the host view is attempting to determine if an item's position has changed. + + + +
+ +
+ + + + + + int + + getOptionsForPage(int row, int column) + +
+ Provides a set of features to apply to a page background. + + + +
+ +
+ abstract + + + + + int + + getRowCount() + +
+ Returns the number of rows available. + + + +
+ +
+ abstract + + + + + boolean + + isViewFromObject(View view, Object object) + +
+ Determines whether a page View is associated with a specific key object as returned by + instantiateItem(ViewGroup, int, int). + + + +
+ +
+ + + + + + void + + notifyDataSetChanged() + +
+ This method should be called by the application if the data backing this adapter has changed + and associated views should update. + + + +
+ +
+ + + + + + void + + notifyPageBackgroundChanged(int row, int column) + +
+ This method should be called if the value returned by getBackgroundForPage(int, int) + or options returned by getOptionsForPage(int, int) change. + + + +
+ +
+ + + + + + void + + notifyRowBackgroundChanged(int row) + +
+ This method should be called if the value returned by getBackgroundForRow(int) + changes. + + + +
+ +
+ + + + + + void + + registerDataSetObserver(DataSetObserver observer) + +
+ Register an observer to receive callbacks related to the adapter's data changing. + + + +
+ +
+ + + + + + void + + restoreState(Parcelable savedState, ClassLoader classLoader) + +
+ Restores the previously saved state of this adapter. + + + +
+ +
+ + + + + + Parcelable + + saveState() + +
+ Saves the current state of this adapter. + + + +
+ +
+ + + + + + void + + unregisterDataSetObserver(DataSetObserver observer) + +
+ Unregister an observer from callbacks related to the adapter's data changing. + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Protected Methods
+ abstract + + + + + void + + destroyItem(ViewGroup container, int row, int column, Object object) + +
+ Removes a page for the given position. + + + +
+ +
+ + + + + + void + + finishUpdate(ViewGroup container) + +
+ Called when the a change in the shown pages has been completed. + + + +
+ +
+ abstract + + + + + Object + + instantiateItem(ViewGroup container, int row, int column) + +
+ Creates the page for the given position. + + + +
+ +
+ + + + + + void + + setCurrentColumnForRow(int row, int currentColumn) + +
+ Called to inform the adapter of which column is now current for the given row. + + + +
+ +
+ + + + + + void + + startUpdate(ViewGroup container) + +
+ Called when a change in the shown pages is going to start being made. + + + +
+ +
+ + + + + + + + + + + + + +
+ [Expand] +
Inherited Methods
+ +From class + + java.lang.Object + +
+ + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + +

Constants

+ + + + + + +
+

+ + public + static + final + int + + OPTION_DISABLE_PARALLAX +

+
+ + + + +
+
+ + + + +

Disables zooming and parallax scrolling of the background. +

+ + +
+ Constant Value: + + + 1 + (0x00000001) + + +
+ +
+
+ + + + + +
+

+ + public + static + final + int + + PAGE_DEFAULT_OPTIONS +

+
+ + + + +
+
+ + + + +

Default background options. Parallax scrolling is enabled. +

+ + +
+ Constant Value: + + + 0 + (0x00000000) + + +
+ +
+
+ + + + + + + + +

Fields

+ + + + + + +
+

+ + public + static + final + Drawable + + BACKGROUND_NONE +

+
+ + + + +
+
+ + + + +

This value indicates that no background should drawn. See getBackgroundForRow(int) and + getBackgroundForPage(int, int) for specific effects. +

+ + +
+
+ + + + + +
+

+ + public + static + final + Point + + POSITION_NONE +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + +
+

+ + public + static + final + Point + + POSITION_UNCHANGED +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + + + + +

Public Constructors

+ + + + + +
+

+ + public + + + + + + + GridPagerAdapter + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + + + + + +

Public Methods

+ + + + + +
+

+ + public + + + + + Drawable + + getBackgroundForPage + (int row, int column) +

+
+
+ + + +
+
+ + + + +

Provides content to be displayed as background for a specific page. +

+ The return value BACKGROUND_NONE indicates that there is no page-specific background. + and the row background should be used (if any). +

+ The return value of this method can be cached. notifyPageBackgroundChanged(int, int) may be + used to invalidate a previously returned value. getBackgroundForPage(int, int) will then be + called to request the new value when necessary.

+
+
Parameters
+ + + + + + + +
row + the row of the page
column + the column of the page +
+
+ +
+
+ + + + +
+

+ + public + + + + + Drawable + + getBackgroundForRow + (int row) +

+
+
+ + + +
+
+ + + + +

Provides content to be displayed as the default background for all pages on the given row. +

+ The return value BACKGROUND_NONE causes no background to be displayed, except for + those applied by getBackgroundForPage(int, int). +

+ The return value of this method can be cached. notifyRowBackgroundChanged(int) may be + used to invalidate a previously returned value. getBackgroundForRow(int) will then be + called to request the new value when necessary.

+
+
Parameters
+ + + + +
row + the row of the page
+
+
+
Returns
+
  • a drawable to display for the row +
+
+ +
+
+ + + + +
+

+ + public + + + abstract + + int + + getColumnCount + (int row) +

+
+
+ + + +
+
+ + + + +

Returns the maximum number of columns for each row. The number of columns may vary by row. +

+ +
+
+ + + + +
+

+ + public + + + + + int + + getCurrentColumnForRow + (int row, int currentColumn) +

+
+
+ + + +
+
+ + + + +

Returns the column to arrive at when navigating vertically to the specified row. +

+ The default implementation simply returns 0.

+
+
Parameters
+ + + + + + + +
row + the row in question
currentColumn + the column which is currently centered
+
+
+
Returns
+
  • the column to arrive at +
+
+ +
+
+ + + + +
+

+ + public + + + + + Point + + getItemPosition + (Object object) +

+
+
+ + + +
+
+ + + + +

Called when the host view is attempting to determine if an item's position has changed. + Returns POSITION_UNCHANGED if the position of the given item has not changed or + POSITION_NONE if the item is no longer present in the adapter. +

+ The default implementation assumes that all items have been removed and always returns + POSITION_NONE. This causes all fragments to be detached and re-attached as needed.

+
+
Parameters
+ + + + +
object + Object representing an item, previously returned by a call to + instantiateItem(ViewGroup, int, int).
+
+
+
Returns
+
  • object's new position with row from [0, getRowCount()] and column from [0, + getColumnCount(row)], POSITION_UNCHANGED if the object's position has not + changed, or POSITION_NONE if the item is no longer present. +
+
+ +
+
+ + + + +
+

+ + public + + + + + int + + getOptionsForPage + (int row, int column) +

+
+
+ + + +
+
+ + + + +

Provides a set of features to apply to a page background. The return value should be a + combination of one or more of the following, combined via bitwise-or: +

+ The default return value is PAGE_DEFAULT_OPTIONS.

+
+
Parameters
+ + + + + + + +
row + the row of the page
column + the column of the page
+
+
+
Returns
+
  • a bitwise OR of all requested options +
+
+ +
+
+ + + + +
+

+ + public + + + abstract + + int + + getRowCount + () +

+
+
+ + + +
+
+ + + + +

Returns the number of rows available. +

+ +
+
+ + + + +
+

+ + public + + + abstract + + boolean + + isViewFromObject + (View view, Object object) +

+
+
+ + + +
+
+ + + + +

Determines whether a page View is associated with a specific key object as returned by + instantiateItem(ViewGroup, int, int). This method is required for a PagerAdapter to + function properly.

+
+
Parameters
+ + + + + + + +
view + Page View to check for association with object
object + Object to check for association with view
+
+
+
Returns
+
  • true if view is associated with the key object object +
+
+ +
+
+ + + + +
+

+ + public + + + + + void + + notifyDataSetChanged + () +

+
+
+ + + +
+
+ + + + +

This method should be called by the application if the data backing this adapter has changed + and associated views should update. +

+ +
+
+ + + + +
+

+ + public + + + + + void + + notifyPageBackgroundChanged + (int row, int column) +

+
+
+ + + +
+
+ + + + +

This method should be called if the value returned by getBackgroundForPage(int, int) + or options returned by getOptionsForPage(int, int) change. Any cached value are + removed and the the new value will be requested when necessary. +

+ +
+
+ + + + +
+

+ + public + + + + + void + + notifyRowBackgroundChanged + (int row) +

+
+
+ + + +
+
+ + + + +

This method should be called if the value returned by getBackgroundForRow(int) + changes. Any cached value is removed and the the new value will be requested when necessary. +

+ +
+
+ + + + +
+

+ + public + + + + + void + + registerDataSetObserver + (DataSetObserver observer) +

+
+
+ + + +
+
+ + + + +

Register an observer to receive callbacks related to the adapter's data changing.

+
+
Parameters
+ + + + +
observer + The DataSetObserver which will receive callbacks. +
+
+ +
+
+ + + + +
+

+ + public + + + + + void + + restoreState + (Parcelable savedState, ClassLoader classLoader) +

+
+
+ + + +
+
+ + + + +

Restores the previously saved state of this adapter. +

+ +
+
+ + + + +
+

+ + public + + + + + Parcelable + + saveState + () +

+
+
+ + + +
+
+ + + + +

Saves the current state of this adapter. +

+ +
+
+ + + + +
+

+ + public + + + + + void + + unregisterDataSetObserver + (DataSetObserver observer) +

+
+
+ + + +
+
+ + + + +

Unregister an observer from callbacks related to the adapter's data changing.

+
+
Parameters
+ + + + +
observer + The DataSetObserver which will be unregistered. +
+
+ +
+
+ + + + + + + +

Protected Methods

+ + + + + +
+

+ + protected + + + abstract + + void + + destroyItem + (ViewGroup container, int row, int column, Object object) +

+
+
+ + + +
+
+ + + + +

Removes a page for the given position. The adapter is responsible for removing the view from + its container, although it only must ensure this is done by the time it returns from + finishUpdate(ViewGroup).

+
+
Parameters
+ + + + + + + + + + + + + +
container + The containing View from which the page will be removed.
row + the row to be destroyed
column + the column within the row to be destroyed
object + The same object that was returned by + instantiateItem(ViewGroup, int, int). +
+
+ +
+
+ + + + +
+

+ + protected + + + + + void + + finishUpdate + (ViewGroup container) +

+
+
+ + + +
+
+ + + + +

Called when the a change in the shown pages has been completed. At this point you must ensure + that all of the pages have actually been added or removed from the container as appropriate.

+
+
Parameters
+ + + + +
container + The containing View which is displaying this adapter's page views +
+
+ +
+
+ + + + +
+

+ + protected + + + abstract + + Object + + instantiateItem + (ViewGroup container, int row, int column) +

+
+
+ + + +
+
+ + + + +

Creates the page for the given position. The adapter is responsible for adding the view to + the container given here, although it only must ensure this is done by the time it returns + from finishUpdate(ViewGroup)

+
+
Parameters
+ + + + + + + + + + +
container + containing View in which the page will be shown
row + the row to be instantiated
column + the column within the row to be instantiated
+
+
+
Returns
+
  • a an object representing the new page +
+
+ +
+
+ + + + +
+

+ + protected + + + + + void + + setCurrentColumnForRow + (int row, int currentColumn) +

+
+
+ + + +
+
+ + + + +

Called to inform the adapter of which column is now current for the given row. This + information could be stored and used to implement getCurrentColumnForRow(int, int). + The default implementation does nothing.

+
+
Parameters
+ + + + + + + +
row + the row for the column change
currentColumn + the column which is now current +
+
+ +
+
+ + + + +
+

+ + protected + + + + + void + + startUpdate + (ViewGroup container) +

+
+
+ + + +
+
+ + + + +

Called when a change in the shown pages is going to start being made.

+
+
Parameters
+ + + + +
container + The containing View which is displaying this adapter's page views. +
+
+ +
+
+ + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/view/GridViewPager.LayoutParams.html b/docs/html/reference/android/support/wearable/view/GridViewPager.LayoutParams.html new file mode 100644 index 00000000000..ad612fac423 --- /dev/null +++ b/docs/html/reference/android/support/wearable/view/GridViewPager.LayoutParams.html @@ -0,0 +1,1848 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +GridViewPager.LayoutParams | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+
+ + + + +
+ public + static + + + class +

GridViewPager.LayoutParams

+ + + + + + + + + + + + + extends ViewGroup.MarginLayoutParams
+ + + + + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
java.lang.Object
   ↳android.view.ViewGroup.LayoutParams
    ↳android.view.ViewGroup.MarginLayoutParams
     ↳android.support.wearable.view.GridViewPager.LayoutParams
+ + + + + + + +
+ + +

Class Overview

+

Layout parameters that should be supplied for views added to a ViewPager. +

+ + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Constants
+ + From class +android.view.ViewGroup.LayoutParams +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + +
Fields
+ public + + + intgravity + Where to position the view page within the overall GridViewPager container; constants are + defined in Gravity. + + + +
+ public + + + booleanneedsMeasure + + + + +
+ + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Fields
+ + From class +android.view.ViewGroup.MarginLayoutParams +
+ + +
+
+ + From class +android.view.ViewGroup.LayoutParams +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + +
Public Constructors
+ + + + + + + + GridViewPager.LayoutParams() + +
+ + + + + + + + GridViewPager.LayoutParams(Context context, AttributeSet attrs) + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Methods
+ +From class + + android.view.ViewGroup.MarginLayoutParams + +
+ + +
+
+ +From class + + android.view.ViewGroup.LayoutParams + +
+ + +
+
+ +From class + + java.lang.Object + +
+ + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + +

Fields

+ + + + + + +
+

+ + public + + + int + + gravity +

+
+ + + + +
+
+ + + + +

Where to position the view page within the overall GridViewPager container; constants are + defined in Gravity. +

+ + +
+
+ + + + + +
+

+ + public + + + boolean + + needsMeasure +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + + + + +

Public Constructors

+ + + + + +
+

+ + public + + + + + + + GridViewPager.LayoutParams + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + + + GridViewPager.LayoutParams + (Context context, AttributeSet attrs) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/view/GridViewPager.OnAdapterChangeListener.html b/docs/html/reference/android/support/wearable/view/GridViewPager.OnAdapterChangeListener.html new file mode 100644 index 00000000000..334f0ce5410 --- /dev/null +++ b/docs/html/reference/android/support/wearable/view/GridViewPager.OnAdapterChangeListener.html @@ -0,0 +1,1029 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +GridViewPager.OnAdapterChangeListener | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ +
+ + + + + +
+ + + + +
+
+ + + + +
+ public + static + + + interface +

GridViewPager.OnAdapterChangeListener

+ + + + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + +
android.support.wearable.view.GridViewPager.OnAdapterChangeListener
+ + + + + + +
+ + Known Indirect Subclasses + +
+ + +
+
+ + +
+ + +

Class Overview

+

Callback interface for responding to a replaced or removed adapter. +

+ + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Methods
+ abstract + + + + + void + + onAdapterChanged(GridPagerAdapter oldAdapter, GridPagerAdapter newAdapter) + +
+ Called when the adapter is changed with setAdapter(GridPagerAdapter). + + + +
+ +
+ abstract + + + + + void + + onDataSetChanged() + +
+ Called when a change is made to the content of the current adapter. + + + +
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Methods

+ + + + + +
+

+ + public + + + abstract + + void + + onAdapterChanged + (GridPagerAdapter oldAdapter, GridPagerAdapter newAdapter) +

+
+
+ + + +
+
+ + + + +

Called when the adapter is changed with setAdapter(GridPagerAdapter). +

+ +
+
+ + + + +
+

+ + public + + + abstract + + void + + onDataSetChanged + () +

+
+
+ + + +
+
+ + + + +

Called when a change is made to the content of the current adapter. +

+ +
+
+ + + + + + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/view/GridViewPager.OnPageChangeListener.html b/docs/html/reference/android/support/wearable/view/GridViewPager.OnPageChangeListener.html new file mode 100644 index 00000000000..f835e3d49fd --- /dev/null +++ b/docs/html/reference/android/support/wearable/view/GridViewPager.OnPageChangeListener.html @@ -0,0 +1,1146 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +GridViewPager.OnPageChangeListener | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ +
+ + + + + +
+ + + + +
+
+ + + + +
+ public + static + + + interface +

GridViewPager.OnPageChangeListener

+ + + + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + +
android.support.wearable.view.GridViewPager.OnPageChangeListener
+ + + + + + +
+ + Known Indirect Subclasses + +
+ + +
+
+ + +
+ + +

Class Overview

+

Callback interface for responding to changing state of the selected page. +

+ + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Methods
+ abstract + + + + + void + + onPageScrollStateChanged(int state) + +
+ Called when the scroll state changes. + + + +
+ +
+ abstract + + + + + void + + onPageScrolled(int row, int column, float rowOffset, float columnOffset, int rowOffsetPixels, int columnOffsetPixels) + +
+ This method will be invoked when the current page is scrolled, either as part of a + programmatically initiated smooth scroll or a user initiated touch scroll. + + + +
+ +
+ abstract + + + + + void + + onPageSelected(int row, int column) + +
+ This method is called when a new page becomes selected. + + + +
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Methods

+ + + + + +
+

+ + public + + + abstract + + void + + onPageScrollStateChanged + (int state) +

+
+
+ + + +
+
+ + + + +

Called when the scroll state changes. Useful for discovering when the user begins + dragging, when the pager is automatically settling to the current page, or when it is + fully stopped/idle.

+
+
Parameters
+ + + + +
state + The new scroll state.
+
+ + +
+
+ + + + +
+

+ + public + + + abstract + + void + + onPageScrolled + (int row, int column, float rowOffset, float columnOffset, int rowOffsetPixels, int columnOffsetPixels) +

+
+
+ + + +
+
+ + + + +

This method will be invoked when the current page is scrolled, either as part of a + programmatically initiated smooth scroll or a user initiated touch scroll.

+
+
Parameters
+ + + + + + + + + + + + + + + + + + + +
row + Vertical position index of the new selected page row position+1 will be + visible if positionOffset is nonzero
column + Horizontal position index of the new selected page
rowOffset + Value from [0, 1) indicating the offset from the row
columnOffset + Value from [0, 1) indicating the offset from the column
rowOffsetPixels + Value in pixels indicating the offset from row
columnOffsetPixels + Value in pixels indicating the offset from column +
+
+ +
+
+ + + + +
+

+ + public + + + abstract + + void + + onPageSelected + (int row, int column) +

+
+
+ + + +
+
+ + + + +

This method is called when a new page becomes selected. The page may still be settling + into final position.

+
+
Parameters
+ + + + + + + +
row + Vertical position index of the new selected page
column + Horizontal position index of the new selected page +
+
+ +
+
+ + + + + + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/view/GridViewPager.html b/docs/html/reference/android/support/wearable/view/GridViewPager.html new file mode 100644 index 00000000000..b1ca6138b09 --- /dev/null +++ b/docs/html/reference/android/support/wearable/view/GridViewPager.html @@ -0,0 +1,16747 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +GridViewPager | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+
+ + + + +
+ public + + + + class +

GridViewPager

+ + + + + + + + + + + + + extends ViewGroup
+ + + + + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
java.lang.Object
   ↳android.view.View
    ↳android.view.ViewGroup
     ↳android.support.wearable.view.GridViewPager
+ + + + + + + +
+ + +

Class Overview

+

Layout manager that allows the user to navigate both vertically and horizontally through pages of + content. You supply an implementation of a GridPagerAdapter to generate pages for the + view to show. +

+ + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Nested Classes
+ + + + + classGridViewPager.LayoutParams + Layout parameters that should be supplied for views added to a ViewPager.  + + + +
+ + + + + interfaceGridViewPager.OnAdapterChangeListener + Callback interface for responding to a replaced or removed adapter.  + + + +
+ + + + + interfaceGridViewPager.OnPageChangeListener + Callback interface for responding to changing state of the selected page.  + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Constants
intSCROLL_STATE_CONTENT_SETTLING + + + + +
intSCROLL_STATE_DRAGGING + Indicates that the pager is currently being dragged by the user. + + + +
intSCROLL_STATE_IDLE + Indicates that the pager is in an idle, settled state. + + + +
intSCROLL_STATE_SETTLING + Indicates that the pager is in the process of settling to a final position. + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Constants
+ + From class +android.view.ViewGroup +
+ + +
+
+ + From class +android.view.View +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Fields
+ + From class +android.view.View +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Constructors
+ + + + + + + + GridViewPager(Context context) + +
+ + + + + + + + GridViewPager(Context context, AttributeSet attrs) + +
+ + + + + + + + GridViewPager(Context context, AttributeSet attrs, int defStyle) + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Methods
+ + + + + + void + + addView(View child, int index, ViewGroup.LayoutParams params) + +
+ + + + + + boolean + + canScrollHorizontally(int direction) + +
+ + + + + + boolean + + canScrollVertically(int direction) + +
+ + + + + + void + + computeScroll() + +
+ + + + + + WindowInsets + + dispatchApplyWindowInsets(WindowInsets insets) + +
+ + + + + + boolean + + dispatchKeyEvent(KeyEvent event) + +
+ + + + + + ViewGroup.LayoutParams + + generateLayoutParams(AttributeSet attrs) + +
+ + + + + + GridPagerAdapter + + getAdapter() + +
+ + + + + + Point + + getCurrentItem() + +
+ + + + + + int + + getOffscreenPageCount() + +
+ Returns the number of pages that will be retained on the sides of the current page in the + view hierarchy in an idle state. + + + +
+ +
+ + + + + + int + + getPageColumnMargin() + +
+ Return the margin between columns of pages. + + + +
+ +
+ + + + + + int + + getPageRowMargin() + +
+ Returns the margin between rows of pages. + + + +
+ +
+ + + + + + WindowInsets + + onApplyWindowInsets(WindowInsets insets) + +
+ + + + + + void + + onAttachedToWindow() + +
+ + + + + + boolean + + onInterceptTouchEvent(MotionEvent ev) + +
+ + + + + + void + + onRestoreInstanceState(Parcelable state) + +
+ + + + + + Parcelable + + onSaveInstanceState() + +
+ + + + + + boolean + + onTouchEvent(MotionEvent ev) + +
+ + + + + + void + + removeView(View view) + +
+ + + + + + void + + requestFitSystemWindows() + +
+ + + + + + void + + scrollTo(int x, int y) + +
+ + + + + + void + + setAdapter(GridPagerAdapter adapter) + +
+ Assigns an adapter to provide the content for this pager. + + + +
+ +
+ + + + + + void + + setOffscreenPageCount(int limit) + +
+ Set the number of pages that should be retained to either side of the current page in the + view hierarchy in an idle state. + + + +
+ +
+ + + + + + void + + setOnAdapterChangeListener(GridViewPager.OnAdapterChangeListener listener) + +
+ Set a listener that will be invoked whenever the adapter is changed. + + + +
+ +
+ + + + + + void + + setOnApplyWindowInsetsListener(View.OnApplyWindowInsetsListener listener) + +
+ + + + + + void + + setOnPageChangeListener(GridViewPager.OnPageChangeListener listener) + +
+ Set a listener that will be invoked whenever the page changes or is incrementally scrolled. + + + +
+ +
+ + + + + + void + + setPageMargins(int rowMarginPx, int columnMarginPx) + +
+ Sets the margin between pages. + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Protected Methods
+ + + + + + boolean + + checkLayoutParams(ViewGroup.LayoutParams p) + +
+ + + + static + + String + + debugIndent(int depth) + +
+ + + + + + ViewGroup.LayoutParams + + generateDefaultLayoutParams() + +
+ + + + + + ViewGroup.LayoutParams + + generateLayoutParams(ViewGroup.LayoutParams p) + +
+ + + + + + void + + measureChild(View child, GridViewPager.LayoutParams lp) + +
+ Used to measure all page views. + + + +
+ +
+ + + + + + void + + onDetachedFromWindow() + +
+ + + + + + void + + onLayout(boolean changed, int l, int t, int r, int b) + +
+ + + + + + void + + onMeasure(int widthMeasureSpec, int heightMeasureSpec) + +
+ + + + + + void + + onPageScrolled(int positionX, int positionY, float offsetX, float offsetY, int offsetLeftPx, int offsetTopPx) + +
+ This method will be invoked when the current page is scrolled, either as part of a + programmatically initiated smooth scroll or a user initiated touch scroll. + + + +
+ +
+ + + + + + void + + onSizeChanged(int w, int h, int oldw, int oldh) + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Methods
+ +From class + + android.view.ViewGroup + +
+ + +
+
+ +From class + + android.view.View + +
+ + +
+
+ +From class + + java.lang.Object + +
+ + +
+
+ +From interface + + android.view.ViewParent + +
+ + +
+
+ +From interface + + android.view.ViewManager + +
+ + +
+
+ +From interface + + android.graphics.drawable.Drawable.Callback + +
+ + +
+
+ +From interface + + android.view.KeyEvent.Callback + +
+ + +
+
+ +From interface + + android.view.accessibility.AccessibilityEventSource + +
+ + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + +

Constants

+ + + + + + +
+

+ + public + static + final + int + + SCROLL_STATE_CONTENT_SETTLING +

+
+ + + + +
+
+ + + + +

+ + +
+ Constant Value: + + + 3 + (0x00000003) + + +
+ +
+
+ + + + + +
+

+ + public + static + final + int + + SCROLL_STATE_DRAGGING +

+
+ + + + +
+
+ + + + +

Indicates that the pager is currently being dragged by the user. +

+ + +
+ Constant Value: + + + 1 + (0x00000001) + + +
+ +
+
+ + + + + +
+

+ + public + static + final + int + + SCROLL_STATE_IDLE +

+
+ + + + +
+
+ + + + +

Indicates that the pager is in an idle, settled state. The current page is fully in view and + no animation is in progress. +

+ + +
+ Constant Value: + + + 0 + (0x00000000) + + +
+ +
+
+ + + + + +
+

+ + public + static + final + int + + SCROLL_STATE_SETTLING +

+
+ + + + +
+
+ + + + +

Indicates that the pager is in the process of settling to a final position. +

+ + +
+ Constant Value: + + + 2 + (0x00000002) + + +
+ +
+
+ + + + + + + + + + + +

Public Constructors

+ + + + + +
+

+ + public + + + + + + + GridViewPager + (Context context) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + + + GridViewPager + (Context context, AttributeSet attrs) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + + + GridViewPager + (Context context, AttributeSet attrs, int defStyle) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + + + + + +

Public Methods

+ + + + + +
+

+ + public + + + + + void + + addView + (View child, int index, ViewGroup.LayoutParams params) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + boolean + + canScrollHorizontally + (int direction) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + boolean + + canScrollVertically + (int direction) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + computeScroll + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + WindowInsets + + dispatchApplyWindowInsets + (WindowInsets insets) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + boolean + + dispatchKeyEvent + (KeyEvent event) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + ViewGroup.LayoutParams + + generateLayoutParams + (AttributeSet attrs) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + GridPagerAdapter + + getAdapter + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + Point + + getCurrentItem + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + int + + getOffscreenPageCount + () +

+
+
+ + + +
+
+ + + + +

Returns the number of pages that will be retained on the sides of the current page in the + view hierarchy in an idle state. Defaults to 1.

+
+
Returns
+
  • How many pages will be kept off-screen on all sides
+
+
+
See Also
+ +
+ +
+
+ + + + +
+

+ + public + + + + + int + + getPageColumnMargin + () +

+
+
+ + + +
+
+ + + + +

Return the margin between columns of pages.

+
+
Returns
+
  • columnMarginPx horizontal distance between adjacent pages in pixels +
+
+ +
+
+ + + + +
+

+ + public + + + + + int + + getPageRowMargin + () +

+
+
+ + + +
+
+ + + + +

Returns the margin between rows of pages.

+
+
Returns
+
  • the vertical distance between adjacent pages in pixels +
+
+ +
+
+ + + + +
+

+ + public + + + + + WindowInsets + + onApplyWindowInsets + (WindowInsets insets) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + onAttachedToWindow + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + boolean + + onInterceptTouchEvent + (MotionEvent ev) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + onRestoreInstanceState + (Parcelable state) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + Parcelable + + onSaveInstanceState + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + boolean + + onTouchEvent + (MotionEvent ev) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + removeView + (View view) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + requestFitSystemWindows + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + scrollTo + (int x, int y) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + setAdapter + (GridPagerAdapter adapter) +

+
+
+ + + +
+
+ + + + +

Assigns an adapter to provide the content for this pager. Any existing content is removed and + discarded and the position is reset to 0,0.

+
+
Parameters
+ + + + +
adapter + the adapter to assign +
+
+ +
+
+ + + + +
+

+ + public + + + + + void + + setOffscreenPageCount + (int limit) +

+
+
+ + + +
+
+ + + + +

Set the number of pages that should be retained to either side of the current page in the + view hierarchy in an idle state. Pages beyond this limit will be recreated from the adapter + when needed. +

+ This is offered as an optimization. If you know in advance the number of pages you will need + to support or have lazy-loading mechanisms in place on your pages, tweaking this setting can + have benefits in perceived smoothness of paging animations and interaction. If you have a + small number of pages (3-4) that you can keep active all at once, less time will be spent in + layout for newly created view subtrees as the user pages back and forth. +

+

+ You should keep this limit low, especially if your pages have complex layouts. This setting + defaults to 1. +

+
+
Parameters
+ + + + +
limit + How many pages will be kept offscreen in an idle state. +
+
+ +
+
+ + + + +
+

+ + public + + + + + void + + setOnAdapterChangeListener + (GridViewPager.OnAdapterChangeListener listener) +

+
+
+ + + +
+
+ + + + +

Set a listener that will be invoked whenever the adapter is changed. + See GridViewPager.OnAdapterChangeListener.

+
+
Parameters
+ + + + +
listener + Listener to set +
+
+ +
+
+ + + + +
+

+ + public + + + + + void + + setOnApplyWindowInsetsListener + (View.OnApplyWindowInsetsListener listener) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + setOnPageChangeListener + (GridViewPager.OnPageChangeListener listener) +

+
+
+ + + +
+
+ + + + +

Set a listener that will be invoked whenever the page changes or is incrementally scrolled. + See GridViewPager.OnPageChangeListener.

+
+
Parameters
+ + + + +
listener + Listener to set +
+
+ +
+
+ + + + +
+

+ + public + + + + + void + + setPageMargins + (int rowMarginPx, int columnMarginPx) +

+
+
+ + + +
+
+ + + + +

Sets the margin between pages.

+
+
Parameters
+ + + + + + + +
rowMarginPx + vertical distance between adjacent pages in pixels
columnMarginPx + horizontal distance between adjacent pages in pixels +
+
+ +
+
+ + + + + + + +

Protected Methods

+ + + + + +
+

+ + protected + + + + + boolean + + checkLayoutParams + (ViewGroup.LayoutParams p) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + protected + static + + + + String + + debugIndent + (int depth) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + protected + + + + + ViewGroup.LayoutParams + + generateDefaultLayoutParams + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + protected + + + + + ViewGroup.LayoutParams + + generateLayoutParams + (ViewGroup.LayoutParams p) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + protected + + + + + void + + measureChild + (View child, GridViewPager.LayoutParams lp) +

+
+
+ + + +
+
+ + + + +

Used to measure all page views. Views with a dimension of match_parent or a specific size + will be measured with EXACTLY, while those with wrap_content will be measured as UNSPECIFIED + to allow them to become as large as desired. +

+ +
+
+ + + + +
+

+ + protected + + + + + void + + onDetachedFromWindow + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + protected + + + + + void + + onLayout + (boolean changed, int l, int t, int r, int b) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + protected + + + + + void + + onMeasure + (int widthMeasureSpec, int heightMeasureSpec) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + protected + + + + + void + + onPageScrolled + (int positionX, int positionY, float offsetX, float offsetY, int offsetLeftPx, int offsetTopPx) +

+
+
+ + + +
+
+ + + + +

This method will be invoked when the current page is scrolled, either as part of a + programmatically initiated smooth scroll or a user initiated touch scroll. If you override + this method you must call through to the superclass implementation (e.g. + super.onPageScrolled(position, offset, offsetPixels)) before onPageScrolled returns.

+
+
Parameters
+ + + + + + + + + + + + + + + + + + + +
positionX + column index of the first page currently being displayed. Page positionX+1 + will be visible if offsetX is nonzero.
positionY + row index of the first page currently being displayed. Page positionY+1 will + be visible if offseyY is nonzero.
offsetX + Value from [0, 1) indicating the left offset from the page at positionX.
offsetY + Value from [0, 1) indicating the top offset from the page at positionY.
offsetLeftPx + Value in pixels indicating the offset from positionX.
offsetTopPx + Value in pixels indicating the offset from positionY. +
+
+ +
+
+ + + + +
+

+ + protected + + + + + void + + onSizeChanged + (int w, int h, int oldw, int oldh) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/view/SimpleAnimatorListener.html b/docs/html/reference/android/support/wearable/view/SimpleAnimatorListener.html new file mode 100644 index 00000000000..7242e9024c7 --- /dev/null +++ b/docs/html/reference/android/support/wearable/view/SimpleAnimatorListener.html @@ -0,0 +1,1586 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +SimpleAnimatorListener | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ +
+ + + + + + + + + + + + + + + + + + + +
+ + + + +
+
+ + + + +
+ public + + + + class +

SimpleAnimatorListener

+ + + + + extends Object
+ + + + + + + implements + + Animator.AnimatorListener + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + + + + + + + + +
java.lang.Object
   ↳android.support.wearable.view.SimpleAnimatorListener
+ + + + + + + +
+ + +

Class Overview

+

Convenience class for listening for Animator events that implements the AnimatorListener + interface and allows extending only methods that are necessary. +

+ + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Constructors
+ + + + + + + + SimpleAnimatorListener() + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Methods
+ + + + + + void + + onAnimationCancel(Animator animator) + +
+ + + + + + void + + onAnimationComplete(Animator animator) + +
+ Called when the animation finishes. + + + +
+ +
+ + + + + + void + + onAnimationEnd(Animator animator) + +
+ + + + + + void + + onAnimationRepeat(Animator animator) + +
+ + + + + + void + + onAnimationStart(Animator animator) + +
+ + + + + + boolean + + wasCanceled() + +
+ Provides information if the animation was cancelled. + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Methods
+ +From class + + java.lang.Object + +
+ + +
+
+ +From interface + + android.animation.Animator.AnimatorListener + +
+ + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Constructors

+ + + + + +
+

+ + public + + + + + + + SimpleAnimatorListener + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + + + + + +

Public Methods

+ + + + + +
+

+ + public + + + + + void + + onAnimationCancel + (Animator animator) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + onAnimationComplete + (Animator animator) +

+
+
+ + + +
+
+ + + + +

Called when the animation finishes. Not called if the animation was canceled. +

+ +
+
+ + + + +
+

+ + public + + + + + void + + onAnimationEnd + (Animator animator) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + onAnimationRepeat + (Animator animator) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + onAnimationStart + (Animator animator) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + boolean + + wasCanceled + () +

+
+
+ + + +
+
+ + + + +

Provides information if the animation was cancelled.

+
+
Returns
+
  • True if animation was cancelled. +
+
+ +
+
+ + + + + + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/view/WatchViewStub.OnLayoutInflatedListener.html b/docs/html/reference/android/support/wearable/view/WatchViewStub.OnLayoutInflatedListener.html new file mode 100644 index 00000000000..c89f8092d58 --- /dev/null +++ b/docs/html/reference/android/support/wearable/view/WatchViewStub.OnLayoutInflatedListener.html @@ -0,0 +1,908 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +WatchViewStub.OnLayoutInflatedListener | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ +
+ + + + + +
+ + + + +
+
+ + + + +
+ public + static + + + interface +

WatchViewStub.OnLayoutInflatedListener

+ + + + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + +
android.support.wearable.view.WatchViewStub.OnLayoutInflatedListener
+ + + + + + + +
+ + +

Class Overview

+

Listener for detecting when internal layout inflation has completed. + If you need to perform a series of findViewById + calls to locate inflated views you should do so here. + +

Listeners may be called more than once if the window insets configuration changes.

+

+ + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Methods
+ abstract + + + + + void + + onLayoutInflated(WatchViewStub stub) + +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Methods

+ + + + + +
+

+ + public + + + abstract + + void + + onLayoutInflated + (WatchViewStub stub) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/view/WatchViewStub.html b/docs/html/reference/android/support/wearable/view/WatchViewStub.html new file mode 100644 index 00000000000..828a6df6297 --- /dev/null +++ b/docs/html/reference/android/support/wearable/view/WatchViewStub.html @@ -0,0 +1,15454 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +WatchViewStub | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+
+ + + + +
+ public + + + + class +

WatchViewStub

+ + + + + + + + + + + + + + + + + extends FrameLayout
+ + + + + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
java.lang.Object
   ↳android.view.View
    ↳android.view.ViewGroup
     ↳android.widget.FrameLayout
      ↳android.support.wearable.view.WatchViewStub
+ + + + + + + +
+ + +

Class Overview

+

A WatchViewStub allows for the use of different sub-layouts depending on the + shape of the device screen as reported by + onApplyWindowInsets. + If the call is not delivered by initial measurement the container will be assumed rectangular. +

+ + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Nested Classes
+ + + + + interfaceWatchViewStub.OnLayoutInflatedListener + Listener for detecting when internal layout inflation has completed.  + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Constants
+ + From class +android.view.ViewGroup +
+ + +
+
+ + From class +android.view.View +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Fields
+ + From class +android.view.View +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Constructors
+ + + + + + + + WatchViewStub(Context context) + +
+ + + + + + + + WatchViewStub(Context context, AttributeSet attrs) + +
+ + + + + + + + WatchViewStub(Context context, AttributeSet attrs, int defStyle) + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Methods
+ + + + + + void + + inflate() + +
+ Inflate the appropriate child layout for the last known container. + + + +
+ +
+ + + + + + WindowInsets + + onApplyWindowInsets(WindowInsets insets) + +
+ + + + + + void + + onMeasure(int widthMeasureSpec, int heightMeasureSpec) + +
+ + + + + + void + + setOnLayoutInflatedListener(WatchViewStub.OnLayoutInflatedListener listener) + +
+ Set a listener to be notified when one of the specified sub-layouts is inflated into + this stub container. + + + +
+ +
+ + + + + + void + + setRectLayout(int resId) + +
+ Set a layout resource to be inflated when this stub is within a rectangular container. + + + +
+ +
+ + + + + + void + + setRoundLayout(int resId) + +
+ Set a layout resource to be inflated when this stub is within a round container. + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + +
Protected Methods
+ + + + + + void + + onAttachedToWindow() + +
+ + + + + + void + + onLayout(boolean changed, int left, int top, int right, int bottom) + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Methods
+ +From class + + android.widget.FrameLayout + +
+ + +
+
+ +From class + + android.view.ViewGroup + +
+ + +
+
+ +From class + + android.view.View + +
+ + +
+
+ +From class + + java.lang.Object + +
+ + +
+
+ +From interface + + android.view.ViewParent + +
+ + +
+
+ +From interface + + android.view.ViewManager + +
+ + +
+
+ +From interface + + android.graphics.drawable.Drawable.Callback + +
+ + +
+
+ +From interface + + android.view.KeyEvent.Callback + +
+ + +
+
+ +From interface + + android.view.accessibility.AccessibilityEventSource + +
+ + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Constructors

+ + + + + +
+

+ + public + + + + + + + WatchViewStub + (Context context) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + + + WatchViewStub + (Context context, AttributeSet attrs) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + + + WatchViewStub + (Context context, AttributeSet attrs, int defStyle) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + + + + + +

Public Methods

+ + + + + +
+

+ + public + + + + + void + + inflate + () +

+
+
+ + + +
+
+ + + + +

Inflate the appropriate child layout for the last known container. +

+ +
+
+ + + + +
+

+ + public + + + + + WindowInsets + + onApplyWindowInsets + (WindowInsets insets) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + onMeasure + (int widthMeasureSpec, int heightMeasureSpec) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + setOnLayoutInflatedListener + (WatchViewStub.OnLayoutInflatedListener listener) +

+
+
+ + + +
+
+ + + + +

Set a listener to be notified when one of the specified sub-layouts is inflated into + this stub container. + +

If your app needs to perform a series of + findViewById lookups on the final inflated + layout this callback is a great time to do so.

+
+
Parameters
+ + + + +
listener + Listener to notify +
+
+ +
+
+ + + + +
+

+ + public + + + + + void + + setRectLayout + (int resId) +

+
+
+ + + +
+
+ + + + +

Set a layout resource to be inflated when this stub is within a rectangular container.

+
+
Parameters
+ + + + +
resId + Resource id of a child layout to inflate +
+
+ +
+
+ + + + +
+

+ + public + + + + + void + + setRoundLayout + (int resId) +

+
+
+ + + +
+
+ + + + +

Set a layout resource to be inflated when this stub is within a round container.

+
+
Parameters
+ + + + +
resId + Resource id of a child layout to inflate +
+
+ +
+
+ + + + + + + +

Protected Methods

+ + + + + +
+

+ + protected + + + + + void + + onAttachedToWindow + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + protected + + + + + void + + onLayout + (boolean changed, int left, int top, int right, int bottom) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/view/WearableListView.Adapter.html b/docs/html/reference/android/support/wearable/view/WearableListView.Adapter.html new file mode 100644 index 00000000000..eb02a4f3e5d --- /dev/null +++ b/docs/html/reference/android/support/wearable/view/WearableListView.Adapter.html @@ -0,0 +1,1606 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +WearableListView.Adapter | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ +
+ + + + + + + + + + + + + + + + + + + +
+ + + + +
+
+ + + + +
+ public + static + + abstract + class +

WearableListView.Adapter

+ + + + + + + + + extends Adapter<WearableListView.ViewHolder>
+ + + + + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
java.lang.Object
   ↳android.support.v7.widget.RecyclerView.Adapter<android.support.wearable.view.WearableListView.ViewHolder>
    ↳android.support.wearable.view.WearableListView.Adapter
+ + + + + + + +
+ + +

Class Overview

+

Base class for adapters providing data for the WearableListView. For details refer to + RecyclerView.Adapter. +

+ + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Constructors
+ + + + + + + + WearableListView.Adapter() + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Methods
+ +From class + + android.support.v7.widget.RecyclerView.Adapter + +
+ + +
+
+ +From class + + java.lang.Object + +
+ + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Constructors

+ + + + + +
+

+ + public + + + + + + + WearableListView.Adapter + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/view/WearableListView.ClickListener.html b/docs/html/reference/android/support/wearable/view/WearableListView.ClickListener.html new file mode 100644 index 00000000000..9349435f695 --- /dev/null +++ b/docs/html/reference/android/support/wearable/view/WearableListView.ClickListener.html @@ -0,0 +1,980 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +WearableListView.ClickListener | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ +
+ + + + + +
+ + + + +
+
+ + + + +
+ public + static + + + interface +

WearableListView.ClickListener

+ + + + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + +
android.support.wearable.view.WearableListView.ClickListener
+ + + + + + + +
+ + +

Class Overview

+

Interface for listening for click events on WearableListView. +

+ + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Methods
+ abstract + + + + + void + + onClick(WearableListView.ViewHolder view) + +
+ Called when the central child of the WearableListView is tapped. + + + +
+ +
+ abstract + + + + + void + + onTopEmptyRegionClick() + +
+ Called when the user taps the top third of the WearableListView and no item is present + there. + + + +
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Methods

+ + + + + +
+

+ + public + + + abstract + + void + + onClick + (WearableListView.ViewHolder view) +

+
+
+ + + +
+
+ + + + +

Called when the central child of the WearableListView is tapped.

+
+
Parameters
+ + + + +
view + View that was clicked. +
+
+ +
+
+ + + + +
+

+ + public + + + abstract + + void + + onTopEmptyRegionClick + () +

+
+
+ + + +
+
+ + + + +

Called when the user taps the top third of the WearableListView and no item is present + there. This can happen when you are in initial state and the first, top-most item of the + WearableListView is centered. +

+ +
+
+ + + + + + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/view/WearableListView.OnCenterProximityListener.html b/docs/html/reference/android/support/wearable/view/WearableListView.OnCenterProximityListener.html new file mode 100644 index 00000000000..2bac954457e --- /dev/null +++ b/docs/html/reference/android/support/wearable/view/WearableListView.OnCenterProximityListener.html @@ -0,0 +1,991 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +WearableListView.OnCenterProximityListener | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ +
+ + + + + +
+ + + + +
+
+ + + + +
+ public + static + + + interface +

WearableListView.OnCenterProximityListener

+ + + + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + +
android.support.wearable.view.WearableListView.OnCenterProximityListener
+ + + + + + + +
+ + +

Class Overview

+

Interface for receiving callbacks when WearableListView children become or cease to be the + central item. +

+ + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Methods
+ abstract + + + + + void + + onCenterPosition(boolean animate) + +
+ Called when this view becomes central item of the WearableListView. + + + +
+ +
+ abstract + + + + + void + + onNonCenterPosition(boolean animate) + +
+ Called when this view stops being the central item of the WearableListView. + + + +
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Methods

+ + + + + +
+

+ + public + + + abstract + + void + + onCenterPosition + (boolean animate) +

+
+
+ + + +
+
+ + + + +

Called when this view becomes central item of the WearableListView.

+
+
Parameters
+ + + + +
animate + Whether you should animate your transition of the View to become the + central item. If false, this is the initial setting and you should + transition immediately. +
+
+ +
+
+ + + + +
+

+ + public + + + abstract + + void + + onNonCenterPosition + (boolean animate) +

+
+
+ + + +
+
+ + + + +

Called when this view stops being the central item of the WearableListView.

+
+
Parameters
+ + + + +
animate + Whether you should animate your transition of the View to being + non central item. If false, this is the initial setting and you should + transition immediately. +
+
+ +
+
+ + + + + + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/view/WearableListView.OnScrollListener.html b/docs/html/reference/android/support/wearable/view/WearableListView.OnScrollListener.html new file mode 100644 index 00000000000..7449c42d108 --- /dev/null +++ b/docs/html/reference/android/support/wearable/view/WearableListView.OnScrollListener.html @@ -0,0 +1,1118 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +WearableListView.OnScrollListener | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ +
+ + + + + +
+ + + + +
+
+ + + + +
+ public + static + + + interface +

WearableListView.OnScrollListener

+ + + + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + +
android.support.wearable.view.WearableListView.OnScrollListener
+ + + + + + + +
+ + +

Class Overview

+

Interface for listening to WearableListView content scrolling. +

+ + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Methods
+ abstract + + + + + void + + onAbsoluteScrollChange(int scroll) + +
+ Called when the content is scrolled, reporting the absolute scroll value. + + + +
+ +
+ abstract + + + + + void + + onCentralPositionChanged(int centralPosition) + +
+ Called when the central item of the WearableListView changes. + + + +
+ +
+ abstract + + + + + void + + onScroll(int scroll) + +
+ Called when the content is scrolled, reporting the relative scroll value. + + + +
+ +
+ abstract + + + + + void + + onScrollStateChanged(int scrollState) + +
+ Called when WearableListView's scroll state changes. + + + +
+ +
+ + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Methods

+ + + + + +
+

+ + public + + + abstract + + void + + onAbsoluteScrollChange + (int scroll) +

+
+
+ + + +
+
+ + + + +

Called when the content is scrolled, reporting the absolute scroll value.

+
+
Parameters
+ + + + +
scroll + Absolute scroll position of the content inside the WearableListView. +
+
+ +
+
+ + + + +
+

+ + public + + + abstract + + void + + onCentralPositionChanged + (int centralPosition) +

+
+
+ + + +
+
+ + + + +

Called when the central item of the WearableListView changes.

+
+
Parameters
+ + + + +
centralPosition + Position of the item in the Adapter. +
+
+ +
+
+ + + + +
+

+ + public + + + abstract + + void + + onScroll + (int scroll) +

+
+
+ + + +
+
+ + + + +

Called when the content is scrolled, reporting the relative scroll value.

+
+
Parameters
+ + + + +
scroll + Amount the content was scrolled. This is a delta from the previous + position to the new position. +
+
+ +
+
+ + + + +
+

+ + public + + + abstract + + void + + onScrollStateChanged + (int scrollState) +

+
+
+ + + +
+
+ + + + +

Called when WearableListView's scroll state changes.

+
+
Parameters
+ + + + +
scrollState + The updated scroll state. One of SCROLL_STATE_IDLE, + SCROLL_STATE_DRAGGING or SCROLL_STATE_SETTLING. +
+
+ +
+
+ + + + + + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/view/WearableListView.ViewHolder.html b/docs/html/reference/android/support/wearable/view/WearableListView.ViewHolder.html new file mode 100644 index 00000000000..6fd9ba3e1a4 --- /dev/null +++ b/docs/html/reference/android/support/wearable/view/WearableListView.ViewHolder.html @@ -0,0 +1,1375 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +WearableListView.ViewHolder | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+
+ + + + +
+ public + static + + + class +

WearableListView.ViewHolder

+ + + + + + + + + extends RecyclerView.ViewHolder
+ + + + + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
java.lang.Object
   ↳android.support.v7.widget.RecyclerView.ViewHolder
    ↳android.support.wearable.view.WearableListView.ViewHolder
+ + + + + + + +
+ + +

Class Overview

+

Wrapper around items displayed in the list view. WearableListView.Adapter must return objects that + are instances of this class. Consider making the wrapped View implement + WearableListView.OnCenterProximityListener if you want to receive a callback when it becomes or + ceases to be the central item in the WearableListView. +

+ + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Fields
+ + From class +android.support.v7.widget.RecyclerView.ViewHolder +
+ + +
+
+ + + + + + + + + + + + + + + + +
Public Constructors
+ + + + + + + + WearableListView.ViewHolder(View itemView) + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Methods
+ +From class + + android.support.v7.widget.RecyclerView.ViewHolder + +
+ + +
+
+ +From class + + java.lang.Object + +
+ + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Constructors

+ + + + + +
+

+ + public + + + + + + + WearableListView.ViewHolder + (View itemView) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/view/WearableListView.html b/docs/html/reference/android/support/wearable/view/WearableListView.html new file mode 100644 index 00000000000..f7a6fbf8b1b --- /dev/null +++ b/docs/html/reference/android/support/wearable/view/WearableListView.html @@ -0,0 +1,16535 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +WearableListView | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+
+ + + + +
+ public + + + + class +

WearableListView

+ + + + + + + + + + + + + + + + + extends RecyclerView
+ + + + + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
java.lang.Object
   ↳android.view.View
    ↳android.view.ViewGroup
     ↳android.support.v7.widget.RecyclerView
      ↳android.support.wearable.view.WearableListView
+ + + + + + + +
+ + +

Class Overview

+

An alternative version of ListView that is optimized for ease of use on small screen wearable + devices. It displays a vertically scrollable list of items, and automatically snaps to the + nearest item when the user stops scrolling. + +

+ For a quick start, you will need to implement a subclass of WearableListView.Adapter, + which will create and bind your views to the WearableListView.ViewHolder objects. If you want to add + more visual treatment to your views when they become the central items of the + WearableListView, have them implement the WearableListView.OnCenterProximityListener interface. +

+

+ + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Nested Classes
+ + + + + classWearableListView.Adapter + Base class for adapters providing data for the WearableListView.  + + + +
+ + + + + interfaceWearableListView.ClickListener + Interface for listening for click events on WearableListView.  + + + +
+ + + + + interfaceWearableListView.OnCenterProximityListener + Interface for receiving callbacks when WearableListView children become or cease to be the + central item.  + + + +
+ + + + + interfaceWearableListView.OnScrollListener + Interface for listening to WearableListView content scrolling.  + + + +
+ + + + + classWearableListView.ViewHolder + Wrapper around items displayed in the list view.  + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Constants
+ + From class +android.support.v7.widget.RecyclerView +
+ + +
+
+ + From class +android.view.ViewGroup +
+ + +
+
+ + From class +android.view.View +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Fields
+ + From class +android.view.View +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Constructors
+ + + + + + + + WearableListView(Context context) + +
+ + + + + + + + WearableListView(Context context, AttributeSet attrs) + +
+ + + + + + + + WearableListView(Context context, AttributeSet attrs, int defStyleAttr) + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Methods
+ + + + + + void + + addOnScrollListener(WearableListView.OnScrollListener listener) + +
+ Adds a listener that will be called when the content of the list view is scrolled. + + + +
+ +
+ + + + + + void + + animateToCenter() + +
+ Automatically starts an animation that snaps the list to center on the element closest to the + middle. + + + +
+ +
+ + + + + + boolean + + fling(int velocityX, int velocityY) + +
+ + + + + + WearableListView.ViewHolder + + getChildViewHolder(View child) + +
+ + + + + + boolean + + onInterceptTouchEvent(MotionEvent event) + +
+ + + + + + boolean + + onTouchEvent(MotionEvent event) + +
+ + + + + + void + + removeOnScrollListener(WearableListView.OnScrollListener listener) + +
+ Removes listener for scroll events. + + + +
+ +
+ + + + + + void + + resetLayoutManager() + +
+ Clears the state of the layout manager that positions list items. + + + +
+ +
+ + + + + + void + + setAdapter(Adapter adapter) + +
+ + + + + + void + + setClickListener(WearableListView.ClickListener clickListener) + +
+ Adds a listener that will be called when the user taps on the WearableListView or its items. + + + +
+ +
+ + + + + + void + + setGreedyTouchMode(boolean greedy) + +
+ Controls whether WearableListView should intercept all touch events and also prevent the + parent from receiving them. + + + +
+ +
+ + + + + + void + + setInitialOffset(int top) + +
+ By default the first element of the list is initially positioned in the center of the screen. + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Methods
+ +From class + + android.support.v7.widget.RecyclerView + +
+ + +
+
+ +From class + + android.view.ViewGroup + +
+ + +
+
+ +From class + + android.view.View + +
+ + +
+
+ +From class + + java.lang.Object + +
+ + +
+
+ +From interface + + android.view.ViewParent + +
+ + +
+
+ +From interface + + android.view.ViewManager + +
+ + +
+
+ +From interface + + android.graphics.drawable.Drawable.Callback + +
+ + +
+
+ +From interface + + android.view.KeyEvent.Callback + +
+ + +
+
+ +From interface + + android.view.accessibility.AccessibilityEventSource + +
+ + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Constructors

+ + + + + +
+

+ + public + + + + + + + WearableListView + (Context context) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + + + WearableListView + (Context context, AttributeSet attrs) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + + + WearableListView + (Context context, AttributeSet attrs, int defStyleAttr) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + + + + + +

Public Methods

+ + + + + +
+

+ + public + + + + + void + + addOnScrollListener + (WearableListView.OnScrollListener listener) +

+
+
+ + + +
+
+ + + + +

Adds a listener that will be called when the content of the list view is scrolled. +

+ +
+
+ + + + +
+

+ + public + + + + + void + + animateToCenter + () +

+
+
+ + + +
+
+ + + + +

Automatically starts an animation that snaps the list to center on the element closest to the + middle. +

+ +
+
+ + + + +
+

+ + public + + + + + boolean + + fling + (int velocityX, int velocityY) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + WearableListView.ViewHolder + + getChildViewHolder + (View child) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + boolean + + onInterceptTouchEvent + (MotionEvent event) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + boolean + + onTouchEvent + (MotionEvent event) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + removeOnScrollListener + (WearableListView.OnScrollListener listener) +

+
+
+ + + +
+
+ + + + +

Removes listener for scroll events. +

+ +
+
+ + + + +
+

+ + public + + + + + void + + resetLayoutManager + () +

+
+
+ + + +
+
+ + + + +

Clears the state of the layout manager that positions list items. +

+ +
+
+ + + + +
+

+ + public + + + + + void + + setAdapter + (Adapter adapter) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + setClickListener + (WearableListView.ClickListener clickListener) +

+
+
+ + + +
+
+ + + + +

Adds a listener that will be called when the user taps on the WearableListView or its items. +

+ +
+
+ + + + +
+

+ + public + + + + + void + + setGreedyTouchMode + (boolean greedy) +

+
+
+ + + +
+
+ + + + +

Controls whether WearableListView should intercept all touch events and also prevent the + parent from receiving them.

+
+
Parameters
+ + + + +
greedy + If true it will intercept all touch events. +
+
+ +
+
+ + + + +
+

+ + public + + + + + void + + setInitialOffset + (int top) +

+
+
+ + + +
+
+ + + + +

By default the first element of the list is initially positioned in the center of the screen. + This method allows the developer to specify a different offset, e.g. to hide the + WearableListView before the user is allowed to use it.

+
+
Parameters
+ + + + +
top + How far the elements should be pushed down. +
+
+ +
+
+ + + + + + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/view/package-summary.html b/docs/html/reference/android/support/wearable/view/package-summary.html new file mode 100644 index 00000000000..713f46907c3 --- /dev/null +++ b/docs/html/reference/android/support/wearable/view/package-summary.html @@ -0,0 +1,1059 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +android.support.wearable.view | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ +
+
+ + + + +
+
+ +
+ package +

android.support.wearable.view

+
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + +

Interfaces

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DelayedConfirmationView.DelayedConfirmationListener + Implement this interface to receive callbacks when the timer is finished and when the user + taps the View to select it.  + + + +
GridPageOptions + An optional interface for a Fragment within a GridViewPager which provides additional + configurable options.  + + + +
GridPageOptions.BackgroundListener + Interface for communicating background changes to a listener.  + + + +
GridViewPager.OnAdapterChangeListener + Callback interface for responding to a replaced or removed adapter.  + + + +
GridViewPager.OnPageChangeListener + Callback interface for responding to changing state of the selected page.  + + + +
WatchViewStub.OnLayoutInflatedListener + Listener for detecting when internal layout inflation has completed.  + + + +
WearableListView.ClickListener + Interface for listening for click events on WearableListView.  + + + +
WearableListView.OnCenterProximityListener + Interface for receiving callbacks when WearableListView children become or cease to be the + central item.  + + + +
WearableListView.OnScrollListener + Interface for listening to WearableListView content scrolling.  + + + +
+ +
+ + + + +

Classes

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
BoxInsetLayout + BoxInsetLayout is a screen shape-aware FrameLayout that can box its children + in the center square of a round screen by using the + layout_box attribute.  + + + +
BoxInsetLayout.LayoutParams + adds layout_box attribute to layout parameters +  + + + +
CardFragment + Presents content within an expandable, vertically scrollable card.  + + + +
CardFrame + Wraps a view in a card-styled frame with a white background, rounded corners and a light + drop-shadow.  + + + +
CardScrollView + Designed to host a CardFrame and provides special support for scrolling with expansion in both + the upward and downward directions.  + + + +
CircledImageView + An image view surrounded by a circle.  + + + +
CrossfadeDrawable + Contains two child drawables and provides methods to directly adjust the blend between the two.  + + + +
DelayedConfirmationView + DelayedConfirmationView provides a circular countdown timer, typically used to + automatically confirm an operation after a short delay has elapsed.  + + + +
DismissOverlayView + A view for implementing long-press-to-dismiss in an app.  + + + +
DotsPageIndicator + A page indicator for GridViewPager which identifies the current page in relation to all + available pages on the current row.  + + + +
FragmentGridPagerAdapter + An implementation of GridPagerAdapter which represents each page as a Fragment.  + + + +
GridPagerAdapter + This component is responsible for providing views requested by a GridViewPager.  + + + +
GridViewPager + Layout manager that allows the user to navigate both vertically and horizontally through pages of + content.  + + + +
GridViewPager.LayoutParams + Layout parameters that should be supplied for views added to a ViewPager.  + + + +
SimpleAnimatorListener + Convenience class for listening for Animator events that implements the AnimatorListener + interface and allows extending only methods that are necessary.  + + + +
WatchViewStub + A WatchViewStub allows for the use of different sub-layouts depending on the + shape of the device screen as reported by + onApplyWindowInsets.  + + + +
WearableListView + An alternative version of ListView that is optimized for ease of use on small screen wearable + devices.  + + + +
WearableListView.Adapter + Base class for adapters providing data for the WearableListView.  + + + +
WearableListView.ViewHolder + Wrapper around items displayed in the list view.  + + + +
+ +
+ + + + + + + + + + + + + +
+
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/watchface/CanvasWatchFaceService.Engine.html b/docs/html/reference/android/support/wearable/watchface/CanvasWatchFaceService.Engine.html new file mode 100644 index 00000000000..36454ef87de --- /dev/null +++ b/docs/html/reference/android/support/wearable/watchface/CanvasWatchFaceService.Engine.html @@ -0,0 +1,2252 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +CanvasWatchFaceService.Engine | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+
+ + + + +
+ public + + + + class +

CanvasWatchFaceService.Engine

+ + + + + + + + + + + + + extends WatchFaceService.Engine
+ + + + + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
java.lang.Object
   ↳android.service.wallpaper.WallpaperService.Engine
    ↳android.support.wearable.watchface.WatchFaceService.Engine
     ↳android.support.wearable.watchface.CanvasWatchFaceService.Engine
+ + + + + + + +
+ + +

Class Overview

+

The actual implementation of a watch face that draws on a Canvas. You must implement + onCreateEngine() to return your concrete Engine + implementation. +

+ + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Constructors
+ + + + + + + + CanvasWatchFaceService.Engine() + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Methods
+ + + + + + void + + invalidate() + +
+ Schedules a call to onDraw(Canvas, Rect) to draw the next frame. + + + +
+ +
+ + + + + + void + + onDestroy() + +
+ + + + + + void + + onDraw(Canvas canvas, Rect bounds) + +
+ Draws the watch face. + + + +
+ +
+ + + + + + void + + onSurfaceChanged(SurfaceHolder holder, int format, int width, int height) + +
+ + + + + + void + + onSurfaceCreated(SurfaceHolder holder) + +
+ + + + + + void + + onSurfaceRedrawNeeded(SurfaceHolder holder) + +
+ + + + + + void + + postInvalidate() + +
+ Posts a message to schedule a call to onDraw(Canvas, Rect) to draw the next frame. + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Methods
+ +From class + + android.support.wearable.watchface.WatchFaceService.Engine + +
+ + +
+
+ +From class + + android.service.wallpaper.WallpaperService.Engine + +
+ + +
+
+ +From class + + java.lang.Object + +
+ + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Constructors

+ + + + + +
+

+ + public + + + + + + + CanvasWatchFaceService.Engine + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + + + + + +

Public Methods

+ + + + + +
+

+ + public + + + + + void + + invalidate + () +

+
+
+ + + +
+
+ + + + +

Schedules a call to onDraw(Canvas, Rect) to draw the next frame. Must be called on the main + thread. +

+ +
+
+ + + + +
+

+ + public + + + + + void + + onDestroy + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + onDraw + (Canvas canvas, Rect bounds) +

+
+
+ + + +
+
+ + + + +

Draws the watch face.

+
+
Parameters
+ + + + + + + +
canvas + the canvas to draw into
bounds + the bounds in which the watch face should be drawn +
+
+ +
+
+ + + + +
+

+ + public + + + + + void + + onSurfaceChanged + (SurfaceHolder holder, int format, int width, int height) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + onSurfaceCreated + (SurfaceHolder holder) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + onSurfaceRedrawNeeded + (SurfaceHolder holder) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + postInvalidate + () +

+
+
+ + + +
+
+ + + + +

Posts a message to schedule a call to onDraw(Canvas, Rect) to draw the next frame. Unlike + invalidate(), this method is thread-safe and may be called on any thread. +

+ +
+
+ + + + + + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/watchface/CanvasWatchFaceService.html b/docs/html/reference/android/support/wearable/watchface/CanvasWatchFaceService.html new file mode 100644 index 00000000000..a61d00bc520 --- /dev/null +++ b/docs/html/reference/android/support/wearable/watchface/CanvasWatchFaceService.html @@ -0,0 +1,6369 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +CanvasWatchFaceService | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+
+ + + + +
+ public + + + abstract + class +

CanvasWatchFaceService

+ + + + + + + + + + + + + + + + + + + + + + + + + extends WatchFaceService
+ + + + + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
java.lang.Object
   ↳android.content.Context
    ↳android.content.ContextWrapper
     ↳android.app.Service
      ↳android.service.wallpaper.WallpaperService
       ↳android.support.wearable.watchface.WatchFaceService
        ↳android.support.wearable.watchface.CanvasWatchFaceService
+ + + + + + + +
+ + +

Class Overview

+

Base class for watch faces that draw on a Canvas. Provides an invalidate mechanism + similar to invalidate(). +

+ + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Nested Classes
+ + + + + classCanvasWatchFaceService.Engine + The actual implementation of a watch face that draws on a Canvas.  + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Constants
+ + From class +android.support.wearable.watchface.WatchFaceService +
+ + +
+
+ + From class +android.service.wallpaper.WallpaperService +
+ + +
+
+ + From class +android.app.Service +
+ + +
+
+ + From class +android.content.Context +
+ + +
+
+ + From interface +android.content.ComponentCallbacks2 +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + +
Public Constructors
+ + + + + + + + CanvasWatchFaceService() + +
+ + + + + + + + + + + + + + + + + + +
Public Methods
+ + + + + + CanvasWatchFaceService.Engine + + onCreateEngine() + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Methods
+ +From class + + android.support.wearable.watchface.WatchFaceService + +
+ + +
+
+ +From class + + android.service.wallpaper.WallpaperService + +
+ + +
+
+ +From class + + android.app.Service + +
+ + +
+
+ +From class + + android.content.ContextWrapper + +
+ + +
+
+ +From class + + android.content.Context + +
+ + +
+
+ +From class + + java.lang.Object + +
+ + +
+
+ +From interface + + android.content.ComponentCallbacks2 + +
+ + +
+
+ +From interface + + android.content.ComponentCallbacks + +
+ + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Constructors

+ + + + + +
+

+ + public + + + + + + + CanvasWatchFaceService + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + + + + + +

Public Methods

+ + + + + +
+

+ + public + + + + + CanvasWatchFaceService.Engine + + onCreateEngine + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/watchface/Gles2WatchFaceService.Engine.html b/docs/html/reference/android/support/wearable/watchface/Gles2WatchFaceService.Engine.html new file mode 100644 index 00000000000..1073fef9554 --- /dev/null +++ b/docs/html/reference/android/support/wearable/watchface/Gles2WatchFaceService.Engine.html @@ -0,0 +1,2460 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +Gles2WatchFaceService.Engine | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+
+ + + + +
+ public + + + + class +

Gles2WatchFaceService.Engine

+ + + + + + + + + + + + + extends WatchFaceService.Engine
+ + + + + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
java.lang.Object
   ↳android.service.wallpaper.WallpaperService.Engine
    ↳android.support.wearable.watchface.WatchFaceService.Engine
     ↳android.support.wearable.watchface.Gles2WatchFaceService.Engine
+ + + + + + + +
+ + +

Class Overview

+

The actual implementation of a watch face that draws using OpenGL ES 2.0. You must implement + onCreateEngine() to return your concrete Engine + implementation. +

+ + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Constructors
+ + + + + + + + Gles2WatchFaceService.Engine() + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Methods
+ + + final + + + void + + invalidate() + +
+ Schedules a call to onDraw() to draw the next frame. + + + +
+ +
+ + + + + + void + + onApplyWindowInsets(WindowInsets insets) + +
+ + + + + + void + + onCreate(SurfaceHolder surfaceHolder) + +
+ + + + + + void + + onDestroy() + +
+ + + + + + void + + onDraw() + +
+ Draws the watch face. + + + +
+ +
+ + + + + + void + + onGlContextCreated() + +
+ Called when a new GL context is created. + + + +
+ +
+ + + + + + void + + onGlSurfaceCreated(int width, int height) + +
+ Called when a new GL surface is created. + + + +
+ +
+ + + final + + + void + + onSurfaceChanged(SurfaceHolder holder, int format, int width, int height) + +
+ + + final + + + void + + onSurfaceDestroyed(SurfaceHolder holder) + +
+ + + final + + + void + + onSurfaceRedrawNeeded(SurfaceHolder holder) + +
+ + + final + + + void + + postInvalidate() + +
+ Posts a message to schedule a call to onDraw() to draw the next frame. + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Methods
+ +From class + + android.support.wearable.watchface.WatchFaceService.Engine + +
+ + +
+
+ +From class + + android.service.wallpaper.WallpaperService.Engine + +
+ + +
+
+ +From class + + java.lang.Object + +
+ + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Constructors

+ + + + + +
+

+ + public + + + + + + + Gles2WatchFaceService.Engine + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + + + + + +

Public Methods

+ + + + + +
+

+ + public + + final + + + void + + invalidate + () +

+
+
+ + + +
+
+ + + + +

Schedules a call to onDraw() to draw the next frame. Must be called on the main + thread. +

+ +
+
+ + + + +
+

+ + public + + + + + void + + onApplyWindowInsets + (WindowInsets insets) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + onCreate + (SurfaceHolder surfaceHolder) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + onDestroy + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + onDraw + () +

+
+
+ + + +
+
+ + + + +

Draws the watch face. It's safe to use GL APIs in this method. +

+ +
+
+ + + + +
+

+ + public + + + + + void + + onGlContextCreated + () +

+
+
+ + + +
+
+ + + + +

Called when a new GL context is created. It's safe to use GL APIs in this method. +

+ +
+
+ + + + +
+

+ + public + + + + + void + + onGlSurfaceCreated + (int width, int height) +

+
+
+ + + +
+
+ + + + +

Called when a new GL surface is created. It's safe to use GL APIs in this method.

+
+
Parameters
+ + + + + + + +
width + width of surface in pixels
height + height of surface in pixels +
+
+ +
+
+ + + + +
+

+ + public + + final + + + void + + onSurfaceChanged + (SurfaceHolder holder, int format, int width, int height) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + final + + + void + + onSurfaceDestroyed + (SurfaceHolder holder) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + final + + + void + + onSurfaceRedrawNeeded + (SurfaceHolder holder) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + final + + + void + + postInvalidate + () +

+
+
+ + + +
+
+ + + + +

Posts a message to schedule a call to onDraw() to draw the next frame. Unlike + invalidate(), this method is thread-safe and may be called on any thread. +

+ +
+
+ + + + + + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/watchface/Gles2WatchFaceService.html b/docs/html/reference/android/support/wearable/watchface/Gles2WatchFaceService.html new file mode 100644 index 00000000000..96ddfffd164 --- /dev/null +++ b/docs/html/reference/android/support/wearable/watchface/Gles2WatchFaceService.html @@ -0,0 +1,6372 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +Gles2WatchFaceService | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+
+ + + + +
+ public + + + abstract + class +

Gles2WatchFaceService

+ + + + + + + + + + + + + + + + + + + + + + + + + extends WatchFaceService
+ + + + + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
java.lang.Object
   ↳android.content.Context
    ↳android.content.ContextWrapper
     ↳android.app.Service
      ↳android.service.wallpaper.WallpaperService
       ↳android.support.wearable.watchface.WatchFaceService
        ↳android.support.wearable.watchface.Gles2WatchFaceService
+ + + + + + + +
+ + +

Class Overview

+

Base class for watch faces that draw using OpenGL ES 2.0. Provides an invalidate mechanism + similar to invalidate(). Sets the viewport to cover the entire screen + area, including insets. + +

Note: It's only safe to call GL APIs in methods documented as such. +

+ + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Nested Classes
+ + + + + classGles2WatchFaceService.Engine + The actual implementation of a watch face that draws using OpenGL ES 2.0.  + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Constants
+ + From class +android.support.wearable.watchface.WatchFaceService +
+ + +
+
+ + From class +android.service.wallpaper.WallpaperService +
+ + +
+
+ + From class +android.app.Service +
+ + +
+
+ + From class +android.content.Context +
+ + +
+
+ + From interface +android.content.ComponentCallbacks2 +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + +
Public Constructors
+ + + + + + + + Gles2WatchFaceService() + +
+ + + + + + + + + + + + + + + + + + +
Public Methods
+ + + + + + Gles2WatchFaceService.Engine + + onCreateEngine() + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Methods
+ +From class + + android.support.wearable.watchface.WatchFaceService + +
+ + +
+
+ +From class + + android.service.wallpaper.WallpaperService + +
+ + +
+
+ +From class + + android.app.Service + +
+ + +
+
+ +From class + + android.content.ContextWrapper + +
+ + +
+
+ +From class + + android.content.Context + +
+ + +
+
+ +From class + + java.lang.Object + +
+ + +
+
+ +From interface + + android.content.ComponentCallbacks2 + +
+ + +
+
+ +From interface + + android.content.ComponentCallbacks + +
+ + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Constructors

+ + + + + +
+

+ + public + + + + + + + Gles2WatchFaceService + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + + + + + +

Public Methods

+ + + + + +
+

+ + public + + + + + Gles2WatchFaceService.Engine + + onCreateEngine + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/watchface/WatchFaceService.Engine.html b/docs/html/reference/android/support/wearable/watchface/WatchFaceService.Engine.html new file mode 100644 index 00000000000..57ec6828e06 --- /dev/null +++ b/docs/html/reference/android/support/wearable/watchface/WatchFaceService.Engine.html @@ -0,0 +1,2384 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +WatchFaceService.Engine | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ +
+ + + + + + + + + + + + + + + + + + + +
+ + + + +
+
+ + + + +
+ public + + + abstract + class +

WatchFaceService.Engine

+ + + + + + + + + extends WallpaperService.Engine
+ + + + + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
java.lang.Object
   ↳android.service.wallpaper.WallpaperService.Engine
    ↳android.support.wearable.watchface.WatchFaceService.Engine
+ + + + +
+ + Known Direct Subclasses + +
+ + +
+
+ + + + +
+ + +

Class Overview

+

The actual implementation of a watch face. You must implement + onCreateEngine() to return your concrete Engine implementation. +

+ + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Constructors
+ + + + + + + + WatchFaceService.Engine() + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Methods
+ + + final + + + int + + getInterruptionFilter() + +
+ Returns interruption filter selected by the user. + + + +
+ +
+ + + final + + + Rect + + getPeekCardPosition() + +
+ Returns the location of the first peeking card. + + + +
+ +
+ + + final + + + int + + getUnreadCount() + +
+ Returns the number of unread notification cards in the stream. + + + +
+ +
+ + + final + + + boolean + + isInAmbientMode() + +
+ Returns whether the watch face is in ambient mode. + + + +
+ +
+ + + + + + void + + onAmbientModeChanged(boolean inAmbientMode) + +
+ Called when the device enters or exits ambient mode. + + + +
+ +
+ + + + + + Bundle + + onCommand(String action, int x, int y, int z, Bundle extras, boolean resultRequested) + +
+ + + + + + void + + onCreate(SurfaceHolder holder) + +
+ + + + + + void + + onInterruptionFilterChanged(int interruptionFilter) + +
+ Called when the user changes interruption filter. + + + +
+ +
+ + + + + + void + + onPeekCardPositionUpdate(Rect rect) + +
+ Called when the first, peeking card positions itself on the screen. + + + +
+ +
+ + + + + + void + + onPropertiesChanged(Bundle properties) + +
+ Called when the properties of the device are determined. + + + +
+ +
+ + + + + + void + + onTimeTick() + +
+ Called periodically in ambient mode to update the time shown by the watch face. + + + +
+ +
+ + + + + + void + + onUnreadCountChanged(int count) + +
+ Called when the number of unread notification cards in the stream has changed. + + + +
+ +
+ + + + + + void + + onVisibilityChanged(boolean visible) + +
+ Called to inform you of the watch face becoming visible or hidden. + + + +
+ +
+ + + + + + void + + setWatchFaceStyle(WatchFaceStyle watchFaceStyle) + +
+ Sets the watch face style. + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Methods
+ +From class + + android.service.wallpaper.WallpaperService.Engine + +
+ + +
+
+ +From class + + java.lang.Object + +
+ + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Constructors

+ + + + + +
+

+ + public + + + + + + + WatchFaceService.Engine + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + + + + + +

Public Methods

+ + + + + +
+

+ + public + + final + + + int + + getInterruptionFilter + () +

+
+
+ + + +
+
+ + + + +

Returns interruption filter selected by the user.

+ + +
+
+ + + + +
+

+ + public + + final + + + Rect + + getPeekCardPosition + () +

+
+
+ + + +
+
+ + + + +

Returns the location of the first peeking card. This doesn't provide information about + all movements of the card, only about its location when it's peeking at the bottom and + allowing the watch face to be exposed. +

+ +
+
+ + + + +
+

+ + public + + final + + + int + + getUnreadCount + () +

+
+
+ + + +
+
+ + + + +

Returns the number of unread notification cards in the stream. +

+ +
+
+ + + + +
+

+ + public + + final + + + boolean + + isInAmbientMode + () +

+
+
+ + + +
+
+ + + + +

Returns whether the watch face is in ambient mode. When true, the watch face should + display in white on black. +

+ +
+
+ + + + +
+

+ + public + + + + + void + + onAmbientModeChanged + (boolean inAmbientMode) +

+
+
+ + + +
+
+ + + + +

Called when the device enters or exits ambient mode. The watch face should switch to a + black and white display in ambient mode. If the watch face displays seconds, it should + hide them in ambient mode. +

+ +
+
+ + + + +
+

+ + public + + + + + Bundle + + onCommand + (String action, int x, int y, int z, Bundle extras, boolean resultRequested) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + onCreate + (SurfaceHolder holder) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + onInterruptionFilterChanged + (int interruptionFilter) +

+
+
+ + + +
+
+ + + + +

Called when the user changes interruption filter. The watch face should adjust the + amount of information it displays. For example, if it displays the + number of pending emails, it should hide it if interruptionFilter is equal to INTERRUPTION_FILTER_NONE. interruptionFilter can be + INTERRUPTION_FILTER_NONE, INTERRUPTION_FILTER_PRIORITY or + INTERRUPTION_FILTER_ALL. +

+ +
+
+ + + + +
+

+ + public + + + + + void + + onPeekCardPositionUpdate + (Rect rect) +

+
+
+ + + +
+
+ + + + +

Called when the first, peeking card positions itself on the screen. This is where the + watch face can change its appearance depending on where the card is on the screen. This + doesn't provide information about all movements of the card, only about its location when + it's peeking at the bottom and allowing the watch face to be exposed. +

+ +
+
+ + + + +
+

+ + public + + + + + void + + onPropertiesChanged + (Bundle properties) +

+
+
+ + + +
+
+ + + + +

Called when the properties of the device are determined. These include + PROPERTY_BURN_IN_PROTECTION and PROPERTY_LOW_BIT_AMBIENT.

+
+
Parameters
+ + + + +
properties + a bundle containing the hardware properties +
+
+ +
+
+ + + + +
+

+ + public + + + + + void + + onTimeTick + () +

+
+
+ + + +
+
+ + + + +

Called periodically in ambient mode to update the time shown by the watch face. This + method is called at least once per minute. +

+ +
+
+ + + + +
+

+ + public + + + + + void + + onUnreadCountChanged + (int count) +

+
+
+ + + +
+
+ + + + +

Called when the number of unread notification cards in the stream has changed.

+
+
Parameters
+ + + + +
count + number of the notification cards in the stream that haven't yet been seen by + the user +
+
+ +
+
+ + + + +
+

+ + public + + + + + void + + onVisibilityChanged + (boolean visible) +

+
+
+ + + +
+
+ + + + +

Called to inform you of the watch face becoming visible or hidden. If you decide to + override this method, you must call super.onVisibilityChanged(visible) + as the first statement in your override. +

+ +
+
+ + + + +
+

+ + public + + + + + void + + setWatchFaceStyle + (WatchFaceStyle watchFaceStyle) +

+
+
+ + + +
+
+ + + + +

Sets the watch face style. This affects how UI elements such as the battery indicator are + drawn on top of the watch face. Typically called in onCreate(SurfaceHolder) but may be called + at any time, e.g. in response to the user changing the watch face configuration. Must be + called from the wallpaper thread. +

+ +
+
+ + + + + + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/watchface/WatchFaceService.html b/docs/html/reference/android/support/wearable/watchface/WatchFaceService.html new file mode 100644 index 00000000000..d2ee42a7bfa --- /dev/null +++ b/docs/html/reference/android/support/wearable/watchface/WatchFaceService.html @@ -0,0 +1,6615 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +WatchFaceService | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+
+ + + + +
+ public + + + abstract + class +

WatchFaceService

+ + + + + + + + + + + + + + + + + + + + + extends WallpaperService
+ + + + + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
java.lang.Object
   ↳android.content.Context
    ↳android.content.ContextWrapper
     ↳android.app.Service
      ↳android.service.wallpaper.WallpaperService
       ↳android.support.wearable.watchface.WatchFaceService
+ + + + +
+ + Known Direct Subclasses + +
+ + +
+
+ + + + +
+ + +

Class Overview

+

A subclass of WallpaperService with a WallpaperService.Engine that exposes + callbacks for the lifecycle of a watch face. If you want to create a watch face for a wearable, + you should use this instead of vanilla WallpaperService. + +

A watch face service, similarly to a wallpaper service, must implement only one method: + onCreateEngine(). However, it must also create a subclass of inner class + WatchFaceService.Engine. Most watch face engines will implement the following + methods:

+ +

Most watch face engines will also implement onInterruptionFilterChanged(int) to + update the view depending on how much information the user has requested. + +

For updates that occur in ambient mode a wake lock will be held so the device doesn't go to + sleep until the watch face finishes drawing. + +

Registering watch faces in your application works similarly to registering wallpapers with + several additional steps. First, watch faces require two permissions: + +

+ <uses-permission android:name="com.google.android.permission.PROVIDE_BACKGROUND" />
+ <uses-permission android:name="android.permission.WAKE_LOCK" />
+ 
+ +

Second, your watch face service declaration needs preview metadata: + +

+ <meta-data
+     android:name="com.google.android.wearable.watchface.preview"
+     android:resource="@drawable/preview_face" />
+ <meta-data
+     android:name="com.google.android.wearable.watchface.preview_circular"
+     android:resource="@drawable/preview_face_circular" />
+ 
+ +

Finally, you need to add a special intent filter, so your watch face can be detected: + +

+ <intent-filter>
+     <action android:name="android.service.wallpaper.WallpaperService" />
+     <category
+         android:name="com.google.android.wearable.watchface.category.WATCH_FACE" />
+ </intent-filter>
+ 
+ +

For more information consult: + + https://developer.android.com/training/wearables/watch-faces/index.html +

+ + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Nested Classes
+ + + + + classWatchFaceService.Engine + The actual implementation of a watch face.  + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Constants
intINTERRUPTION_FILTER_ALL + Returned by getInterruptionFilter() and passed to + onInterruptionFilterChanged(int). + + + +
intINTERRUPTION_FILTER_NONE + Returned by getInterruptionFilter() and passed to + onInterruptionFilterChanged(int). + + + +
intINTERRUPTION_FILTER_PRIORITY + Returned by getInterruptionFilter() and passed to + onInterruptionFilterChanged(int). + + + +
StringPROPERTY_BURN_IN_PROTECTION + Property in bundle passed to onPropertiesChanged(Bundle) to indicate whether burn-in + protection is required. + + + +
StringPROPERTY_LOW_BIT_AMBIENT + Property in bundle passed to onPropertiesChanged(Bundle) to indicate whether the device + has low-bit ambient mode. + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Constants
+ + From class +android.service.wallpaper.WallpaperService +
+ + +
+
+ + From class +android.app.Service +
+ + +
+
+ + From class +android.content.Context +
+ + +
+
+ + From interface +android.content.ComponentCallbacks2 +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + +
Public Constructors
+ + + + + + + + WatchFaceService() + +
+ + + + + + + + + + + + + + + + + + +
Public Methods
+ abstract + + + + + WatchFaceService.Engine + + onCreateEngine() + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Methods
+ +From class + + android.service.wallpaper.WallpaperService + +
+ + +
+
+ +From class + + android.app.Service + +
+ + +
+
+ +From class + + android.content.ContextWrapper + +
+ + +
+
+ +From class + + android.content.Context + +
+ + +
+
+ +From class + + java.lang.Object + +
+ + +
+
+ +From interface + + android.content.ComponentCallbacks2 + +
+ + +
+
+ +From interface + + android.content.ComponentCallbacks + +
+ + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + +

Constants

+ + + + + + +
+

+ + public + static + final + int + + INTERRUPTION_FILTER_ALL +

+
+ + + + +
+
+ + + + +

Returned by getInterruptionFilter() and passed to + onInterruptionFilterChanged(int). This value means that the user requested to see + all notifications. +

+ + +
+ Constant Value: + + + 1 + (0x00000001) + + +
+ +
+
+ + + + + +
+

+ + public + static + final + int + + INTERRUPTION_FILTER_NONE +

+
+ + + + +
+
+ + + + +

Returned by getInterruptionFilter() and passed to + onInterruptionFilterChanged(int). This value means that the user requested not to + see any notifications. +

+ + +
+ Constant Value: + + + 3 + (0x00000003) + + +
+ +
+
+ + + + + +
+

+ + public + static + final + int + + INTERRUPTION_FILTER_PRIORITY +

+
+ + + + +
+
+ + + + +

Returned by getInterruptionFilter() and passed to + onInterruptionFilterChanged(int). This value means that the user requested to see + only high priority notifications. +

+ + +
+ Constant Value: + + + 2 + (0x00000002) + + +
+ +
+
+ + + + + +
+

+ + public + static + final + String + + PROPERTY_BURN_IN_PROTECTION +

+
+ + + + +
+
+ + + + +

Property in bundle passed to onPropertiesChanged(Bundle) to indicate whether burn-in + protection is required. When this property is set to true, views are shifted around + periodically in ambient mode. To ensure that content isn't shifted off the screen, watch + faces should avoid placing content within 10 pixels of the edge of the screen. Watch faces + should also avoid solid white areas to prevent pixel burn-in. Both of these requirements only + apply in ambient mode, and only when this property is set to true. +

+ + +
+ Constant Value: + + + "burn_in_protection" + + +
+ +
+
+ + + + + +
+

+ + public + static + final + String + + PROPERTY_LOW_BIT_AMBIENT +

+
+ + + + +
+
+ + + + +

Property in bundle passed to onPropertiesChanged(Bundle) to indicate whether the device + has low-bit ambient mode. When this property is set to true, the screen supports fewer bits + for each color in ambient mode. In this case, watch faces should disable anti-aliasing in + ambient mode. +

+ + +
+ Constant Value: + + + "low_bit_ambient" + + +
+ +
+
+ + + + + + + + + + + +

Public Constructors

+ + + + + +
+

+ + public + + + + + + + WatchFaceService + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + + + + + +

Public Methods

+ + + + + +
+

+ + public + + + abstract + + WatchFaceService.Engine + + onCreateEngine + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html b/docs/html/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html new file mode 100644 index 00000000000..71c3639716a --- /dev/null +++ b/docs/html/reference/android/support/wearable/watchface/WatchFaceStyle.Builder.html @@ -0,0 +1,1816 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +WatchFaceStyle.Builder | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ +
+ + + + + + + + + + + + +
+ + + + +
+
+ + + + +
+ public + static + + + class +

WatchFaceStyle.Builder

+ + + + + extends Object
+ + + + + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + + + + + + + + +
java.lang.Object
   ↳android.support.wearable.watchface.WatchFaceStyle.Builder
+ + + + + + + +
+ + +

Class Overview

+

Builder for WatchFaceStyle objects. +

+ + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Constructors
+ + + + + + + + WatchFaceStyle.Builder(Service service) + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Methods
+ + + + + + WatchFaceStyle + + build() + +
+ Constructs read only WatchFaceStyle object. + + + +
+ +
+ + + + + + WatchFaceStyle.Builder + + setAmbientPeekMode(int ambientPeekMode) + +
+ Sets how the first, peeking card will be displayed while the watch is in ambient, + black & white mode. + + + +
+ +
+ + + + + + WatchFaceStyle.Builder + + setBackgroundVisibility(int backgroundVisibility) + +
+ Set how to display background of the first, peeking card. + + + +
+ +
+ + + + + + WatchFaceStyle.Builder + + setCardPeekMode(int peekMode) + +
+ Sets how far into the screen the first card will peek while the watch face is displayed. + + + +
+ +
+ + + + + + WatchFaceStyle.Builder + + setHotwordIndicatorGravity(int hotwordIndicatorGravity) + +
+ Sets position of hotword (OK Google) on the screen. + + + +
+ +
+ + + + + + WatchFaceStyle.Builder + + setPeekOpacityMode(int peekOpacityMode) + +
+ Sets whether the first, peeking card should be opaque when the watch face is displayed. + + + +
+ +
+ + + + + + WatchFaceStyle.Builder + + setShowSystemUiTime(boolean showSystemUiTime) + +
+ Sets if the system will draw the system-style time over the watch face. + + + +
+ +
+ + + + + + WatchFaceStyle.Builder + + setShowUnreadCountIndicator(boolean show) + +
+ Sets whether to add an indicator of how many unread cards there are in the stream. + + + +
+ +
+ + + + + + WatchFaceStyle.Builder + + setStatusBarGravity(int statusBarGravity) + +
+ Sets position of status icons (battery state, lack of connection) on the screen. + + + +
+ +
+ + + + + + WatchFaceStyle.Builder + + setViewProtection(int viewProtection) + +
+ Adds background color to UI elements of the home screen, so they are readable on + the watch face. + + + +
+ +
+ + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Methods
+ +From class + + java.lang.Object + +
+ + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +

Public Constructors

+ + + + + +
+

+ + public + + + + + + + WatchFaceStyle.Builder + (Service service) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + + + + + +

Public Methods

+ + + + + +
+

+ + public + + + + + WatchFaceStyle + + build + () +

+
+
+ + + +
+
+ + + + +

Constructs read only WatchFaceStyle object. +

+ +
+
+ + + + +
+

+ + public + + + + + WatchFaceStyle.Builder + + setAmbientPeekMode + (int ambientPeekMode) +

+
+
+ + + +
+
+ + + + +

Sets how the first, peeking card will be displayed while the watch is in ambient, + black & white mode.

+
+
Parameters
+ + + + +
ambientPeekMode + must be either AMBIENT_PEEK_MODE_VISIBLE or + AMBIENT_PEEK_MODE_HIDDEN +
+
+ +
+
+ + + + +
+

+ + public + + + + + WatchFaceStyle.Builder + + setBackgroundVisibility + (int backgroundVisibility) +

+
+
+ + + +
+
+ + + + +

Set how to display background of the first, peeking card.

+
+
Parameters
+ + + + +
backgroundVisibility + must be either BACKGROUND_VISIBILITY_INTERRUPTIVE or + BACKGROUND_VISIBILITY_PERSISTENT +
+
+ +
+
+ + + + +
+

+ + public + + + + + WatchFaceStyle.Builder + + setCardPeekMode + (int peekMode) +

+
+
+ + + +
+
+ + + + +

Sets how far into the screen the first card will peek while the watch face is displayed.

+
+
Parameters
+ + + + +
peekMode + must be either PEEK_MODE_VARIABLE or PEEK_MODE_SHORT +
+
+ +
+
+ + + + +
+

+ + public + + + + + WatchFaceStyle.Builder + + setHotwordIndicatorGravity + (int hotwordIndicatorGravity) +

+
+
+ + + +
+
+ + + + +

Sets position of hotword (OK Google) on the screen.

+
+
Parameters
+ + + + +
hotwordIndicatorGravity + This must be any combination of horizontal Gravity + constant (LEFT, + CENTER_HORIZONTAL, RIGHT) + and vertical Gravity constants (TOP, + CENTER_VERTICAL, BOTTOM), + e.g. Gravity.LEFT | Gravity.BOTTOM. On circular + screens, only the vertical gravity is respected. +
+
+ +
+
+ + + + +
+

+ + public + + + + + WatchFaceStyle.Builder + + setPeekOpacityMode + (int peekOpacityMode) +

+
+
+ + + +
+
+ + + + +

Sets whether the first, peeking card should be opaque when the watch face is displayed.

+
+
Parameters
+ + + + +
peekOpacityMode + must be either PEEK_OPACITY_MODE_OPAQUE or + PEEK_OPACITY_MODE_TRANSLUCENT +
+
+ +
+
+ + + + +
+

+ + public + + + + + WatchFaceStyle.Builder + + setShowSystemUiTime + (boolean showSystemUiTime) +

+
+
+ + + +
+
+ + + + +

Sets if the system will draw the system-style time over the watch face.

+
+
Parameters
+ + + + +
showSystemUiTime + Set this to false if you already draw or clearly represent the + time on your watch face. +
+
+ +
+
+ + + + +
+

+ + public + + + + + WatchFaceStyle.Builder + + setShowUnreadCountIndicator + (boolean show) +

+
+
+ + + +
+
+ + + + +

Sets whether to add an indicator of how many unread cards there are in the stream. + The indicator will be displayed next to status icons (battery state, lack of connection).

+
+
Parameters
+ + + + +
show + if true an indicator will be shown +
+
+ +
+
+ + + + +
+

+ + public + + + + + WatchFaceStyle.Builder + + setStatusBarGravity + (int statusBarGravity) +

+
+
+ + + +
+
+ + + + +

Sets position of status icons (battery state, lack of connection) on the screen.

+
+
Parameters
+ + + + +
statusBarGravity + This must be any combination of horizontal Gravity constant + (LEFT, CENTER_HORIZONTAL, + RIGHT) and vertical Gravity constants + (TOP, CENTER_VERTICAL, + BOTTOM), e.g. Gravity.LEFT | + Gravity.BOTTOM. On circular screens, only the vertical gravity + is respected. +
+
+ +
+
+ + + + +
+

+ + public + + + + + WatchFaceStyle.Builder + + setViewProtection + (int viewProtection) +

+
+
+ + + +
+
+ + + + +

Adds background color to UI elements of the home screen, so they are readable on + the watch face. This should be used if the watch face color is close to being white.

+
+
Parameters
+ + + + +
viewProtection + must be any combination of PROTECT_STATUS_BAR, + PROTECT_HOTWORD_INDICATOR and + PROTECT_WHOLE_SCREEN, e.g. PROTECT_STATUS_BAR | + PROTECT_HOTWORD_INDICATOR +
+
+ +
+
+ + + + + + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/watchface/WatchFaceStyle.html b/docs/html/reference/android/support/wearable/watchface/WatchFaceStyle.html new file mode 100644 index 00000000000..19135d4af97 --- /dev/null +++ b/docs/html/reference/android/support/wearable/watchface/WatchFaceStyle.html @@ -0,0 +1,2773 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +WatchFaceStyle | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + +
+
+ + + + +
+ public + + + + class +

WatchFaceStyle

+ + + + + extends Object
+ + + + + + + implements + + Parcelable + + + + + + + + +
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + + + + + + + + +
java.lang.Object
   ↳android.support.wearable.watchface.WatchFaceStyle
+ + + + + + + +
+ + +

Class Overview

+

A style descriptor for watch faces. + + Parameters here affect how IWatchFaceService will draw the system UI over a watch face. + An instance of this class should be passed in to setStyle(WatchFaceStyle) in the + onCreate method of your watch face activity. + + To construct a WatchFaceStyle use WatchFaceStyle.Builder. +

+ + + + + +
+ + + + + + + + + + + + + + + + +
+ + +

Summary

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Nested Classes
+ + + + + classWatchFaceStyle.Builder + Builder for WatchFaceStyle objects.  + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Constants
intAMBIENT_PEEK_MODE_HIDDEN + When this ambient mode is selected, the peek card will be hidden in ambient. + + + +
intAMBIENT_PEEK_MODE_VISIBLE + When this ambient mode is selected, the peek card will be shown in ambient. + + + +
intBACKGROUND_VISIBILITY_INTERRUPTIVE + When this background visibility is selected, the background of the peek card should only be + shown briefly, and only if the peek card represents an interruptive notification. + + + +
intBACKGROUND_VISIBILITY_PERSISTENT + When this background visibility is selected, the background of the peek card should always + be shown. + + + +
intPEEK_MODE_SHORT + When this peek mode is selected, peek cards will be a single line tall. + + + +
intPEEK_MODE_VARIABLE + When this peek mode is selected, peek cards will be as tall as needed, while maintaining + enough space at the top to draw the system time and status icons. + + + +
intPEEK_OPACITY_MODE_OPAQUE + When this peek opacity is selected, the first card will be completely opaque when peeking. + + + +
intPEEK_OPACITY_MODE_TRANSLUCENT + When this peek opacity is selected, the first card will be slightly translucent when peeking. + + + +
intPROTECT_HOTWORD_INDICATOR + Whether to put a semi-transparent black background behind the "Ok Google" string to make it + visible on a white background. + + + +
intPROTECT_STATUS_BAR + Whether to put a semi-transparent black background behind the status bar to make it visible + on white backgrounds. + + + +
intPROTECT_WHOLE_SCREEN + Whether to dim the entire watch face background slightly so the time and icons are always + visible. + + + +
+ + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Constants
+ + From interface +android.os.Parcelable +
+ + +
+
+ + + + + + + + + + + + + + + + + +
Fields
+ public + static + final + Creator<WatchFaceStyle>CREATOR + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Public Methods
+ + + + + + int + + describeContents() + +
+ + + + + + boolean + + equals(Object otherObj) + +
+ + + + + + int + + getAmbientPeekMode() + +
+ Controls how the first, peeking card will be displayed while the watch is in ambient, + black & white mode. + + + +
+ +
+ + + + + + int + + getBackgroundVisibility() + +
+ Controls displaying background of the first, peeking card. + + + +
+ +
+ + + + + + int + + getCardPeekMode() + +
+ Controls how far into the screen the first card will peek while the watch face is displayed. + + + +
+ +
+ + + + + + ComponentName + + getComponent() + +
+ The component of the watch face activity whose style is being specified. + + + +
+ +
+ + + + + + int + + getHotwordIndicatorGravity() + +
+ Controls position of hotword (OK Google) on the screen. + + + +
+ +
+ + + + + + int + + getPeekOpacityMode() + +
+ Controls whether the first, peeking card should be opaque when the watch face is displayed. + + + +
+ +
+ + + + + + boolean + + getShowSystemUiTime() + +
+ If true, the system will draw the system-style time over the watch face. + + + +
+ +
+ + + + + + boolean + + getShowUnreadCountIndicator() + +
+ Whether to add an indicator of how many unread cards there are in the stream. + + + +
+ +
+ + + + + + int + + getStatusBarGravity() + +
+ Controls position of status icons (battery state, lack of connection) on the screen. + + + +
+ +
+ + + + + + int + + getViewProtectionMode() + +
+ Allows adding background color to UI elements of the home screen, so they are readable on + the watch face. + + + +
+ +
+ + + + + + int + + hashCode() + +
+ + + + + + String + + toString() + +
+ + + + + + void + + writeToParcel(Parcel parcel, int flags) + +
+ + + + + + + + + + + + + + + + + + + + +
+ [Expand] +
Inherited Methods
+ +From class + + java.lang.Object + +
+ + +
+
+ +From interface + + android.os.Parcelable + +
+ + +
+
+ + +
+ + + + + + + + + + + + + + + + + + + + +

Constants

+ + + + + + +
+

+ + public + static + final + int + + AMBIENT_PEEK_MODE_HIDDEN +

+
+ + + + +
+
+ + + + +

When this ambient mode is selected, the peek card will be hidden in ambient. +

+ + +
+ Constant Value: + + + 1 + (0x00000001) + + +
+ +
+
+ + + + + +
+

+ + public + static + final + int + + AMBIENT_PEEK_MODE_VISIBLE +

+
+ + + + +
+
+ + + + +

When this ambient mode is selected, the peek card will be shown in ambient. This is the + default mode. +

+ + +
+ Constant Value: + + + 0 + (0x00000000) + + +
+ +
+
+ + + + + +
+

+ + public + static + final + int + + BACKGROUND_VISIBILITY_INTERRUPTIVE +

+
+ + + + +
+
+ + + + +

When this background visibility is selected, the background of the peek card should only be + shown briefly, and only if the peek card represents an interruptive notification. +

+ + +
+ Constant Value: + + + 0 + (0x00000000) + + +
+ +
+
+ + + + + +
+

+ + public + static + final + int + + BACKGROUND_VISIBILITY_PERSISTENT +

+
+ + + + +
+
+ + + + +

When this background visibility is selected, the background of the peek card should always + be shown. This is the default mode. + + Note that this will obscure your watch face whenever there is a peek card showing. +

+ + +
+ Constant Value: + + + 1 + (0x00000001) + + +
+ +
+
+ + + + + +
+

+ + public + static + final + int + + PEEK_MODE_SHORT +

+
+ + + + +
+
+ + + + +

When this peek mode is selected, peek cards will be a single line tall. +

+ + +
+ Constant Value: + + + 1 + (0x00000001) + + +
+ +
+
+ + + + + +
+

+ + public + static + final + int + + PEEK_MODE_VARIABLE +

+
+ + + + +
+
+ + + + +

When this peek mode is selected, peek cards will be as tall as needed, while maintaining + enough space at the top to draw the system time and status icons. This is the default mode. +

+ + +
+ Constant Value: + + + 0 + (0x00000000) + + +
+ +
+
+ + + + + +
+

+ + public + static + final + int + + PEEK_OPACITY_MODE_OPAQUE +

+
+ + + + +
+
+ + + + +

When this peek opacity is selected, the first card will be completely opaque when peeking. + This is the default mode. +

+ + +
+ Constant Value: + + + 0 + (0x00000000) + + +
+ +
+
+ + + + + +
+

+ + public + static + final + int + + PEEK_OPACITY_MODE_TRANSLUCENT +

+
+ + + + +
+
+ + + + +

When this peek opacity is selected, the first card will be slightly translucent when peeking. +

+ + +
+ Constant Value: + + + 1 + (0x00000001) + + +
+ +
+
+ + + + + +
+

+ + public + static + final + int + + PROTECT_HOTWORD_INDICATOR +

+
+ + + + +
+
+ + + + +

Whether to put a semi-transparent black background behind the "Ok Google" string to make it + visible on a white background. +

+ + +
+ Constant Value: + + + 2 + (0x00000002) + + +
+ +
+
+ + + + + +
+

+ + public + static + final + int + + PROTECT_STATUS_BAR +

+
+ + + + +
+
+ + + + +

Whether to put a semi-transparent black background behind the status bar to make it visible + on white backgrounds. +

+ + +
+ Constant Value: + + + 1 + (0x00000001) + + +
+ +
+
+ + + + + +
+

+ + public + static + final + int + + PROTECT_WHOLE_SCREEN +

+
+ + + + +
+
+ + + + +

Whether to dim the entire watch face background slightly so the time and icons are always + visible. +

+ + +
+ Constant Value: + + + 4 + (0x00000004) + + +
+ +
+
+ + + + + + + + +

Fields

+ + + + + + +
+

+ + public + static + final + Creator<WatchFaceStyle> + + CREATOR +

+
+ + + + +
+
+ + + + +

+ + +
+
+ + + + + + + + + + + + + + + + +

Public Methods

+ + + + + +
+

+ + public + + + + + int + + describeContents + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + boolean + + equals + (Object otherObj) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + int + + getAmbientPeekMode + () +

+
+
+ + + +
+
+ + + + +

Controls how the first, peeking card will be displayed while the watch is in ambient, + black & white mode. Can be set to AMBIENT_PEEK_MODE_VISIBLE or + AMBIENT_PEEK_MODE_HIDDEN. AMBIENT_PEEK_MODE_VISIBLE is the default value. +

+ +
+
+ + + + +
+

+ + public + + + + + int + + getBackgroundVisibility + () +

+
+
+ + + +
+
+ + + + +

Controls displaying background of the first, peeking card. Can be set to either + BACKGROUND_VISIBILITY_INTERRUPTIVE or BACKGROUND_VISIBILITY_PERSISTENT. + BACKGROUND_VISIBILITY_INTERRUPTIVE is the default value. +

+ +
+
+ + + + +
+

+ + public + + + + + int + + getCardPeekMode + () +

+
+
+ + + +
+
+ + + + +

Controls how far into the screen the first card will peek while the watch face is displayed. + Can be set to either PEEK_MODE_VARIABLE or PEEK_MODE_SHORT. + PEEK_MODE_VARIABLE is the default value. +

+ +
+
+ + + + +
+

+ + public + + + + + ComponentName + + getComponent + () +

+
+
+ + + +
+
+ + + + +

The component of the watch face activity whose style is being specified. +

+ +
+
+ + + + +
+

+ + public + + + + + int + + getHotwordIndicatorGravity + () +

+
+
+ + + +
+
+ + + + +

Controls position of hotword (OK Google) on the screen. Can be set to any combination of + horizontal Gravity constant (LEFT, CENTER_HORIZONTAL, + RIGHT) and vertical Gravity constants (TOP, + CENTER_VERTICAL, BOTTOM), e.g. Gravity.LEFT | Gravity.BOTTOM. + On circular screens, only the vertical gravity is respected. +

+ +
+
+ + + + +
+

+ + public + + + + + int + + getPeekOpacityMode + () +

+
+
+ + + +
+
+ + + + +

Controls whether the first, peeking card should be opaque when the watch face is displayed. + Can be set to either PEEK_OPACITY_MODE_OPAQUE or + PEEK_OPACITY_MODE_TRANSLUCENT. PEEK_OPACITY_MODE_OPAQUE is the default + value. +

+ +
+
+ + + + +
+

+ + public + + + + + boolean + + getShowSystemUiTime + () +

+
+
+ + + +
+
+ + + + +

If true, the system will draw the system-style time over the watch face. By default it is set + to false, which means you should draw or clearly represent the time on your watch face. +

+ +
+
+ + + + +
+

+ + public + + + + + boolean + + getShowUnreadCountIndicator + () +

+
+
+ + + +
+
+ + + + +

Whether to add an indicator of how many unread cards there are in the stream. The indicator + will be displayed next to status icons (battery state, lack of connection). The default value + is false. +

+ +
+
+ + + + +
+

+ + public + + + + + int + + getStatusBarGravity + () +

+
+
+ + + +
+
+ + + + +

Controls position of status icons (battery state, lack of connection) on the screen. Can be + set to any combination of horizontal Gravity constant (LEFT, + CENTER_HORIZONTAL, RIGHT) and vertical Gravity + constants (TOP, CENTER_VERTICAL, BOTTOM), + e.g. Gravity.LEFT | Gravity.BOTTOM. On circular screens, only the vertical gravity is + respected. +

+ +
+
+ + + + +
+

+ + public + + + + + int + + getViewProtectionMode + () +

+
+
+ + + +
+
+ + + + +

Allows adding background color to UI elements of the home screen, so they are readable on + the watch face. This should be used if the watch face color is close to being white. This + can be set to any combination of PROTECT_STATUS_BAR, + PROTECT_HOTWORD_INDICATOR and PROTECT_WHOLE_SCREEN, e.g. + PROTECT_STATUS_BAR | PROTECT_HOTWORD_INDICATOR. The default value is no protection. +

+ +
+
+ + + + +
+

+ + public + + + + + int + + hashCode + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + String + + toString + () +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + +
+

+ + public + + + + + void + + writeToParcel + (Parcel parcel, int flags) +

+
+
+ + + +
+
+ + + + +

+ +
+
+ + + + + + + + + + + + + +
+ +
+ +
+ + + + + + + + diff --git a/docs/html/reference/android/support/wearable/watchface/package-summary.html b/docs/html/reference/android/support/wearable/watchface/package-summary.html new file mode 100644 index 00000000000..b83c8915cbb --- /dev/null +++ b/docs/html/reference/android/support/wearable/watchface/package-summary.html @@ -0,0 +1,791 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +android.support.wearable.watchface | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+ +
+
+ + + + +
+
+ +
+ package +

android.support.wearable.watchface

+
+ +
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ + + + + + + + + + + + + +

Classes

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CanvasWatchFaceService + Base class for watch faces that draw on a Canvas.  + + + +
CanvasWatchFaceService.Engine + The actual implementation of a watch face that draws on a Canvas.  + + + +
Gles2WatchFaceService + Base class for watch faces that draw using OpenGL ES 2.0.  + + + +
Gles2WatchFaceService.Engine + The actual implementation of a watch face that draws using OpenGL ES 2.0.  + + + +
WatchFaceService + A subclass of WallpaperService with a WallpaperService.Engine that exposes + callbacks for the lifecycle of a watch face.  + + + +
WatchFaceService.Engine + The actual implementation of a watch face.  + + + +
WatchFaceStyle + A style descriptor for watch faces.  + + + +
WatchFaceStyle.Builder + Builder for WatchFaceStyle objects.  + + + +
+ +
+ + + + + + + + + + + + + +
+
+ +
+ + + + + + + + diff --git a/docs/html/reference/packages-wearable-support.html b/docs/html/reference/packages-wearable-support.html new file mode 100644 index 00000000000..e7e6f630d79 --- /dev/null +++ b/docs/html/reference/packages-wearable-support.html @@ -0,0 +1,679 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +Package Index | Android Developers + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + +
+ + + + + + + +
+
+
+
+
+ +
+ +
+
+
Android APIs
+
+ + + + +
+
+ + + + + + +
+ +
+

Package Index

+
+ +

Note: The Wearable Support Library classes under the android.support.wearable package are subject to change. For the full Android API reference, see Reference.

+ +
+

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ android.support.wearable
+ android.support.wearable.activity
+ android.support.wearable.companion
+ android.support.wearable.provider
+ android.support.wearable.view
+ android.support.wearable.watchface
+ + +
+
+ +
+ + + + + + + + diff --git a/docs/html/training/building-wearables.jd b/docs/html/training/building-wearables.jd index 0745c93a015..8015d0cd635 100644 --- a/docs/html/training/building-wearables.jd +++ b/docs/html/training/building-wearables.jd @@ -7,4 +7,8 @@ page.metaDescription=Learn how to build notifications, send and sync data, and u

These classes teach you how to build notifications in a handheld app that are automatically -synced to wearables as well as how to build apps that run on wearables.

\ No newline at end of file +synced to wearables as well as how to build apps that run on wearables.

+ +

Note: For more information about the APIs used in these training +classes, see the Wear API reference +documentation.

\ No newline at end of file diff --git a/docs/html/training/wearables/apps/layouts.jd b/docs/html/training/wearables/apps/layouts.jd index 69e57ca27ec..1d0e49bd4d1 100644 --- a/docs/html/training/wearables/apps/layouts.jd +++ b/docs/html/training/wearables/apps/layouts.jd @@ -142,9 +142,9 @@ dependencies {

Wear UI library API reference

-

The reference documentation explains how to use each UI widget in detail. Download the -API reference documentation -for the classes above.

+

The reference documentation explains how to use each UI widget in detail. Browse the +Wear API +reference documentation for the classes above.

Download the Wearable UI library for Eclipse ADT

diff --git a/docs/html/training/wearables/ui/layouts.jd b/docs/html/training/wearables/ui/layouts.jd index 130f1c477f7..0eb1395d328 100644 --- a/docs/html/training/wearables/ui/layouts.jd +++ b/docs/html/training/wearables/ui/layouts.jd @@ -88,8 +88,8 @@ dependencies {

The 'com.google.android.support:wearable' dependency is required to implement the layout techniques shown in the following sections.

-

Download the full API -reference documentation for the Wearable UI Library classes.

+

Browse the +API reference documentation for the Wearable UI Library classes.

Specify Different Layouts for Square and Round Screens

diff --git a/docs/html/training/wearables/watch-faces/service.jd b/docs/html/training/wearables/watch-faces/service.jd index 77c417feefd..7ab575e02c8 100644 --- a/docs/html/training/wearables/watch-faces/service.jd +++ b/docs/html/training/wearables/watch-faces/service.jd @@ -103,8 +103,8 @@ Data Layer API.

Wearable Support Library API Reference

The reference documentation provides detailed information about the classes you use to -implement watch faces. Download the -API reference +implement watch faces. Browse the +API reference documentation for the Wearable Support Library.

Download the Wearable Support Library for Eclipse ADT

-- GitLab