Join us on the livestream at Android Dev Summit on 7-8 November 2018, starting at 10AM PDT!
added in version 1.0.0
belongs to Maven artifact androidx.leanback:leanback:1.0.0

SpeechOrbView

public class SpeechOrbView
extends SearchOrbView

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


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

Summary

Inherited constants

Inherited fields

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

Public constructors

SpeechOrbView

added in version 1.0.0
public SpeechOrbView (Context context)

Parameters
context Context

SpeechOrbView

added in version 1.0.0
public SpeechOrbView (Context context, 
                AttributeSet attrs)

Parameters
context Context

attrs AttributeSet

SpeechOrbView

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

Parameters
context Context

attrs AttributeSet

defStyle int

Public methods

setListeningOrbColors

added in version 1.0.0
public void setListeningOrbColors (SearchOrbView.Colors colors)

Sets default listening state orb color.

Parameters
colors SearchOrbView.Colors: SearchOrbView.Colors.

setNotListeningOrbColors

added in version 1.0.0
public void setNotListeningOrbColors (SearchOrbView.Colors colors)

Sets default not-listening state orb color.

Parameters
colors SearchOrbView.Colors: SearchOrbView.Colors.

setSoundLevel

added in version 1.0.0
public void setSoundLevel (int level)

Sets the sound level while listening to speech.

Parameters
level int

showListening

added in version 1.0.0
public void showListening ()

Sets the view to display listening state.

showNotListening

added in version 1.0.0
public void showNotListening ()

Sets the view to display the not-listening state.