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 0000000000000000000000000000000000000000..33bf1b6ff6779e24b292043bcb99b0dfcee3ecd6 --- /dev/null +++ b/docs/html/reference/android/support/wearable/R.attr.html @@ -0,0 +1,2570 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + +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 | +
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
circle_border_color | +
+ Must be a color value, in the form of " |
+ ||||||||||
circle_border_width | +
+ Must be a dimension value, which is a floating point number appended with a unit such as " |
+ ||||||||||
circle_color | +
+ Must be a color value, in the form of " |
+ ||||||||||
circle_padding | +
+ Must be a dimension value, which is a floating point number appended with a unit such as " |
+ ||||||||||
circle_radius | +
+ Must be a dimension value, which is a floating point number appended with a unit such as " |
+ ||||||||||
circle_radius_pressed | +
+ Must be a dimension value, which is a floating point number appended with a unit such as " |
+ ||||||||||
circular_layout_gravity | +
+ Must be one or more (separated by '|') of the following constant values. + + + + |
+ ||||||||||
circular_text_size | +
+ Must be a dimension value, which is a floating point number appended with a unit such as " |
+ ||||||||||
dotColor | +
+ Must be a color value, in the form of " |
+ ||||||||||
dotColorSelected | +
+ Must be a color value, in the form of " |
+ ||||||||||
dotFadeInDuration | +
+ Must be an integer value, such as " |
+ ||||||||||
dotFadeOutDelay | +
+ Must be an integer value, such as " |
+ ||||||||||
dotFadeOutDuration | +
+ Must be an integer value, such as " |
+ ||||||||||
dotFadeWhenIdle | +
+ Must be a boolean value, either " |
+ ||||||||||
dotRadius | +
+ Must be a dimension value, which is a floating point number appended with a unit such as " |
+ ||||||||||
dotRadiusSelected | +
+ Must be a dimension value, which is a floating point number appended with a unit such as " |
+ ||||||||||
dotShadowColor | +
+ Must be a color value, in the form of " |
+ ||||||||||
dotShadowDx | +
+ Must be a dimension value, which is a floating point number appended with a unit such as " |
+ ||||||||||
dotShadowDy | +
+ Must be a dimension value, which is a floating point number appended with a unit such as " |
+ ||||||||||
dotShadowRadius | +
+ Must be a dimension value, which is a floating point number appended with a unit such as " |
+ ||||||||||
dotSpacing | +
+ Must be a dimension value, which is a floating point number appended with a unit such as " |
+ ||||||||||
layout_box | +
+ Must be one or more (separated by '|') of the following constant values. + + + + |
+ ||||||||||
rectLayout | +
+ Must be a reference to another resource, in the form " |
+ ||||||||||
roundLayout | +
+ Must be a reference to another resource, in the form " |
+ ||||||||||
shadow_width | +
+ Must be a dimension value, which is a floating point number appended with a unit such as " |
+ ||||||||||
update_interval | +
+ Must be an integer value, such as " |
+
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ [Expand]
+ Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+
+From class
+
+ java.lang.Object
+
+
+
+
+
+
+ |
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.
+
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.
+
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.
+
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.
+
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.
+
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.
+
Must be one or more (separated by '|') of the following constant values.
+Constant | Value | Description |
---|---|---|
left | 0x03 | |
top | 0x30 | |
right | 0x05 | |
bottom | 0x50 | |
center_vertical | 0x10 | |
center_horizontal | 0x01 | |
center | 0x11 |
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.
+
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.
+
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.
+
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.
+
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.
+
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.
+
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.
+
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.
+
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.
+
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.
+
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.
+
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.
+
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.
+
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.
+
Must be one or more (separated by '|') of the following constant values.
+Constant | Value | Description |
---|---|---|
left | 0x01 | |
top | 0x02 | |
right | 0x04 | |
bottom | 0x08 | |
all | 0x0F |
Must be a reference to another resource, in the form "@[+][package:]type:name
"
+or to a theme attribute in the form "?[package:][type:]name
".
+
Must be a reference to another resource, in the form "@[+][package:]type:name
"
+or to a theme attribute in the form "?[package:][type:]name
".
+
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.
+
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.
+
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 | +
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
black | ++ + + + + | +||||||||||
blue | ++ + + + + | +||||||||||
card_default_background | ++ + + + + | +||||||||||
dark_blue | ++ + + + + | +||||||||||
dark_grey | ++ + + + + | +||||||||||
disabled_text_light | ++ + + + + | +||||||||||
dismiss_close | ++ + + + + | +||||||||||
dismiss_close_pressed | ++ + + + + | +||||||||||
dismiss_overlay_bg | ++ + + + + | +||||||||||
green | ++ + + + + | +||||||||||
grey | ++ + + + + | +||||||||||
light_grey | ++ + + + + | +||||||||||
orange | ++ + + + + | +||||||||||
primary_text_dark | ++ + + + + | +||||||||||
primary_text_light | ++ + + + + | +||||||||||
red | ++ + + + + | +||||||||||
secondary_text_light | ++ + + + + | +||||||||||
semitransparent_grey | ++ + + + + | +||||||||||
white | ++ + + + + | +
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ [Expand]
+ Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+
+From class
+
+ java.lang.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 | +
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
card_content_padding_rect_top | ++ + + + + | +||||||||||
close_button_diameter | ++ + + + + | +||||||||||
dismiss_padding | ++ + + + + | +
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ [Expand]
+ Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+
+From class
+
+ java.lang.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 | +
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
card_background | ++ + + + + | +||||||||||
card_frame | ++ + + + + | +||||||||||
card_frame_pressed | ++ + + + + | +||||||||||
close_button | ++ + + + + | +||||||||||
confirmation_animation | ++ + + + + | +||||||||||
generic_confirmation_00163 | ++ + + + + | +||||||||||
generic_confirmation_00164 | ++ + + + + | +||||||||||
generic_confirmation_00165 | ++ + + + + | +||||||||||
generic_confirmation_00166 | ++ + + + + | +||||||||||
generic_confirmation_00167 | ++ + + + + | +||||||||||
generic_confirmation_00168 | ++ + + + + | +||||||||||
generic_confirmation_00169 | ++ + + + + | +||||||||||
generic_confirmation_00170 | ++ + + + + | +||||||||||
generic_confirmation_00171 | ++ + + + + | +||||||||||
generic_confirmation_00172 | ++ + + + + | +||||||||||
generic_confirmation_00173 | ++ + + + + | +||||||||||
generic_confirmation_00174 | ++ + + + + | +||||||||||
generic_confirmation_00175 | ++ + + + + | +||||||||||
generic_confirmation_00185 | ++ + + + + | +||||||||||
generic_confirmation_00186 | ++ + + + + | +||||||||||
generic_confirmation_00187 | ++ + + + + | +||||||||||
generic_confirmation_00188 | ++ + + + + | +||||||||||
generic_confirmation_00189 | ++ + + + + | +||||||||||
generic_confirmation_00190 | ++ + + + + | +||||||||||
generic_confirmation_00191 | ++ + + + + | +||||||||||
generic_confirmation_00192 | ++ + + + + | +||||||||||
generic_confirmation_00193 | ++ + + + + | +||||||||||
go_to_phone_00156 | ++ + + + + | +||||||||||
go_to_phone_00157 | ++ + + + + | +||||||||||
go_to_phone_00158 | ++ + + + + | +||||||||||
go_to_phone_00159 | ++ + + + + | +||||||||||
go_to_phone_00160 | ++ + + + + | +||||||||||
go_to_phone_00161 | ++ + + + + | +||||||||||
go_to_phone_00162 | ++ + + + + | +||||||||||
go_to_phone_00163 | ++ + + + + | +||||||||||
go_to_phone_00164 | ++ + + + + | +||||||||||
go_to_phone_00165 | ++ + + + + | +||||||||||
go_to_phone_00166 | ++ + + + + | +||||||||||
go_to_phone_00167 | ++ + + + + | +||||||||||
go_to_phone_00168 | ++ + + + + | +||||||||||
go_to_phone_00169 | ++ + + + + | +||||||||||
go_to_phone_00170 | ++ + + + + | +||||||||||
go_to_phone_00171 | ++ + + + + | +||||||||||
go_to_phone_00172 | ++ + + + + | +||||||||||
go_to_phone_00173 | ++ + + + + | +||||||||||
go_to_phone_00174 | ++ + + + + | +||||||||||
go_to_phone_00175 | ++ + + + + | +||||||||||
go_to_phone_00176 | ++ + + + + | +||||||||||
go_to_phone_00177 | ++ + + + + | +||||||||||
go_to_phone_00178 | ++ + + + + | +||||||||||
go_to_phone_00185 | ++ + + + + | +||||||||||
go_to_phone_00186 | ++ + + + + | +||||||||||
go_to_phone_00187 | ++ + + + + | +||||||||||
go_to_phone_00188 | ++ + + + + | +||||||||||
go_to_phone_00189 | ++ + + + + | +||||||||||
go_to_phone_00190 | ++ + + + + | +||||||||||
go_to_phone_00191 | ++ + + + + | +||||||||||
go_to_phone_00192 | ++ + + + + | +||||||||||
go_to_phone_00193 | ++ + + + + | +||||||||||
go_to_phone_00194 | ++ + + + + | +||||||||||
go_to_phone_00195 | ++ + + + + | +||||||||||
go_to_phone_00196 | ++ + + + + | +||||||||||
go_to_phone_00197 | ++ + + + + | +||||||||||
go_to_phone_00198 | ++ + + + + | +||||||||||
go_to_phone_00199 | ++ + + + + | +||||||||||
go_to_phone_00200 | ++ + + + + | +||||||||||
go_to_phone_00210 | ++ + + + + | +||||||||||
go_to_phone_00211 | ++ + + + + | +||||||||||
go_to_phone_00212 | ++ + + + + | +||||||||||
go_to_phone_00213 | ++ + + + + | +||||||||||
go_to_phone_00214 | ++ + + + + | +||||||||||
go_to_phone_00215 | ++ + + + + | +||||||||||
go_to_phone_00216 | ++ + + + + | +||||||||||
go_to_phone_00217 | ++ + + + + | +||||||||||
go_to_phone_00218 | ++ + + + + | +||||||||||
go_to_phone_00219 | ++ + + + + | +||||||||||
go_to_phone_00220 | ++ + + + + | +||||||||||
go_to_phone_00221 | ++ + + + + | +||||||||||
go_to_phone_00222 | ++ + + + + | +||||||||||
go_to_phone_00223 | ++ + + + + | +||||||||||
go_to_phone_00224 | ++ + + + + | +||||||||||
go_to_phone_animation | ++ + + + + | +||||||||||
ic_full_cancel | ++ + + + + | +||||||||||
ic_full_sad | ++ + + + + | +
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ [Expand]
+ Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+
+From class
+
+ java.lang.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 | +
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
R.attr | ++ + + + + | +||||||||||
R.color | ++ + + + + | +||||||||||
R.dimen | ++ + + + + | +||||||||||
R.drawable | ++ + + + + | +||||||||||
R.id | ++ + + + + | +||||||||||
R.layout | ++ + + + + | +||||||||||
R.style | ++ + + + + | +||||||||||
R.styleable | ++ + + + + | +
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ [Expand]
+ Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+
+From class
+
+ java.lang.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 | +
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
action_error | ++ + + + + | +||||||||||
action_success | ++ + + + + | +||||||||||
all | ++ + + + + | +||||||||||
animation | ++ + + + + | +||||||||||
bottom | ++ + + + + | +||||||||||
center | ++ + + + + | +||||||||||
center_horizontal | ++ + + + + | +||||||||||
center_vertical | ++ + + + + | +||||||||||
dismiss_overlay_button | ++ + + + + | +||||||||||
dismiss_overlay_explain | ++ + + + + | +||||||||||
error_message | ++ + + + + | +||||||||||
left | ++ + + + + | +||||||||||
message | ++ + + + + | +||||||||||
right | ++ + + + + | +||||||||||
text | ++ + + + + | +||||||||||
title | ++ + + + + | +||||||||||
top | ++ + + + + | +
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ [Expand]
+ Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+
+From class
+
+ java.lang.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 | +
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
confirmation_activity_layout | ++ + + + + | +||||||||||
dismiss_overlay | ++ + + + + | +||||||||||
watch_card_content | ++ + + + + | +
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ [Expand]
+ Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+
+From class
+
+ java.lang.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 | +
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CardText | ++ + + + + | +||||||||||
CardTitle | ++ + + + + | +||||||||||
DismissOverlayText | ++ + + + + | +||||||||||
DotsPageIndicatorStyle | ++ + + + + | +||||||||||
TextAppearance_Wearable_Large | ++ + + + + | +||||||||||
TextAppearance_Wearable_Medium | ++ + + + + | +||||||||||
TextAppearance_Wearable_Small | ++ + + + + | +||||||||||
TextView_Large | ++ + + + + | +||||||||||
TextView_Large_Light | ++ + + + + | +||||||||||
TextView_Medium | ++ + + + + | +||||||||||
TextView_Medium_Light | ++ + + + + | +||||||||||
TextView_Small | ++ + + + + | +||||||||||
TextView_Small_Light | ++ + + + + | +||||||||||
Theme_Wearable | ++ + + + + | +||||||||||
Theme_Wearable_Modal | ++ + + + + | +
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ [Expand]
+ Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+
+From class
+
+ java.lang.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 | +
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
BoxInsetLayout_Layout | ++ Attributes that can be used with a BoxInsetLayout_Layout. + + + + | +||||||||||
BoxInsetLayout_Layout_layout_box | +
+ This symbol is the offset where the |
+ ||||||||||
CircledImageView | ++ Attributes that can be used with a CircledImageView. + + + + | +||||||||||
CircledImageView_android_src | +
+ This symbol is the offset where the |
+ ||||||||||
CircledImageView_circle_border_color | +
+ This symbol is the offset where the |
+ ||||||||||
CircledImageView_circle_border_width | +
+ This symbol is the offset where the |
+ ||||||||||
CircledImageView_circle_color | +
+ This symbol is the offset where the |
+ ||||||||||
CircledImageView_circle_padding | +
+ This symbol is the offset where the |
+ ||||||||||
CircledImageView_circle_radius | +
+ This symbol is the offset where the |
+ ||||||||||
CircledImageView_circle_radius_pressed | +
+ This symbol is the offset where the |
+ ||||||||||
CircledImageView_shadow_width | +
+ This symbol is the offset where the |
+ ||||||||||
DelayedConfirmationView | ++ Attributes that can be used with a DelayedConfirmationView. + + + + | +||||||||||
DelayedConfirmationView_update_interval | +
+ This symbol is the offset where the |
+ ||||||||||
DotsPageIndicator | ++ Attributes that can be used with a DotsPageIndicator. + + + + | +||||||||||
DotsPageIndicator_dotColor | +
+ This symbol is the offset where the |
+ ||||||||||
DotsPageIndicator_dotColorSelected | +
+ This symbol is the offset where the |
+ ||||||||||
DotsPageIndicator_dotFadeInDuration | +
+ This symbol is the offset where the |
+ ||||||||||
DotsPageIndicator_dotFadeOutDelay | +
+ This symbol is the offset where the |
+ ||||||||||
DotsPageIndicator_dotFadeOutDuration | +
+ This symbol is the offset where the |
+ ||||||||||
DotsPageIndicator_dotFadeWhenIdle | +
+ This symbol is the offset where the |
+ ||||||||||
DotsPageIndicator_dotRadius | +
+ This symbol is the offset where the |
+ ||||||||||
DotsPageIndicator_dotRadiusSelected | +
+ This symbol is the offset where the |
+ ||||||||||
DotsPageIndicator_dotShadowColor | +
+ This symbol is the offset where the |
+ ||||||||||
DotsPageIndicator_dotShadowDx | +
+ This symbol is the offset where the |
+ ||||||||||
DotsPageIndicator_dotShadowDy | +
+ This symbol is the offset where the |
+ ||||||||||
DotsPageIndicator_dotShadowRadius | +
+ This symbol is the offset where the |
+ ||||||||||
DotsPageIndicator_dotSpacing | +
+ This symbol is the offset where the |
+ ||||||||||
WatchViewStub | ++ Attributes that can be used with a WatchViewStub. + + + + | +||||||||||
WatchViewStub_rectLayout | +
+ This symbol is the offset where the |
+ ||||||||||
WatchViewStub_roundLayout | +
+ This symbol is the offset where the |
+ ||||||||||
WearableHeaderTextView | ++ Attributes that can be used with a WearableHeaderTextView. + + + + | +||||||||||
WearableHeaderTextView_circular_layout_gravity | +
+ This symbol is the offset where the |
+ ||||||||||
WearableHeaderTextView_circular_text_size | +
+ This symbol is the offset where the |
+
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ [Expand]
+ Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+
+From class
+
+ java.lang.Object
+
+
+
+
+
+
+ |
Attributes that can be used with a BoxInsetLayout_Layout. +
Includes the following attributes:
+Attribute | Description |
---|---|
|
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.
+Constant | Value | Description |
---|---|---|
left | 0x01 | |
top | 0x02 | |
right | 0x04 | |
bottom | 0x08 | |
all | 0x0F |
Attributes that can be used with a CircledImageView. +
Includes the following attributes:
+This symbol is the offset where the src
+ attribute's value can be found in the CircledImageView
array.
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.
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.
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.
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.
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.
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.
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.
Attributes that can be used with a DelayedConfirmationView. +
Includes the following attributes:
+Attribute | Description |
---|---|
|
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.
Attributes that can be used with a DotsPageIndicator. +
Includes the following attributes:
+DotsPageIndicator_dotColor
DotsPageIndicator_dotColorSelected
DotsPageIndicator_dotFadeInDuration
DotsPageIndicator_dotFadeOutDelay
DotsPageIndicator_dotFadeOutDuration
DotsPageIndicator_dotFadeWhenIdle
DotsPageIndicator_dotRadius
DotsPageIndicator_dotRadiusSelected
DotsPageIndicator_dotShadowColor
DotsPageIndicator_dotShadowDx
DotsPageIndicator_dotShadowDy
DotsPageIndicator_dotShadowRadius
DotsPageIndicator_dotSpacing
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Attributes that can be used with a WatchViewStub. +
Includes the following attributes:
+Attribute | Description |
---|---|
| |
|
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
".
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
".
Attributes that can be used with a WearableHeaderTextView. +
Includes the following attributes:
+Attribute | Description |
---|---|
| |
|
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.
+Constant | Value | Description |
---|---|---|
left | 0x03 | |
top | 0x30 | |
right | 0x05 | |
bottom | 0x50 | |
center_vertical | 0x10 | |
center_horizontal | 0x01 | |
center | 0x11 |
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.
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 | +
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: +
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | +EXTRA_ANIMATION_TYPE | ++ + + + + | +|||||||||
String | +EXTRA_MESSAGE | ++ + + + + | +|||||||||
int | +FAILURE_ANIMATION | ++ + + + + | +|||||||||
int | +OPEN_ON_PHONE_ANIMATION | ++ + + + + | +|||||||||
int | +SUCCESS_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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ [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
+
+
+
+
+
+
+ |
Note: The Wearable Support Library classes under the android.support.wearable
package are subject to change. For the full Android API reference, see Reference.
ConfirmationActivity | ++ This Activity is used to display confirmation animations after the user completes an action on + the 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.
java.lang.Object | +|
↳ | + +android.support.wearable.companion.WatchFaceCompanion | +
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
.
+
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
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 .
+
+
+
+ |
+ |||||||||
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 .
+
+
+
+ |
+
+ [Expand]
+ Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+
+From class
+
+ java.lang.Object
+
+
+
+
+
+
+ |
The key for String
extra specifying a ComponentName
of the
+ watch face being configured in the config activity launch Intent
.
+
Note: The Wearable Support Library classes under the android.support.wearable
package are subject to change. For the full Android API reference, see Reference.
WatchFaceCompanion | ++ Constants for use by watch face configuration activities. + + + + | +
Note: The Wearable Support Library classes under the android.support.wearable
package are subject to change. For the full Android API reference, see Reference.
R | ++ + + + + | +
R.attr | ++ + + + + | +
R.color | ++ + + + + | +
R.dimen | ++ + + + + | +
R.drawable | ++ + + + + | +
R.id | ++ + + + + | +
R.layout | ++ + + + + | +
R.style | ++ + + + + | +
R.styleable | ++ + + + + | +
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 | +
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CONTENT_URI | ++ + + + + | +
+ [Expand]
+ Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+
+From class
+
+ java.lang.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 | +
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CONTENT_URI | ++ + + + + | +
+ [Expand]
+ Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+
+From class
+
+ java.lang.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 | +
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CONTENT_URI | ++ + + + + | +
+ [Expand]
+ Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+
+From class
+
+ java.lang.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 | +
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.
+
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
WearableCalendarContract.Attendees | ++ + + + + | +||||||||||
WearableCalendarContract.Instances | ++ + + + + | +||||||||||
WearableCalendarContract.Reminders | ++ + + + + | +
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | +AUTHORITY | ++ + + + + | +
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CONTENT_URI | ++ The content:// style URL for the top-level wearable calendar authority. + + + + | +
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ [Expand]
+ Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+
+From class
+
+ java.lang.Object
+
+
+
+
+
+
+ |
The content:// style URL for the top-level wearable calendar authority. +
Note: The Wearable Support Library classes under the android.support.wearable
package are subject to change. For the full Android API reference, see Reference.
WearableCalendarContract | ++ The contract between the wearable calendar provider and applications. + + + + | +
WearableCalendarContract.Attendees | ++ + + + + | +
WearableCalendarContract.Instances | ++ + + + + | +
WearableCalendarContract.Reminders | ++ + + + + | +
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 | +
adds layout_box
attribute to layout parameters
+
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | +BOX_ALL | ++ + + + + | +|||||||||
int | +BOX_BOTTOM | ++ + + + + | +|||||||||
int | +BOX_LEFT | ++ + + + + | +|||||||||
int | +BOX_NONE | ++ + + + + | +|||||||||
int | +BOX_RIGHT | ++ + + + + | +|||||||||
int | +BOX_TOP | ++ + + + + | +
+ [Expand]
+ Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+
+ From class
+android.view.ViewGroup.LayoutParams
+
+
+
+
+
+ |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boxedEdges | ++ + + + + | +
+ [Expand]
+ Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+
+ From class
+android.widget.FrameLayout.LayoutParams
+
+
+
+
+
+ | |||||||||||
+
+ From class
+android.view.ViewGroup.MarginLayoutParams
+
+
+
+
+
+ | |||||||||||
+
+ From class
+android.view.ViewGroup.LayoutParams
+
+
+
+
+
+ |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ [Expand]
+ Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+
+From class
+
+ android.view.ViewGroup.MarginLayoutParams
+
+
+
+
+
+
+ | |||||||||||
+
+From class
+
+ android.view.ViewGroup.LayoutParams
+
+
+
+
+
+
+ | |||||||||||
+
+From class
+
+ java.lang.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.view.View | +|||
+ + | ↳ | + +android.view.ViewGroup | +||
+ + | + + | ↳ | + +android.widget.FrameLayout | +|
+ + | + + | + + | ↳ | + +android.support.wearable.view.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. 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.
+
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
BoxInsetLayout.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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ determine screen shape
+
+
+
+
+
+ | |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ [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
+
+
+
+
+
+
+ |
determine screen shape
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 | +
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.
+ + + + + + +Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | +EXPAND_DOWN | ++ + + + + | +|||||||||
int | +EXPAND_UP | ++ + + + + | +|||||||||
String | +KEY_ICON_RESOURCE | ++ + + + + | +|||||||||
String | +KEY_TEXT | ++ + + + + | +|||||||||
String | +KEY_TITLE | ++ + + + + | +
+ [Expand]
+ Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+
+ From interface
+android.content.ComponentCallbacks2
+
+
+
+
+
+ |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ Construct a new CardFragment using the default content layout.
+
+
+
+
+
+ | |||||||||||
+ Construct a new CardFragment using the default content layout, including and icon.
+
+
+
+
+
+ | |||||||||||
+ Sets the card scroll position as far down as possible so the bottom edge is visible.
+
+
+
+
+
+ | |||||||||||
+ Sets the card scroll position as far up as possible so the top edge is visible.
+
+
+
+
+
+ | |||||||||||
+ Assigns vertical gravity to the card, which determines where it should float when the card
+ and it's content are shorter than the page.
+
+
+
+
+
+ | |||||||||||
+ Sets the additional margin between the bottom edge of the card shadow, and the parent view.
+
+
+
+
+
+ | |||||||||||
+ Sets the additional margin between the left edge of the card shadow, and the parent view.
+
+
+
+
+
+ | |||||||||||
+ Sets the additional margin between the right edge of the card shadow, and the parent view.
+
+
+
+
+
+ | |||||||||||
+ Sets the additional margin between the top edge of the card shadow, and the parent view.
+
+
+
+
+
+ | |||||||||||
+ Sets the additional margin between the card shadow edge and the parent view.
+
+
+
+
+
+ | |||||||||||
+ Sets padding between the inside card edge and the card content.
+
+
+
+
+
+ | |||||||||||
+ Adjusts which direction the card height will expand.
+
+
+
+
+
+ | |||||||||||
+ Enables support contents which maybe be larger than the card's container.
+
+
+
+
+
+ | |||||||||||
+ Sets the allowed maximum height of the card as a multiple of the parent height.
+
+
+
+
+
+ |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ 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
+
+
+
+
+
+
+ |
Construct a new CardFragment using the default content layout.
title + | the card title displayed on the first line | +
---|---|
description + | the card text displayed below the title | +
Construct a new CardFragment using the default content layout, including and icon.
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 | +
Sets the card scroll position as far down as possible so the bottom edge is visible. +
Sets the card scroll position as far up as possible so the top edge is visible. +
Sets the additional margin between the bottom edge of the card shadow, and the parent view.
bottom + | the top margin + | +
---|
Sets the additional margin between the left edge of the card shadow, and the parent view.
left + | the top margin + | +
---|
Sets the additional margin between the right edge of the card shadow, and the parent view.
right + | the top margin + | +
---|
Sets the additional margin between the top edge of the card shadow, and the parent view.
top + | the top margin + | +
---|
Sets the additional margin between the card shadow edge and the parent view.
left + | the left margin | +
---|---|
top + | the top margin | +
right + | the right margin | +
bottom + | the bottom margin + | +
Sets padding between the inside card edge and the card content.
left + | the left padding | +
---|---|
top + | the top padding | +
right + | the right padding | +
bottom + | the bottom padding + | +
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.
direction + | a direction constant, either EXPAND_UP or EXPAND_DOWN
+ |
+
---|
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. +
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.
factor + | the vertical height multiplier to set the maximum height + | +
---|
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.
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 | +
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 | +
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.
+
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | +EXPAND_DOWN | ++ + + + + | +|||||||||
int | +EXPAND_UP | ++ + + + + | +|||||||||
float | +NO_EXPANSION | ++ + + + + | +
+ [Expand]
+ Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+
+ From class
+android.view.ViewGroup
+
+
+
+
+
+ | |||||||||||
+
+ From class
+android.view.View
+
+
+
+
+
+ |
+ [Expand]
+ Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+
+ From class
+android.view.View
+
+
+
+
+
+ |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ Returns the inner padding before the Card's bottom edge
+
+
+
+
+
+
+ | |||||||||||
+ Returns the inner padding after the Card's left edge
+
+
+
+
+
+
+ | |||||||||||
+ Returns the inner padding before the Card's right edge
+
+
+
+
+
+
+ | |||||||||||
+ Returns the inner padding after the Card's top edge
+
+
+
+
+
+
+ | |||||||||||
+ Returns the current expansion direction, either
+
+ EXPAND_UP or EXPAND_DOWN .
+
+
+
+ | |||||||||||
+ Returns the current expansionFactor which is the maximum height of this view as a multiple of
+ the parent view's height.
+
+
+
+
+
+ | |||||||||||
+ Indicates whether expansion is on.
+
+
+
+
+
+ | |||||||||||
+ Sets the direction in which content expands.
+
+
+
+
+
+ | |||||||||||
+ Enables support contents which maybe be larger than the card's container.
+
+
+
+
+
+ | |||||||||||
+ Sets the allowed expansion amount as a multiple of the parent height.
+
+
+
+
+
+ | |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ Get a default size, will be as small as possible unless forced by the parent, or greedy is
+ specified.
+
+
+
+
+
+ | |||||||||||
+ [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
+
+
+
+
+
+
+ |
Returns the inner padding before the Card's bottom edge +
Returns the inner padding after the Card's left edge +
Returns the inner padding before the Card's right edge +
Returns the inner padding after the Card's top edge +
Returns the current expansion direction, either EXPAND_UP
or EXPAND_DOWN
.
+
Returns the current expansionFactor which is the maximum height of this view as a multiple of + the parent view's height. +
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.
+
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. +
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. +
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. +
Get a default size, will be as small as possible unless forced by the parent, or greedy is + specified. +
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 | +
Designed to host a CardFrame and provides special support for scrolling with expansion in both + the upward and downward directions. +
+ + + + + +
+ [Expand]
+ Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+
+ From class
+android.view.ViewGroup
+
+
+
+
+
+ | |||||||||||
+
+ From class
+android.view.View
+
+
+
+
+
+ |
+ [Expand]
+ Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+
+ From class
+android.view.View
+
+
+
+
+
+ |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ Indicates how far the container may be vertically scrolled in the given direction.
+
+
+
+
+
+ | |||||||||||
+ Returns the current layout gravity for contained card frame.
+
+
+
+
+
+ | |||||||||||
+ Returns the current expansion direction for the contained CardFrame.
+
+
+
+
+
+ | |||||||||||
+ Returns the current expansion factor for the contained CardFrame.
+
+
+
+
+
+ | |||||||||||
+ Indicates if expansion is enabled.
+
+
+
+
+
+ | |||||||||||
+ Applies gravity to adjust the vertical alignment of the contained card frame when it's
+ shorter than the containing view.
+
+
+
+
+
+ | |||||||||||
+ Control which direction expansion occurs.
+
+
+
+
+
+ | |||||||||||
+ Whether the height of the card is permitted to increase beyond the card layout bounds.
+
+
+
+
+
+ | |||||||||||
+ Changes the expansion factor for the contained CardFrame.
+
+
+
+
+
+ |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ [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
+
+
+
+
+
+
+ |
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).
direction + | the direction value to check, only the sign of the value is significant + | +
---|
Returns the current layout gravity for contained card frame.
Returns the current expansion direction for the contained CardFrame.
Returns the current expansion factor for the contained CardFrame.
Indicates if expansion is enabled.
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.
direction + | the direction for content expansion + | +
---|
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.
enableExpansion + | whether content will be allowed to expand | +
---|
Changes the expansion factor for the contained CardFrame.
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
+
+
+
+
+
+
+ DelayedConfirmationView
+
+
+
+
+ |
An image view surrounded by a circle. +
+ + + + + +
+ [Expand]
+ Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+
+ From class
+android.view.ViewGroup
+
+
+
+
+
+ | |||||||||||
+
+ From class
+android.view.View
+
+
+
+
+
+ |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
mProgress | ++ + + + + | +
+ [Expand]
+ Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+
+ From class
+android.view.View
+
+
+
+
+
+ |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ Set the border around the circle.
+
+
+
+
+
+ | |||||||||||
+ Set how much of the shadow should be shown.
+
+
+
+
+
+ | |||||||||||
+ Show the circle border as an indeterminate progress spinner.
+
+
+
+
+
+ |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ [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
+
+
+
+
+
+
+ |
Set the border around the circle.
circleBorderWidth + | Width of the border around the circle. + | +
---|
Set how much of the shadow should be shown.
shadowVisibility + | Value between 0 and 1. + | +
---|
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.
show + | true if the progress spinner is shown, false to hide it. + | +
---|
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 | +
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.
+ + + +Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ Sets the image for the base layer.
+
+
+
+
+
+ | |||||||||||
+ Sets the image for the fading layer.
+
+
+
+
+
+ | |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ [Expand]
+ Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+
+From class
+
+ android.graphics.drawable.Drawable
+
+
+
+
+
+
+ | |||||||||||
+
+From class
+
+ java.lang.Object
+
+
+
+
+
+
+ | |||||||||||
+
+From interface
+
+ android.graphics.drawable.Drawable.Callback
+
+
+
+
+
+
+ |
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. +
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. +
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 | +
Implement this interface to receive callbacks when the timer is finished and when the user + taps the View to select it. +
+ + + + + +Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ Called when the timer is finished.
+
+
+
+
+
+ | |||||||||||
+ Called when the user selects the timer.
+
+
+
+
+
+ |
Called when the timer is finished. +
Called when the user selects the timer. +
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 | +
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
.
+
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
DelayedConfirmationView.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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ Resets the timer.
+
+
+
+
+
+ | |||||||||||
+ Sets a listener to get callbacks for when the timer finishes or cancelled.
+
+
+
+
+
+ | |||||||||||
+ Artificially sets the start time in milliseconds for the Timer to countdown from.
+
+
+
+
+
+ | |||||||||||
+ Sets the total time in milliseconds for the Timer to countdown to.
+
+
+
+
+
+ | |||||||||||
+ Starts the timer countdown.
+
+
+
+
+
+ |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ [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
+
+
+
+
+
+
+ |
Resets the timer. +
Sets a listener to get callbacks for when the timer finishes or cancelled. +
listener + | listener to register. + | +
---|
Artificially sets the start time in milliseconds for the Timer to countdown from.
+ This should be called after the timer is started with start()
.
time + | start time in milliseconds. + | +
---|
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. +
time + | countdown time in milliseconds. + | +
---|
Starts the timer countdown. +
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 | +
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.
+
+ [Expand]
+ Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+
+ From class
+android.view.ViewGroup
+
+
+
+
+
+ | |||||||||||
+
+ From class
+android.view.View
+
+
+
+
+
+ |
+ [Expand]
+ Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+
+ From class
+android.view.View
+
+
+
+
+
+ |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ Set the intro text.
+
+
+
+
+
+ | |||||||||||
+ Set the intro text.
+
+
+
+
+
+ | |||||||||||
+ Show the exit button.
+
+
+
+
+
+ | |||||||||||
+ 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
+
+
+
+
+
+
+ |
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. +
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. +
Show the exit button. + + This should be called from a long-press listener. +
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. +
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 | +
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.
+
+ [Expand]
+ Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+
+ From class
+android.view.View
+
+
+
+
+
+ |
+ [Expand]
+ Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+
+ From class
+android.view.View
+
+
+
+
+
+ |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ Returns the color used for dots other than the selected page.
+
+
+
+
+
+ | |||||||||||
+ Returns the color of the dot for the selected page.
+
+
+
+
+
+ | |||||||||||
+ Returns the duration of the fade in duration, in milliseconds.
+
+
+
+
+
+ | |||||||||||
+ Sets the delay between the pager arriving at an idle state, and the fade out animation
+ beginning, in milliseconds.
+
+
+
+
+
+ | |||||||||||
+ Returns the duration of fade out animation, in milliseconds.
+
+
+
+
+
+ | |||||||||||
+ Indicates if the dots fade out when the pager is idle.
+
+
+
+
+
+ | |||||||||||
+ Gets the radius of the page dots.
+
+
+
+
+
+ | |||||||||||
+ Gets the radius of the page dot for the selected page.
+
+
+
+
+
+ | |||||||||||
+ Returns the color of the shadows drawn beneath the dots.
+
+
+
+
+
+ | |||||||||||
+ Returns the horizontal offset of shadows drawn beneath the dots.
+
+
+
+
+
+ | |||||||||||
+ Returns the vertical offset of shadows drawn beneath the dots.
+
+
+
+
+
+ | |||||||||||
+ Sets the pixel radius of shadows drawn beneath the dots.
+
+
+
+
+
+ | |||||||||||
+ Gets the center-to-center distance between page dots.
+
+
+
+
+
+ | |||||||||||
+ Called when the adapter is changed with
+
+ setAdapter(GridPagerAdapter) .
+
+
+
+ | |||||||||||
+ Called when a change is made to the content of the current adapter.
+
+
+
+
+
+ | |||||||||||
+ Called when the scroll state changes.
+
+
+
+
+
+ | |||||||||||
+ 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.
+
+
+
+
+
+ | |||||||||||
+ This method is called when a new page becomes selected.
+
+
+
+
+
+ | |||||||||||
+ Sets the color used for dots other than the selected page.
+
+
+
+
+
+ | |||||||||||
+ Sets the color of the dot for the selected page.
+
+
+
+
+
+ | |||||||||||
+ Sets the duration of the fade in animation.
+
+
+
+
+
+ | |||||||||||
+ Sets the delay between the pager arriving at an idle state, and the fade out animation
+ beginning, in milliseconds.
+
+
+
+
+
+ | |||||||||||
+ Sets the duration of the fade out animation.
+
+
+
+
+
+ | |||||||||||
+ Sets whether the dots fade out when the pager is idle.
+
+
+
+
+
+ | |||||||||||
+ Sets the radius of the page dots.
+
+
+
+
+
+ | |||||||||||
+ Sets the radius of the page dot for the selected page.
+
+
+
+
+
+ | |||||||||||
+ Sets the color of the shadows drawn beneath the dots.
+
+
+
+
+
+ | |||||||||||
+ Sets the horizontal offset of shadows drawn beneath the dots.
+
+
+
+
+
+ | |||||||||||
+ Sets the vertical offset of shadows drawn beneath the dots.
+
+
+
+
+
+ | |||||||||||
+ Sets the pixel radius of shadows drawn beneath the dots.
+
+
+
+
+
+ | |||||||||||
+ Sets the center-to-center distance between page dots.
+
+
+
+
+
+ | |||||||||||
+ Sets a listener to receive the adapter change events that are provided to the page indicator.
+
+
+
+
+
+ | |||||||||||
+ Sets a listener to receive the page change events that are provided to the page indicator.
+
+
+
+
+
+ | |||||||||||
+ Supplies the GridViewPager instance, and attaches this views
+
+ GridViewPager.OnPageChangeListener and
+ GridViewPager.OnAdapterChangeListener listeners to the pager.
+
+
+
+ |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ [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
+
+
+
+
+
+
+ |
Returns the color used for dots other than the selected page.
Returns the color of the dot for the selected page.
Returns the duration of the fade in duration, in milliseconds.
Sets the delay between the pager arriving at an idle state, and the fade out animation + beginning, in milliseconds.
Returns the duration of fade out animation, in milliseconds.
Indicates if the dots fade out when the pager is idle.
Gets the radius of the page dots.
Gets the radius of the page dot for the selected page.
Returns the color of the shadows drawn beneath the dots.
Returns the horizontal offset of shadows drawn beneath the dots.
Returns the vertical offset of shadows drawn beneath the dots.
Sets the pixel radius of shadows drawn beneath the dots.
Gets the center-to-center distance between page dots.
Called when the adapter is changed with setAdapter(GridPagerAdapter)
.
+
Called when a change is made to the content of the current adapter. +
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.
state + | The new scroll state. | +
---|
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.
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 + | +
This method is called when a new page becomes selected. The page may still be settling + into final position.
row + | Vertical position index of the new selected page | +
---|---|
column + | Horizontal position index of the new selected page + | +
Sets the color used for dots other than the selected page.
color + | the color used for dots other than the selected page + | +
---|
Sets the color of the dot for the selected page.
color + | the color of the dot for the selected page + | +
---|
Sets the duration of the fade in animation.
duration + | the duration of the fade in animation + | +
---|
Sets the delay between the pager arriving at an idle state, and the fade out animation + beginning, in milliseconds.
delay + | the delay before the fade out animation begins, in milliseconds + | +
---|
Sets the duration of the fade out animation.
duration + | the duration of the fade out animation + | +
---|
Sets whether the dots fade out when the pager is idle.
fade + | whether the dots fade out when idle + | +
---|
Sets the radius of the page dots.
radius + | the radius of the page dots + | +
---|
Sets the radius of the page dot for the selected page.
radius + | the radius of the selected page dot + | +
---|
Sets the color of the shadows drawn beneath the dots.
color + | the color of the shadows drawn beneath the dots + | +
---|
Sets the horizontal offset of shadows drawn beneath the dots.
dx + | the horizontal offset of shadows drawn beneath the dots + | +
---|
Sets the vertical offset of shadows drawn beneath the dots.
dy + | the vertical offset of shadows drawn beneath the dots + | +
---|
Sets the pixel radius of shadows drawn beneath the dots.
radius + | the pixel radius of shadows rendered beneath the dots + | +
---|
Sets the center-to-center distance between page dots.
spacing + | the distance between page dots + | +
---|
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.
listener + | the listener for adapter change events + | +
---|
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.
listener + | the listener for page change events + | +
---|
Supplies the GridViewPager instance, and attaches this views GridViewPager.OnPageChangeListener
and
+ GridViewPager.OnAdapterChangeListener
listeners to the pager.
pager + | the pager for the page indicator + | +
---|
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 | +
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.
+
+ [Expand]
+ Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+
+ From class
+android.support.wearable.view.GridPagerAdapter
+
+
+
+
+
+ |
+ [Expand]
+ Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+
+ From class
+android.support.wearable.view.GridPagerAdapter
+
+
+
+
+
+ |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ Provides content to be displayed as the background for a specific page.
+
+
+
+
+
+ | |||||||||||
+ Returns the
+
+ Fragment at the specified row number and column number.
+
+
+
+ | |||||||||||
+ Determines whether a page View is associated with a specific key object as returned by
+
+
+ instantiateItem(ViewGroup, int, int) .
+
+
+
+ |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ Removes a page for the given position.
+
+
+
+
+
+ | |||||||||||
+ Called when the a change in the shown pages has been completed.
+
+
+
+
+
+ | |||||||||||
+ Returns a background for Fragments implementing
+
+ GridPageOptions .
+
+
+
+ | |||||||||||
+ Returns a unique identifier for the
+
+ Fragment at the given row/column
+ position.
+
+
+
+ | |||||||||||
+ Creates the page for the given position.
+
+
+
+
+
+ |
+ [Expand]
+ Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+
+From class
+
+ android.support.wearable.view.GridPagerAdapter
+
+
+
+
+
+
+ | |||||||||||
+
+From class
+
+ java.lang.Object
+
+
+
+
+
+
+ |
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)
.
row + | the row of the page | +
---|---|
column + | the column of the page | +
BACKGROUND_NONE
+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.
row + | the row of the position | +
---|---|
column + | the column of the position + | +
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.
view + | Page View to check for association with object |
+
---|---|
object + | Object to check for association with view |
+
view
is associated with the key 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)
.
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) .
+ |
+
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.
container + | The containing View which is displaying this adapter's page views + | +
---|
Returns a background for Fragments implementing GridPageOptions
.
row + | the row of the fragment | +
---|---|
column + | the column of the fragment | +
BACKGROUND_NONE
if the fragment does not
+ implement GridPageOptions
+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. +
row + | the row that this item is at | +
---|---|
column + | the column within this row that the item is at | +
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)
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 | +
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 | +
Interface for communicating background changes to a listener. +
+ + + + + +Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ Notifies the container about a change to the background.
+
+
+
+
+
+ |
Notifies the container about a change to the background. When necessary,
+ getBackground()
will be called again for this page to update the
+ background.
+
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 | +
An optional interface for a Fragment within a GridViewPager which provides additional + configurable options. +
+ + + + + +Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
GridPageOptions.BackgroundListener | ++ Interface for communicating background changes to a listener. + + + + | +
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ Provides a background for the page represented by this Fragment.
+
+
+
+
+
+ | |||||||||||
+ Provides a listener used to notify the container about a change to the background.
+
+
+
+
+
+ |
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.
Provides a listener used to notify the container about a change to the background.
listener + | a listener used to notify about background changes + | +
---|
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
+
+
+
+
+
+
+ FragmentGridPagerAdapter
+
+
+
+
+ |
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. +
+ + + + + +Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | +OPTION_DISABLE_PARALLAX | ++ Disables zooming and parallax scrolling of the background. + + + + | +|||||||||
int | +PAGE_DEFAULT_OPTIONS | ++ Default background options. + + + + | +
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
BACKGROUND_NONE | ++ This value indicates that no background should drawn. + + + + | +||||||||||
POSITION_NONE | ++ + + + + | +||||||||||
POSITION_UNCHANGED | ++ + + + + | +
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ Provides content to be displayed as background for a specific page.
+
+
+
+
+
+ | |||||||||||
+ Provides content to be displayed as the default background for all pages on the given row.
+
+
+
+
+
+ | |||||||||||
+ Returns the maximum number of columns for each row.
+
+
+
+
+
+ | |||||||||||
+ Returns the column to arrive at when navigating vertically to the specified row.
+
+
+
+
+
+ | |||||||||||
+ Called when the host view is attempting to determine if an item's position has changed.
+
+
+
+
+
+ | |||||||||||
+ Provides a set of features to apply to a page background.
+
+
+
+
+
+ | |||||||||||
+ Returns the number of rows available.
+
+
+
+
+
+ | |||||||||||
+ Determines whether a page View is associated with a specific key object as returned by
+
+
+ instantiateItem(ViewGroup, int, int) .
+
+
+
+ | |||||||||||
+ This method should be called by the application if the data backing this adapter has changed
+ and associated views should update.
+
+
+
+
+
+ | |||||||||||
+ This method should be called if the value returned by
+
+ getBackgroundForPage(int, int)
+ or options returned by getOptionsForPage(int, int) change.
+
+
+
+ | |||||||||||
+ This method should be called if the value returned by
+
+ getBackgroundForRow(int)
+ changes.
+
+
+
+ | |||||||||||
+ Register an observer to receive callbacks related to the adapter's data changing.
+
+
+
+
+
+ | |||||||||||
+ Restores the previously saved state of this adapter.
+
+
+
+
+
+ | |||||||||||
+ Saves the current state of this adapter.
+
+
+
+
+
+ | |||||||||||
+ Unregister an observer from callbacks related to the adapter's data changing.
+
+
+
+
+
+ |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ Removes a page for the given position.
+
+
+
+
+
+ | |||||||||||
+ Called when the a change in the shown pages has been completed.
+
+
+
+
+
+ | |||||||||||
+ Creates the page for the given position.
+
+
+
+
+
+ | |||||||||||
+ Called to inform the adapter of which column is now current for the given row.
+
+
+
+
+
+ | |||||||||||
+ Called when a change in the shown pages is going to start being made.
+
+
+
+
+
+ |
+ [Expand]
+ Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+
+From class
+
+ java.lang.Object
+
+
+
+
+
+
+ |
Disables zooming and parallax scrolling of the background. +
Default background options. Parallax scrolling is enabled. +
This value indicates that no background should drawn. See getBackgroundForRow(int)
and
+ getBackgroundForPage(int, int)
for specific effects.
+
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.
row + | the row of the page | +
---|---|
column + | the column of the page + | +
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.
row + | the row of the page | +
---|
Returns the maximum number of columns for each row. The number of columns may vary by row. +
Returns the column to arrive at when navigating vertically to the specified row. +
+ The default implementation simply returns 0.
row + | the row in question | +
---|---|
currentColumn + | the column which is currently centered | +
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.
object + | Object representing an item, previously returned by a call to
+ instantiateItem(ViewGroup, int, int) . |
+
---|
POSITION_UNCHANGED
if the object's position has not
+ changed, or POSITION_NONE
if the item is no longer present.
+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 isPAGE_DEFAULT_OPTIONS
.row + | the row of the page | +
---|---|
column + | the column of the page | +
Returns the number of rows available. +
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.
view + | Page View to check for association with object |
+
---|---|
object + | Object to check for association with view |
+
view
is associated with the key object object
+This method should be called by the application if the data backing this adapter has changed + and associated views should update. +
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.
+
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.
+
Register an observer to receive callbacks related to the adapter's data changing.
observer + | The DataSetObserver which will receive callbacks.
+ |
+
---|
Restores the previously saved state of this adapter. +
Saves the current state of this adapter. +
Unregister an observer from callbacks related to the adapter's data changing.
observer + | The DataSetObserver which will be unregistered.
+ |
+
---|
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)
.
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) .
+ |
+
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.
container + | The containing View which is displaying this adapter's page views + | +
---|
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)
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 | +
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.
row + | the row for the column change | +
---|---|
currentColumn + | the column which is now current + | +
Called when a change in the shown pages is going to start being made.
container + | The containing View which is displaying this adapter's page views. + | +
---|
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 | +
Layout parameters that should be supplied for views added to a ViewPager. +
+ + + + + +
+ [Expand]
+ Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+
+ From class
+android.view.ViewGroup.LayoutParams
+
+
+
+
+
+ |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
gravity | +
+ Where to position the view page within the overall GridViewPager container; constants are
+ defined in Gravity .
+
+
+
+ |
+ ||||||||||
needsMeasure | ++ + + + + | +
+ [Expand]
+ Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+
+ From class
+android.view.ViewGroup.MarginLayoutParams
+
+
+
+
+
+ | |||||||||||
+
+ From class
+android.view.ViewGroup.LayoutParams
+
+
+
+
+
+ |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ [Expand]
+ Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+
+From class
+
+ android.view.ViewGroup.MarginLayoutParams
+
+
+
+
+
+
+ | |||||||||||
+
+From class
+
+ android.view.ViewGroup.LayoutParams
+
+
+
+
+
+
+ | |||||||||||
+
+From class
+
+ java.lang.Object
+
+
+
+
+
+
+ |
Where to position the view page within the overall GridViewPager container; constants are
+ defined in Gravity
.
+
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
+
+
+
+
+
+
+ DotsPageIndicator
+
+
+
+
+ |
Callback interface for responding to a replaced or removed adapter. +
+ + + + + +Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ Called when the adapter is changed with
+
+ setAdapter(GridPagerAdapter) .
+
+
+
+ | |||||||||||
+ Called when a change is made to the content of the current adapter.
+
+
+
+
+
+ |
Called when the adapter is changed with setAdapter(GridPagerAdapter)
.
+
Called when a change is made to the content of the current adapter. +
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
+
+
+
+
+
+
+ DotsPageIndicator
+
+
+
+
+ |
Callback interface for responding to changing state of the selected page. +
+ + + + + +Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ Called when the scroll state changes.
+
+
+
+
+
+ | |||||||||||
+ 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.
+
+
+
+
+
+ | |||||||||||
+ This method is called when a new page becomes selected.
+
+
+
+
+
+ |
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.
state + | The new scroll state. | +
---|
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.
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 + | +
This method is called when a new page becomes selected. The page may still be settling + into final position.
row + | Vertical position index of the new selected page | +
---|---|
column + | Horizontal position index of the new selected page + | +
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 | +
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.
+
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
GridViewPager.LayoutParams | ++ Layout parameters that should be supplied for views added to a ViewPager. + + + + | +||||||||||
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. + + + + | +
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | +SCROLL_STATE_CONTENT_SETTLING | ++ + + + + | +|||||||||
int | +SCROLL_STATE_DRAGGING | ++ Indicates that the pager is currently being dragged by the user. + + + + | +|||||||||
int | +SCROLL_STATE_IDLE | ++ Indicates that the pager is in an idle, settled state. + + + + | +|||||||||
int | +SCROLL_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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ Returns the number of pages that will be retained on the sides of the current page in the
+ view hierarchy in an idle state.
+
+
+
+
+
+ | |||||||||||
+ Return the margin between columns of pages.
+
+
+
+
+
+ | |||||||||||
+ Returns the margin between rows of pages.
+
+
+
+
+
+ | |||||||||||
+ Assigns an adapter to provide the content for this pager.
+
+
+
+
+
+ | |||||||||||
+ Set the number of pages that should be retained to either side of the current page in the
+ view hierarchy in an idle state.
+
+
+
+
+
+ | |||||||||||
+ Set a listener that will be invoked whenever the adapter is changed.
+
+
+
+
+
+ | |||||||||||
+ Set a listener that will be invoked whenever the page changes or is incrementally scrolled.
+
+
+
+
+
+ | |||||||||||
+ Sets the margin between pages.
+
+
+
+
+
+ |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ Used to measure all page views.
+
+
+
+
+
+ | |||||||||||
+ 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.
+
+
+
+
+
+ | |||||||||||
+ [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
+
+
+
+
+
+
+ |
Indicates that the pager is currently being dragged by the user. +
Indicates that the pager is in an idle, settled state. The current page is fully in view and + no animation is in progress. +
Indicates that the pager is in the process of settling to a final position. +
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.
Return the margin between columns of pages.
Returns the margin between rows of pages.
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.
adapter + | the adapter to assign + | +
---|
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. +
limit + | How many pages will be kept offscreen in an idle state. + | +
---|
Set a listener that will be invoked whenever the adapter is changed.
+ See GridViewPager.OnAdapterChangeListener
.
listener + | Listener to set + | +
---|
Set a listener that will be invoked whenever the page changes or is incrementally scrolled.
+ See GridViewPager.OnPageChangeListener
.
listener + | Listener to set + | +
---|
Sets the margin between pages.
rowMarginPx + | vertical distance between adjacent pages in pixels | +
---|---|
columnMarginPx + | horizontal distance between adjacent pages in pixels + | +
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. +
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.
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. + | +
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 | +
Convenience class for listening for Animator events that implements the AnimatorListener + interface and allows extending only methods that are necessary. +
+ + + + + +Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ Called when the animation finishes.
+
+
+
+
+
+ | |||||||||||
+ Provides information if the animation was cancelled.
+
+
+
+
+
+ |
+ [Expand]
+ Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+
+From class
+
+ java.lang.Object
+
+
+
+
+
+
+ | |||||||||||
+
+From interface
+
+ android.animation.Animator.AnimatorListener
+
+
+
+
+
+
+ |
Called when the animation finishes. Not called if the animation was canceled. +
Provides information if the animation was cancelled.
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 | +
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.
+ + + + + + +Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
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 | +
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.
+
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
WatchViewStub.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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ Inflate the appropriate child layout for the last known container.
+
+
+
+
+
+ | |||||||||||
+ Set a listener to be notified when one of the specified sub-layouts is inflated into
+ this stub container.
+
+
+
+
+
+ | |||||||||||
+ Set a layout resource to be inflated when this stub is within a rectangular container.
+
+
+
+
+
+ | |||||||||||
+ Set a layout resource to be inflated when this stub is within a round container.
+
+
+
+
+
+ |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ [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
+
+
+
+
+
+
+ |
Inflate the appropriate child layout for the last known container. +
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.
listener + | Listener to notify + | +
---|
Set a layout resource to be inflated when this stub is within a rectangular container.
resId + | Resource id of a child layout to inflate + | +
---|
Set a layout resource to be inflated when this stub is within a round container.
resId + | Resource id of a child layout to inflate + | +
---|
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 | +
Base class for adapters providing data for the WearableListView. For details refer to + RecyclerView.Adapter. +
+ + + + + +Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ [Expand]
+ Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+
+From class
+
+ android.support.v7.widget.RecyclerView.Adapter
+
+
+
+
+
+
+ | |||||||||||
+
+From class
+
+ java.lang.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.
android.support.wearable.view.WearableListView.ClickListener | +
Interface for listening for click events on WearableListView. +
+ + + + + +Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ Called when the central child of the WearableListView is tapped.
+
+
+
+
+
+ | |||||||||||
+ Called when the user taps the top third of the WearableListView and no item is present
+ there.
+
+
+
+
+
+ |
Called when the central child of the WearableListView is tapped.
view + | View that was clicked. + | +
---|
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. +
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 | +
Interface for receiving callbacks when WearableListView children become or cease to be the + central item. +
+ + + + + +Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ Called when this view becomes central item of the WearableListView.
+
+
+
+
+
+ | |||||||||||
+ Called when this view stops being the central item of the WearableListView.
+
+
+
+
+
+ |
Called when this view becomes central item of the WearableListView.
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. + | +
---|
Called when this view stops being the central item of the WearableListView.
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. + | +
---|
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 | +
Interface for listening to WearableListView content scrolling. +
+ + + + + +Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ Called when the content is scrolled, reporting the absolute scroll value.
+
+
+
+
+
+ | |||||||||||
+ Called when the central item of the WearableListView changes.
+
+
+
+
+
+ | |||||||||||
+ Called when the content is scrolled, reporting the relative scroll value.
+
+
+
+
+
+ | |||||||||||
+ Called when WearableListView's scroll state changes.
+
+
+
+
+
+ |
Called when the content is scrolled, reporting the absolute scroll value.
scroll + | Absolute scroll position of the content inside the WearableListView. + | +
---|
Called when the central item of the WearableListView changes.
centralPosition + | Position of the item in the Adapter. + | +
---|
Called when the content is scrolled, reporting the relative scroll value.
scroll + | Amount the content was scrolled. This is a delta from the previous + position to the new position. + | +
---|
Called when WearableListView's scroll state changes.
scrollState + | The updated scroll state. One of SCROLL_STATE_IDLE ,
+ SCROLL_STATE_DRAGGING or SCROLL_STATE_SETTLING .
+ |
+
---|
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 | +
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.
+
+ [Expand]
+ Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+
+ From class
+android.support.v7.widget.RecyclerView.ViewHolder
+
+
+
+
+
+ |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ [Expand]
+ Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+
+From class
+
+ android.support.v7.widget.RecyclerView.ViewHolder
+
+
+
+
+
+
+ | |||||||||||
+
+From class
+
+ java.lang.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.view.View | +|||
+ + | ↳ | + +android.view.ViewGroup | +||
+ + | + + | ↳ | + +android.support.v7.widget.RecyclerView | +|
+ + | + + | + + | ↳ | + +android.support.wearable.view.WearableListView | +
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.
+
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
WearableListView.Adapter | ++ Base class for adapters providing data for the WearableListView. + + + + | +||||||||||
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. + + + + | +||||||||||
WearableListView.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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ Adds a listener that will be called when the content of the list view is scrolled.
+
+
+
+
+
+ | |||||||||||
+ Automatically starts an animation that snaps the list to center on the element closest to the
+ middle.
+
+
+
+
+
+ | |||||||||||
+ Removes listener for scroll events.
+
+
+
+
+
+ | |||||||||||
+ Clears the state of the layout manager that positions list items.
+
+
+
+
+
+ | |||||||||||
+ Adds a listener that will be called when the user taps on the WearableListView or its items.
+
+
+
+
+
+ | |||||||||||
+ Controls whether WearableListView should intercept all touch events and also prevent the
+ parent from receiving them.
+
+
+
+
+
+ | |||||||||||
+ 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
+
+
+
+
+
+
+ |
Adds a listener that will be called when the content of the list view is scrolled. +
Automatically starts an animation that snaps the list to center on the element closest to the + middle. +
Removes listener for scroll events. +
Clears the state of the layout manager that positions list items. +
Adds a listener that will be called when the user taps on the WearableListView or its items. +
Controls whether WearableListView should intercept all touch events and also prevent the + parent from receiving them.
greedy + | If true it will intercept all touch events. + | +
---|
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.
top + | How far the elements should be pushed down. + | +
---|
Note: The Wearable Support Library classes under the android.support.wearable
package are subject to change. For the full Android API reference, see Reference.
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. + + + + | +
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. + + + + | +
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 | +
The actual implementation of a watch face that draws on a Canvas
. You must implement
+ onCreateEngine()
to return your concrete Engine
+ implementation.
+
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ Schedules a call to
+
+ onDraw(Canvas, Rect) to draw the next frame.
+
+
+
+ | |||||||||||
+ Draws the watch face.
+
+
+
+
+
+ | |||||||||||
+ 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
+
+
+
+
+
+
+ |
Schedules a call to onDraw(Canvas, Rect)
to draw the next frame. Must be called on the main
+ thread.
+
Draws the watch face.
canvas + | the canvas to draw into | +
---|---|
bounds + | the bounds in which the watch face should be drawn + | +
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.
+
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 | +
Base class for watch faces that draw on a Canvas
. Provides an invalidate mechanism
+ similar to invalidate()
.
+
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CanvasWatchFaceService.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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ [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
+
+
+
+
+
+
+ |
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 | +
The actual implementation of a watch face that draws using OpenGL ES 2.0. You must implement
+ onCreateEngine()
to return your concrete Engine
+ implementation.
+
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ Schedules a call to
+
+ onDraw() to draw the next frame.
+
+
+
+ | |||||||||||
+ Draws the watch face.
+
+
+
+
+
+ | |||||||||||
+ Called when a new GL context is created.
+
+
+
+
+
+ | |||||||||||
+ Called when a new GL surface is created.
+
+
+
+
+
+ | |||||||||||
+ 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
+
+
+
+
+
+
+ |
Schedules a call to onDraw()
to draw the next frame. Must be called on the main
+ thread.
+
Draws the watch face. It's safe to use GL APIs in this method. +
Called when a new GL context is created. It's safe to use GL APIs in this method. +
Called when a new GL surface is created. It's safe to use GL APIs in this method.
width + | width of surface in pixels | +
---|---|
height + | height of surface in pixels + | +
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.
+
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 | +
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. +
+ + + + + +Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gles2WatchFaceService.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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ [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
+
+
+
+
+
+
+ |
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
+
+
+
+
+
+
+ CanvasWatchFaceService.Engine,
+
+ Gles2WatchFaceService.Engine
+
+
+
+
+ |
The actual implementation of a watch face. You must implement
+ onCreateEngine()
to return your concrete Engine implementation.
+
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ Returns interruption filter selected by the user.
+
+
+
+
+
+ | |||||||||||
+ Returns the location of the first peeking card.
+
+
+
+
+
+ | |||||||||||
+ Returns the number of unread notification cards in the stream.
+
+
+
+
+
+ | |||||||||||
+ Returns whether the watch face is in ambient mode.
+
+
+
+
+
+ | |||||||||||
+ Called when the device enters or exits ambient mode.
+
+
+
+
+
+ | |||||||||||
+ Called when the user changes interruption filter.
+
+
+
+
+
+ | |||||||||||
+ Called when the first, peeking card positions itself on the screen.
+
+
+
+
+
+ | |||||||||||
+ Called when the properties of the device are determined.
+
+
+
+
+
+ | |||||||||||
+ Called periodically in ambient mode to update the time shown by the watch face.
+
+
+
+
+
+ | |||||||||||
+ Called when the number of unread notification cards in the stream has changed.
+
+
+
+
+
+ | |||||||||||
+ Called to inform you of the watch face becoming visible or hidden.
+
+
+
+
+
+ | |||||||||||
+ Sets the watch face style.
+
+
+
+
+
+ |
+ [Expand]
+ Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+
+From class
+
+ android.service.wallpaper.WallpaperService.Engine
+
+
+
+
+
+
+ | |||||||||||
+
+From class
+
+ java.lang.Object
+
+
+
+
+
+
+ |
Returns interruption filter selected by the user.
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. +
Returns the number of unread notification cards in the stream. +
Returns whether the watch face is in ambient mode. When true, the watch face should + display in white on black. +
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. +
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
.
+
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. +
Called when the properties of the device are determined. These include
+ PROPERTY_BURN_IN_PROTECTION
and PROPERTY_LOW_BIT_AMBIENT
.
properties + | a bundle containing the hardware properties + | +
---|
Called periodically in ambient mode to update the time shown by the watch face. This + method is called at least once per minute. +
Called when the number of unread notification cards in the stream has changed.
count + | number of the notification cards in the stream that haven't yet been seen by + the user + | +
---|
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.
+
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.
+
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
+
+
+
+
+
+
+ CanvasWatchFaceService,
+
+ Gles2WatchFaceService
+
+
+
+
+ |
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:
onTimeTick()
to update the time in ambient mode and refresh the view
+ onAmbientModeChanged(boolean)
to update ambient mode and refresh the view
+ 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 +
+ + + + + +Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
WatchFaceService.Engine | ++ The actual implementation of a watch face. + + + + | +
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | +INTERRUPTION_FILTER_ALL | +
+ Returned by getInterruptionFilter() and passed to
+ onInterruptionFilterChanged(int) .
+
+
+
+ |
+ |||||||||
int | +INTERRUPTION_FILTER_NONE | +
+ Returned by getInterruptionFilter() and passed to
+ onInterruptionFilterChanged(int) .
+
+
+
+ |
+ |||||||||
int | +INTERRUPTION_FILTER_PRIORITY | +
+ Returned by getInterruptionFilter() and passed to
+ onInterruptionFilterChanged(int) .
+
+
+
+ |
+ |||||||||
String | +PROPERTY_BURN_IN_PROTECTION | +
+ Property in bundle passed to onPropertiesChanged(Bundle) to indicate whether burn-in
+ protection is required.
+
+
+
+ |
+ |||||||||
String | +PROPERTY_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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ [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
+
+
+
+
+
+
+ |
Returned by getInterruptionFilter()
and passed to
+ onInterruptionFilterChanged(int)
. This value means that the user requested to see
+ all notifications.
+
Returned by getInterruptionFilter()
and passed to
+ onInterruptionFilterChanged(int)
. This value means that the user requested not to
+ see any notifications.
+
Returned by getInterruptionFilter()
and passed to
+ onInterruptionFilterChanged(int)
. This value means that the user requested to see
+ only high priority notifications.
+
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.
+
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.
+
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 | +
Builder for WatchFaceStyle objects. +
+ + + + + +Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ Constructs read only WatchFaceStyle object.
+
+
+
+
+
+ | |||||||||||
+ Sets how the first, peeking card will be displayed while the watch is in ambient,
+ black & white mode.
+
+
+
+
+
+ | |||||||||||
+ Set how to display background of the first, peeking card.
+
+
+
+
+
+ | |||||||||||
+ Sets how far into the screen the first card will peek while the watch face is displayed.
+
+
+
+
+
+ | |||||||||||
+ Sets position of hotword (OK Google) on the screen.
+
+
+
+
+
+ | |||||||||||
+ Sets whether the first, peeking card should be opaque when the watch face is displayed.
+
+
+
+
+
+ | |||||||||||
+ Sets if the system will draw the system-style time over the watch face.
+
+
+
+
+
+ | |||||||||||
+ Sets whether to add an indicator of how many unread cards there are in the stream.
+
+
+
+
+
+ | |||||||||||
+ Sets position of status icons (battery state, lack of connection) on the screen.
+
+
+
+
+
+ | |||||||||||
+ 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
+
+
+
+
+
+
+ |
Constructs read only WatchFaceStyle object. +
Sets how the first, peeking card will be displayed while the watch is in ambient, + black & white mode.
ambientPeekMode + | must be either AMBIENT_PEEK_MODE_VISIBLE or
+ AMBIENT_PEEK_MODE_HIDDEN
+ |
+
---|
Set how to display background of the first, peeking card.
backgroundVisibility + | must be either BACKGROUND_VISIBILITY_INTERRUPTIVE or
+ BACKGROUND_VISIBILITY_PERSISTENT
+ |
+
---|
Sets how far into the screen the first card will peek while the watch face is displayed.
peekMode + | must be either PEEK_MODE_VARIABLE or PEEK_MODE_SHORT + | +
---|
Sets position of hotword (OK Google) on the screen.
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.
+ |
+
---|
Sets whether the first, peeking card should be opaque when the watch face is displayed.
peekOpacityMode + | must be either PEEK_OPACITY_MODE_OPAQUE or
+ PEEK_OPACITY_MODE_TRANSLUCENT
+ |
+
---|
Sets if the system will draw the system-style time over the watch face.
showSystemUiTime + | Set this to false if you already draw or clearly represent the + time on your watch face. + | +
---|
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).
show + | if true an indicator will be shown + | +
---|
Sets position of status icons (battery state, lack of connection) on the screen.
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.
+ |
+
---|
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.
viewProtection + | must be any combination of PROTECT_STATUS_BAR ,
+ PROTECT_HOTWORD_INDICATOR and
+ PROTECT_WHOLE_SCREEN , e.g. PROTECT_STATUS_BAR |
+ PROTECT_HOTWORD_INDICATOR
+ |
+
---|
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 | +
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
.
+
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
WatchFaceStyle.Builder | ++ Builder for WatchFaceStyle objects. + + + + | +
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | +AMBIENT_PEEK_MODE_HIDDEN | ++ When this ambient mode is selected, the peek card will be hidden in ambient. + + + + | +|||||||||
int | +AMBIENT_PEEK_MODE_VISIBLE | ++ When this ambient mode is selected, the peek card will be shown in ambient. + + + + | +|||||||||
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. + + + + | +|||||||||
int | +BACKGROUND_VISIBILITY_PERSISTENT | ++ When this background visibility is selected, the background of the peek card should always + be shown. + + + + | +|||||||||
int | +PEEK_MODE_SHORT | ++ When this peek mode is selected, peek cards will be a single line tall. + + + + | +|||||||||
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. + + + + | +|||||||||
int | +PEEK_OPACITY_MODE_OPAQUE | ++ When this peek opacity is selected, the first card will be completely opaque when peeking. + + + + | +|||||||||
int | +PEEK_OPACITY_MODE_TRANSLUCENT | ++ When this peek opacity is selected, the first card will be slightly translucent when peeking. + + + + | +|||||||||
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. + + + + | +|||||||||
int | +PROTECT_STATUS_BAR | ++ Whether to put a semi-transparent black background behind the status bar to make it visible + on white backgrounds. + + + + | +|||||||||
int | +PROTECT_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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR | ++ + + + + | +
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
+ Controls how the first, peeking card will be displayed while the watch is in ambient,
+ black & white mode.
+
+
+
+
+
+ | |||||||||||
+ Controls displaying background of the first, peeking card.
+
+
+
+
+
+ | |||||||||||
+ Controls how far into the screen the first card will peek while the watch face is displayed.
+
+
+
+
+
+ | |||||||||||
+ The component of the watch face activity whose style is being specified.
+
+
+
+
+
+ | |||||||||||
+ Controls position of hotword (OK Google) on the screen.
+
+
+
+
+
+ | |||||||||||
+ Controls whether the first, peeking card should be opaque when the watch face is displayed.
+
+
+
+
+
+ | |||||||||||
+ If true, the system will draw the system-style time over the watch face.
+
+
+
+
+
+ | |||||||||||
+ Whether to add an indicator of how many unread cards there are in the stream.
+
+
+
+
+
+ | |||||||||||
+ Controls position of status icons (battery state, lack of connection) on the screen.
+
+
+
+
+
+ | |||||||||||
+ Allows adding 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
+
+
+
+
+
+
+ | |||||||||||
+
+From interface
+
+ android.os.Parcelable
+
+
+
+
+
+
+ |
When this ambient mode is selected, the peek card will be hidden in ambient. +
When this ambient mode is selected, the peek card will be shown in ambient. This is the + default mode. +
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. +
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. +
When this peek mode is selected, peek cards will be a single line tall. +
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. +
When this peek opacity is selected, the first card will be completely opaque when peeking. + This is the default mode. +
When this peek opacity is selected, the first card will be slightly translucent when peeking. +
Whether to put a semi-transparent black background behind the "Ok Google" string to make it + visible on a white background. +
Whether to put a semi-transparent black background behind the status bar to make it visible + on white backgrounds. +
Whether to dim the entire watch face background slightly so the time and icons are always + visible. +
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.
+
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.
+
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.
+
The component of the watch face activity whose style is being specified. +
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.
+
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.
+
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. +
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. +
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.
+
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.
+
Note: The Wearable Support Library classes under the android.support.wearable
package are subject to change. For the full Android API reference, see Reference.
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. + + + + | +
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 | ++ |
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 69e57ca27ecb61f684a8ca04986eca06c37651f4..1d0e49bd4d1d560fe5af0ec4266613ad4231a36c 100644 --- a/docs/html/training/wearables/apps/layouts.jd +++ b/docs/html/training/wearables/apps/layouts.jd @@ -142,9 +142,9 @@ dependencies {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.
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.
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.