Skip to content

Most visited

Recently visited

navigation

SpeechOrbView

public class SpeechOrbView
extends SearchOrbView

java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.FrameLayout
         ↳ android.support.v17.leanback.widget.SearchOrbView
           ↳ android.support.v17.leanback.widget.SpeechOrbView


A subclass of SearchOrbView that visualizes the state of an ongoing speech recognition.

Summary

Inherited XML attributes

From class android.widget.FrameLayout
From class android.view.ViewGroup
From class android.view.View

Inherited constants

From class android.view.ViewGroup
From class android.view.View

Inherited fields

From class android.view.View

Public constructors

SpeechOrbView(Context context)
SpeechOrbView(Context context, AttributeSet attrs)
SpeechOrbView(Context context, AttributeSet attrs, int defStyle)

Public methods

void setListeningOrbColors(SearchOrbView.Colors colors)

Sets default listening state orb color.

void setNotListeningOrbColors(SearchOrbView.Colors colors)

Sets default not-listening state orb color.

void setSoundLevel(int level)

Sets the sound level while listening to speech.

void showListening()

Sets the view to display listening state.

void showNotListening()

Sets the view to display the not-listening state.

Inherited methods

From class android.support.v17.leanback.widget.SearchOrbView
From class android.widget.FrameLayout
From class android.view.ViewGroup
From class android.view.View
From class java.lang.Object
From interface android.view.View.OnClickListener
From interface android.view.ViewParent
From interface android.view.ViewManager
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.accessibility.AccessibilityEventSource

Public constructors

SpeechOrbView

added in version 22.0.0
SpeechOrbView (Context context)

Parameters
context Context

SpeechOrbView

added in version 22.0.0
SpeechOrbView (Context context, 
                AttributeSet attrs)

Parameters
context Context

attrs AttributeSet

SpeechOrbView

added in version 22.0.0
SpeechOrbView (Context context, 
                AttributeSet attrs, 
                int defStyle)

Parameters
context Context

attrs AttributeSet

defStyle int

Public methods

setListeningOrbColors

added in version 25.1.0
void setListeningOrbColors (SearchOrbView.Colors colors)

Sets default listening state orb color.

Parameters
colors SearchOrbView.Colors: SearchOrbView.Colors.

setNotListeningOrbColors

added in version 25.1.0
void setNotListeningOrbColors (SearchOrbView.Colors colors)

Sets default not-listening state orb color.

Parameters
colors SearchOrbView.Colors: SearchOrbView.Colors.

setSoundLevel

added in version 22.0.0
void setSoundLevel (int level)

Sets the sound level while listening to speech.

Parameters
level int

showListening

added in version 22.0.0
void showListening ()

Sets the view to display listening state.

showNotListening

added in version 22.0.0
void showNotListening ()

Sets the view to display the not-listening state.

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.