类 PopupIndicator


  • public class PopupIndicator
    extends java.lang.Object
    Class to manage the floating bubble thing, similar (but quite worse tested than PopupWindow This will attach a View to the Window (full-width, measured-height, positioned just under the thumb)
    另请参阅:
    showIndicator(View, Rect), dismiss(), dismissComplete(), PopupIndicator.Floater
    • 构造器概要

      构造器 
      构造器 说明
      PopupIndicator​(android.content.Context context, android.util.AttributeSet attrs, int defStyleAttr, java.lang.String maxValue, int thumbSize, int separation)  
    • 构造器详细资料

      • PopupIndicator

        public PopupIndicator​(android.content.Context context,
                              android.util.AttributeSet attrs,
                              int defStyleAttr,
                              java.lang.String maxValue,
                              int thumbSize,
                              int separation)
    • 方法详细资料

      • updateSizes

        public void updateSizes​(java.lang.String maxValue)
      • setValue

        public void setValue​(java.lang.CharSequence value)
      • isShowing

        public boolean isShowing()
      • showIndicator

        public void showIndicator​(android.view.View parent,
                                  android.graphics.Rect touchBounds)
      • move

        public void move​(int x)
      • setColors

        public void setColors​(int startColor,
                              int endColor)
      • dismiss

        public void dismiss()
        This will start the closing animation of the Marker and call onClosingComplete when finished
      • dismissComplete

        public void dismissComplete()
        FORCE the popup window to be removed. You typically calls this when the parent view is being removed from the window to avoid a Window Leak