Class TextViewHandler


  • public class TextViewHandler
    extends android.os.Handler
    A Handler to set the TextView on separate thread.
    See Also:
    ImageView.setImageDrawable(Drawable), ImageView.setImageBitmap(Bitmap)
    • Nested Class Summary

      • Nested classes/interfaces inherited from class android.os.Handler

        android.os.Handler.Callback
    • Constructor Summary

      Constructors 
      Constructor Description
      TextViewHandler​(android.widget.TextView textView)
      Constructor to initialize an object of this class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      android.widget.TextView getTextView()
      Returns the text view used by this handler.
      void handleMessage​(android.os.Message msg)  
      • Methods inherited from class android.os.Handler

        createAsync, createAsync, dispatchMessage, dump, getLooper, getMessageName, hasCallbacks, hasMessages, hasMessages, obtainMessage, obtainMessage, obtainMessage, obtainMessage, obtainMessage, post, postAtFrontOfQueue, postAtTime, postAtTime, postDelayed, postDelayed, removeCallbacks, removeCallbacks, removeCallbacksAndMessages, removeMessages, removeMessages, sendEmptyMessage, sendEmptyMessageAtTime, sendEmptyMessageDelayed, sendMessage, sendMessageAtFrontOfQueue, sendMessageAtTime, sendMessageDelayed, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • TextViewHandler

        public TextViewHandler​(@Nullable
                               android.widget.TextView textView)
        Constructor to initialize an object of this class.
        Parameters:
        textView - The text view to be used.
    • Method Detail

      • handleMessage

        public void handleMessage​(@NonNull
                                  android.os.Message msg)
        Overrides:
        handleMessage in class android.os.Handler
      • getTextView

        @Nullable
        public android.widget.TextView getTextView()
        Returns the text view used by this handler.
        Returns:
        The text view used by this handler.