-
public class PopupIndicatorClass to manage the floating bubble thing, similar (but quite worse tested than This will attach a View to the Window (full-width, measured-height, positioned just under the thumb)
-
-
Constructor Summary
Constructors Constructor Description PopupIndicator(Context context, AttributeSet attrs, int defStyleAttr, String maxValue, int thumbSize, int separation)
-
Method Summary
Modifier and Type Method Description voidupdateSizes(String maxValue)voidsetListener(MarkerDrawable.MarkerAnimationListener listener)voidsetValue(CharSequence value)booleanisShowing()voidshowIndicator(View parent, Rect touchBounds)voidmove(int x)voidsetColors(int startColor, int endColor)voiddismiss()This will start the closing animation of the Marker and call onClosingComplete when finished voiddismissComplete()FORCE the popup window to be removed. -
-
Constructor Detail
-
PopupIndicator
PopupIndicator(Context context, AttributeSet attrs, int defStyleAttr, String maxValue, int thumbSize, int separation)
-
-
Method Detail
-
updateSizes
void updateSizes(String maxValue)
-
setListener
void setListener(MarkerDrawable.MarkerAnimationListener listener)
-
setValue
void setValue(CharSequence value)
-
isShowing
boolean isShowing()
-
showIndicator
void showIndicator(View parent, Rect touchBounds)
-
move
void move(int x)
-
setColors
void setColors(int startColor, int endColor)
-
dismiss
void dismiss()
This will start the closing animation of the Marker and call onClosingComplete when finished
-
dismissComplete
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 aWindow Leak
-
-
-
-