Class ShadowTextView

    • Field Detail

      • selectionStart

        protected int selectionStart
      • selectionEnd

        protected int selectionEnd
    • Constructor Detail

      • ShadowTextView

        public ShadowTextView()
    • Method Detail

      • setTextAppearance

        @Implementation
        protected void setTextAppearance​(android.content.Context context,
                                         int resid)
      • onKeyDown

        @Implementation
        protected boolean onKeyDown​(int keyCode,
                                    android.view.KeyEvent event)
      • onKeyUp

        @Implementation
        protected boolean onKeyUp​(int keyCode,
                                  android.view.KeyEvent event)
      • getPreviousKeyCode

        public int getPreviousKeyCode​(int index)
      • getPreviousKeyEvent

        public android.view.KeyEvent getPreviousKeyEvent​(int index)
      • innerText

        public java.lang.String innerText()
        Returns the text string of this TextView. Robolectric extension.
        Overrides:
        innerText in class ShadowView
        Returns:
        String representation of this view.
      • getTextAppearanceId

        public int getTextAppearanceId()
      • addTextChangedListener

        @Implementation
        protected void addTextChangedListener​(android.text.TextWatcher watcher)
      • removeTextChangedListener

        @Implementation
        protected void removeTextChangedListener​(android.text.TextWatcher watcher)
      • getWatchers

        public java.util.List<android.text.TextWatcher> getWatchers()
        Returns:
        the list of currently registered watchers/listeners
      • getTextServicesLocale

        @HiddenApi
        @Implementation
        public java.util.Locale getTextServicesLocale()
      • dumpAttributes

        protected void dumpAttributes​(java.io.PrintStream out)
        Overrides:
        dumpAttributes in class ShadowView
      • getPaintFlags

        @Implementation
        protected int getPaintFlags()
      • setPaintFlags

        @Implementation
        protected void setPaintFlags​(int paintFlags)
      • setOnEditorActionListener

        @Implementation
        protected void setOnEditorActionListener​(android.widget.TextView.OnEditorActionListener l)
      • getOnEditorActionListener

        public android.widget.TextView.OnEditorActionListener getOnEditorActionListener()
      • setCompoundDrawablesWithIntrinsicBounds

        @Implementation
        protected void setCompoundDrawablesWithIntrinsicBounds​(int left,
                                                               int top,
                                                               int right,
                                                               int bottom)
      • getCompoundDrawablesWithIntrinsicBoundsLeft

        public int getCompoundDrawablesWithIntrinsicBoundsLeft()
      • getCompoundDrawablesWithIntrinsicBoundsTop

        public int getCompoundDrawablesWithIntrinsicBoundsTop()
      • getCompoundDrawablesWithIntrinsicBoundsRight

        public int getCompoundDrawablesWithIntrinsicBoundsRight()
      • getCompoundDrawablesWithIntrinsicBoundsBottom

        public int getCompoundDrawablesWithIntrinsicBoundsBottom()