MCPcopy Create free account

hub / github.com/PopFisher/SmartPopupWindow / functions

Functions144 in github.com/PopFisher/SmartPopupWindow

↓ 10 callersMethodisShowing
<p>Indicate whether this popup window is showing on screen.</p> @return true if the popup is showing, false otherwise
sourcecode/PopupWindow(7.0).java:1100
↓ 9 callersMethoddismiss
Disposes of the popup window. This method can be invoked only after {@link #showAsDropDown(android.view.View)} has been executed. Failing that, callin
sourcecode/PopupWindow(7.0).java:1800
↓ 8 callersMethodshowAsDropDown
Display the content view in a popup window anchored to the bottom-left corner of the anchor view. If there is not enough room on screen to show the po
sourcecode/PopupWindow(7.0).java:1171
↓ 7 callersMethodgetWidth
Returns the popup's requested width. May be a layout constant such as {@link LayoutParams#WRAP_CONTENT} or {@link LayoutParams#MATCH_PARENT}. <p> The
sourcecode/PopupWindow(7.0).java:1045
↓ 6 callersMethodsetContentView
<p>Change the popup's content. The content is represented by an instance of {@link android.view.View}.</p> <p>This method has no effect if called whe
sourcecode/PopupWindow(7.0).java:612
↓ 6 callersMethodshowTipPopupWindow
(final View anchorView, final View.OnClickListener onClickListener)
app/src/main/java/popup/popfisher/com/smartpopupwindow/TopBottomArrowPopupActivity.java:97
↓ 5 callersMethodcreatePopupContentView
(Context context)
app/src/main/java/popup/popfisher/com/smartpopupwindow/Android7_0PopupActivity.java:69
↓ 5 callersMethodgetHeight
Returns the popup's requested height. May be a layout constant such as {@link LayoutParams#WRAP_CONTENT} or {@link LayoutParams#MATCH_PARENT}. <p> The
sourcecode/PopupWindow(7.0).java:1013
↓ 5 callersMethodsetBackgroundDrawable
Specifies the background drawable for this popup window. The background can be set to {@code null}. @param background the popup's background @see #ge
sourcecode/PopupWindow(7.0).java:487
↓ 4 callersMethodupdate
Updates the state of the popup window, if it is currently being displayed, from the currently set state. <p> This includes: <ul> <li>{@link #setCl
sourcecode/PopupWindow(7.0).java:1947
↓ 3 callersMethodcomputeAnimationResource
()
sourcecode/PopupWindow(7.0).java:1499
↓ 3 callersMethodcomputeFlags
(int curFlags)
sourcecode/PopupWindow(7.0).java:1452
↓ 3 callersMethodcomputeGravity
()
sourcecode/PopupWindow(7.0).java:1396
↓ 3 callersMethoddetachFromAnchor
()
sourcecode/PopupWindow(7.0).java:2191
↓ 3 callersMethodfindDropDownPosition
Positions the popup window on screen. When the popup window is too tall to fit under the anchor, a parent scroll view is seeked and scrolled up to rec
sourcecode/PopupWindow(7.0).java:1526
↓ 3 callersMethodgetScreenHeight
获取屏幕高度(px)
app/src/main/java/popup/popfisher/com/smartpopupwindow/ScreenUtils.java:14
↓ 3 callersMethodsetFocusable
<p>Changes the focusability of the popup window. When focusable, the window will grab the focus from the current focused widget if the popup contains
sourcecode/PopupWindow(7.0).java:676
↓ 3 callersMethodsetLayoutDirectionFromAnchor
()
sourcecode/PopupWindow(7.0).java:1387
↓ 3 callersMethodupdateAboveAnchor
(boolean aboveAnchor)
sourcecode/PopupWindow(7.0).java:1239
↓ 2 callersMethodattachToAnchor
(View anchor, int xoff, int yoff, int gravity)
sourcecode/PopupWindow(7.0).java:2208
↓ 2 callersMethodcancelTransitions
Cancels all pending or current transitions.
sourcecode/PopupWindow(7.0).java:2386
↓ 2 callersMethodcreatePopupLayoutParams
<p>Generate the layout parameters for the popup window.</p> @param token the window token used to bind the popup's window @return the layout paramet
sourcecode/PopupWindow(7.0).java:1411
↓ 2 callersMethoddismissImmediate
Removes the popup from the window manager and tears down the supporting view hierarchy, if necessary.
sourcecode/PopupWindow(7.0).java:1905
↓ 2 callersMethodgetPopupWindowContentView
()
app/src/main/java/popup/popfisher/com/smartpopupwindow/PopupWindowMainActivity.java:34
↓ 2 callersMethodgetTransition
(int resId)
sourcecode/PopupWindow(7.0).java:453
↓ 2 callersMethodgetTransitionEpicenter
Returns the window-relative epicenter bounds to be used by enter and exit transitions. <p> <strong>Note:</strong> This is distinct from the rect passe
sourcecode/PopupWindow(7.0).java:1876
↓ 2 callersMethodinvokePopup
<p>Invoke the popup window by adding the content view to the window manager.</p> <p>The content view must be non-null when this method is invoked.</p
sourcecode/PopupWindow(7.0).java:1370
↓ 2 callersMethodisAboveAnchor
Indicates whether the popup is showing above (the y coordinate of the popup's bottom is less than the y coordinate of the anchor) or below the anchor
sourcecode/PopupWindow(7.0).java:1271
↓ 2 callersMethodonTransitionEnd
(Transition transition)
sourcecode/PopupWindow(7.0).java:1849
↓ 2 callersMethodpreparePopup
Prepare the popup by embedding it into a new ViewGroup if the background drawable is not null. If embedding is required, the layout parameters' height
sourcecode/PopupWindow(7.0).java:1282
↓ 2 callersMethodsetHeight
Sets the popup's requested height. May be a layout constant such as {@link LayoutParams#WRAP_CONTENT} or {@link LayoutParams#MATCH_PARENT}. <p> The ac
sourcecode/PopupWindow(7.0).java:1031
↓ 2 callersMethodsetOutsideTouchable
<p>Controls whether the pop-up will be informed of touch events outside of its window. This only makes sense for pop-ups that are touchable but not f
sourcecode/PopupWindow(7.0).java:789
↓ 2 callersMethodsetWidth
Sets the popup's requested width. May be a layout constant such as {@link LayoutParams#WRAP_CONTENT} or {@link LayoutParams#MATCH_PARENT}. <p> The act
sourcecode/PopupWindow(7.0).java:1063
↓ 2 callersMethodshowAtLocation
<p> Display the content view in a popup window at the specified location. If the popup window cannot fit on screen, it will be clipped. See {@link and
sourcecode/PopupWindow(7.0).java:1118
↓ 2 callersMethodtryFitHorizontal
(@NonNull LayoutParams outParams, int xOffset, int width, int anchorWidth, int drawingLocationX, i
sourcecode/PopupWindow(7.0).java:1666
↓ 2 callersMethodtryFitVertical
(@NonNull LayoutParams outParams, int yOffset, int height, int anchorHeight, int drawingLocationY,
sourcecode/PopupWindow(7.0).java:1604
↓ 2 callersMethodupdatePopupPos
()
app/src/main/java/popup/popfisher/com/smartpopupwindow/ScreenChangeUpdatePopupActivity.java:67
↓ 1 callersMethodautoAdjustArrowPos
(PopupWindow popupWindow, View contentView, View anchorView)
app/src/main/java/popup/popfisher/com/smartpopupwindow/TopBottomArrowPopupActivity.java:147
↓ 1 callersMethodbindViewListeners
()
app/src/main/java/popup/popfisher/com/smartpopupwindow/PopupWindowMainActivity.java:113
↓ 1 callersMethodcalculatePopWindowPos
计算出来的位置,y方向就在anchorView的上面和下面对齐显示,x方向就是与屏幕右边对齐显示 如果anchorView的位置有变化,就可以适当自己额外加入偏移来修正 @param anchorView 呼出window的view @param contentView window的内容布局
app/src/main/java/popup/popfisher/com/smartpopupwindow/PopupWindowUtil.java:17
↓ 1 callersMethodcreateBackgroundView
Wraps a content view in a PopupViewContainer. @param contentView the content view to wrap @return a PopupViewContainer that wraps the content view
sourcecode/PopupWindow(7.0).java:1322
↓ 1 callersMethodcreateDecorView
Wraps a content view in a FrameLayout. @param contentView the content view to wrap @return a FrameLayout that wraps the content view
sourcecode/PopupWindow(7.0).java:1345
↓ 1 callersMethodgetPopupWindowContentView
()
app/src/main/java/popup/popfisher/com/smartpopupwindow/CustomPosPopupActivity.java:29
↓ 1 callersMethodgetScreenWidth
获取屏幕宽度(px)
app/src/main/java/popup/popfisher/com/smartpopupwindow/ScreenUtils.java:20
↓ 1 callersMethodinitView
()
app/src/main/java/popup/popfisher/com/smartpopupwindow/PopupWindowMainActivity.java:104
↓ 1 callersMethodinitView
()
app/src/main/java/popup/popfisher/com/smartpopupwindow/CustomPosPopupActivity.java:63
↓ 1 callersMethodisSplitTouchEnabled
<p>Indicates whether the popup window supports splitting touches.</p> @return true if the touch splitting is enabled, false otherwise @see #setSplit
sourcecode/PopupWindow(7.0).java:849
↓ 1 callersMethodonDismiss
Called when this popup window is dismissed.
sourcecode/PopupWindow(7.0).java:2188
↓ 1 callersMethodonTouch
(View v, MotionEvent event)
app/src/main/java/popup/popfisher/com/smartpopupwindow/TopBottomArrowPopupActivity.java:136
↓ 1 callersMethodpositionInDisplayHorizontal
(@NonNull LayoutParams outParams, int width, int drawingLocationX, int screenLocationX, int displa
sourcecode/PopupWindow(7.0).java:1684
↓ 1 callersMethodpositionInDisplayVertical
(@NonNull LayoutParams outParams, int height, int drawingLocationY, int screenLocationY, int displ
sourcecode/PopupWindow(7.0).java:1633
↓ 1 callersMethodrequestEnterTransition
Requests that an enter transition run after the next layout pass.
sourcecode/PopupWindow(7.0).java:2289
↓ 1 callersMethodsetAttachedInDecor
<p>This will attach the popup window to the decor frame of the parent window to avoid overlaping with screen decorations like the navigation bar. Over
sourcecode/PopupWindow(7.0).java:921
↓ 1 callersMethodsetElevation
Specifies the elevation for this popup window. @param elevation the popup's elevation in pixels @see #getElevation() @attr ref android.R.styleable#Po
sourcecode/PopupWindow(7.0).java:544
↓ 1 callersMethodsetEnterTransition
Sets the enter transition to be used when the popup window is shown. @param enterTransition the enter transition, or {@code null} to clear @see #getE
sourcecode/PopupWindow(7.0).java:394
↓ 1 callersMethodsetExitTransition
Sets the exit transition to be used when the popup window is dismissed. @param exitTransition the exit transition, or {@code null} to clear @see #get
sourcecode/PopupWindow(7.0).java:417
↓ 1 callersMethodsetTouchInterceptor
Set a callback for all touch events being dispatched to the popup window.
sourcecode/PopupWindow(7.0).java:645
↓ 1 callersMethodsetTouchable
<p>Changes the touchability of the popup window. When touchable, the window will receive touch events, otherwise touch events will go to the window be
sourcecode/PopupWindow(7.0).java:756
↓ 1 callersMethodshowPopupWindow
(View anchorView)
app/src/main/java/popup/popfisher/com/smartpopupwindow/CustomPosPopupActivity.java:50
↓ 1 callersMethodshowTipPopupWindow1
(final View anchorView)
app/src/main/java/popup/popfisher/com/smartpopupwindow/Android7_0PopupActivity.java:75
↓ 1 callersMethodshowTipPopupWindow2
(final View anchorView)
app/src/main/java/popup/popfisher/com/smartpopupwindow/Android7_0PopupActivity.java:84
↓ 1 callersMethodshowTipPopupWindow3
(final View anchorView)
app/src/main/java/popup/popfisher/com/smartpopupwindow/Android7_0PopupActivity.java:95
↓ 1 callersMethodshowTipPopupWindow4
(final View anchorView)
app/src/main/java/popup/popfisher/com/smartpopupwindow/Android7_0PopupActivity.java:104
↓ 1 callersMethodshowTipPopupWindow5
(final View anchorView)
app/src/main/java/popup/popfisher/com/smartpopupwindow/Android7_0PopupActivity.java:116
↓ 1 callersMethodstartEnterTransition
Starts the pending enter transition, if one is set.
sourcecode/PopupWindow(7.0).java:2319
↓ 1 callersMethodstartExitTransition
Starts an exit transition immediately. <p> <strong>Note:</strong> The transition listener is guaranteed to have its {@code onTransitionEnd} method cal
sourcecode/PopupWindow(7.0).java:2342
↓ 1 callersMethodtestPopupWindowType1
()
app/src/main/java/popup/popfisher/com/smartpopupwindow/PopupWindowMainActivity.java:55
↓ 1 callersMethodtestPopupWindowType2
()
app/src/main/java/popup/popfisher/com/smartpopupwindow/PopupWindowMainActivity.java:71
↓ 1 callersMethodtestPopupWindowType3
()
app/src/main/java/popup/popfisher/com/smartpopupwindow/PopupWindowMainActivity.java:84
↓ 1 callersMethodtestPopupWindowType4
()
app/src/main/java/popup/popfisher/com/smartpopupwindow/PopupWindowMainActivity.java:89
↓ 1 callersMethodtestPopupWindowType5
()
app/src/main/java/popup/popfisher/com/smartpopupwindow/PopupWindowMainActivity.java:94
↓ 1 callersMethodtestPopupWindowType6
()
app/src/main/java/popup/popfisher/com/smartpopupwindow/PopupWindowMainActivity.java:99
↓ 1 callersMethodupdatePopupWindow5
(final View anchorView)
app/src/main/java/popup/popfisher/com/smartpopupwindow/Android7_0PopupActivity.java:129
MethodPopupBackgroundView
(Context context)
sourcecode/PopupWindow(7.0).java:2409
MethodPopupDecorView
(Context context)
sourcecode/PopupWindow(7.0).java:2231
MethodPopupWindow
<p>Create a new empty, non focusable popup window of dimension (0,0).</p> <p>The popup does provide a background.</p>
sourcecode/PopupWindow(7.0).java:242
MethoddispatchKeyEvent
(KeyEvent event)
sourcecode/PopupWindow(7.0).java:2235
MethoddispatchTouchEvent
(MotionEvent ev)
sourcecode/PopupWindow(7.0).java:2261
Methoddp2px
(Context context, float dp)
app/src/main/java/popup/popfisher/com/smartpopupwindow/ScreenUtils.java:24
MethodgetAnimationStyle
<p>Return the animation style to use the popup appears and disappears</p> @return the animation style to use the popup appears and disappears
sourcecode/PopupWindow(7.0).java:553
MethodgetBackground
Return the drawable used as the popup window's background. @return the background drawable or {@code null} if not set @see #setBackgroundDrawable(Dra
sourcecode/PopupWindow(7.0).java:475
MethodgetContentView
<p>Return the view used as the content of the popup window.</p> @return a {@link android.view.View} representing the popup's content @see #setConten
sourcecode/PopupWindow(7.0).java:597
MethodgetCount
()
app/src/main/java/popup/popfisher/com/smartpopupwindow/CustomPosPopupActivity.java:69
MethodgetElevation
@return the elevation for this popup window in pixels @see #setElevation(float) @attr ref android.R.styleable#PopupWindow_popupElevation
sourcecode/PopupWindow(7.0).java:533
MethodgetEnterTransition
Returns the enter transition to be used when the popup window is shown. @return the enter transition, or {@code null} if not set @see #setEnterTransi
sourcecode/PopupWindow(7.0).java:405
MethodgetExitTransition
Returns the exit transition to be used when the popup window is dismissed. @return the exit transition, or {@code null} if not set @see #setExitTrans
sourcecode/PopupWindow(7.0).java:429
MethodgetInputMethodMode
Return the current value in {@link #setInputMethodMode(int)}. @see #setInputMethodMode(int)
sourcecode/PopupWindow(7.0).java:685
MethodgetItem
(int position)
app/src/main/java/popup/popfisher/com/smartpopupwindow/CustomPosPopupActivity.java:74
MethodgetItemId
(int position)
app/src/main/java/popup/popfisher/com/smartpopupwindow/CustomPosPopupActivity.java:79
MethodgetMaxAvailableHeight
Returns the maximum height that is available for the popup to be completely shown. It is recommended that this height be the maximum for the popup's h
sourcecode/PopupWindow(7.0).java:1727
MethodgetOverlapAnchor
Returns whether the popup window should overlap its anchor view when displayed as a drop-down. @return Whether the popup should overlap its anchor.
sourcecode/PopupWindow(7.0).java:1091
MethodgetSoftInputMode
Returns the current value in {@link #setSoftInputMode(int)}. @see #setSoftInputMode(int) @see android.view.WindowManager.LayoutParams#softInputMode
sourcecode/PopupWindow(7.0).java:726
MethodgetView
(int position, View convertView, ViewGroup parent)
app/src/main/java/popup/popfisher/com/smartpopupwindow/CustomPosPopupActivity.java:84
MethodgetWindowLayoutType
Returns the layout type for this window. @see #setWindowLayoutType(int)
sourcecode/PopupWindow(7.0).java:960
MethodinitViewListener
()
app/src/main/java/popup/popfisher/com/smartpopupwindow/ScreenChangeUpdatePopupActivity.java:55
MethodisAttachedInDecor
<p>Indicates whether the popup window will be attached in the decor frame of its parent window. @return true if the window will be attached to the de
sourcecode/PopupWindow(7.0).java:905
MethodisClippingEnabled
<p>Indicates whether clipping of the popup window is enabled.</p> @return true if the clipping is enabled, false otherwise @see #setClippingEnabled(
sourcecode/PopupWindow(7.0).java:800
MethodisFocusable
<p>Indicate whether the popup window can grab the focus.</p> @return true if the popup is focusable, false otherwise @see #setFocusable(boolean)
sourcecode/PopupWindow(7.0).java:656
MethodisLayoutInScreenEnabled
<p>Indicates whether the popup window will be forced into using absolute screen coordinates for positioning.</p> @return true if the window will alwa
sourcecode/PopupWindow(7.0).java:880
MethodisOutsideTouchable
<p>Indicates whether the popup window will be informed of touch events outside of its window.</p> @return true if the popup is outside touchable, fal
sourcecode/PopupWindow(7.0).java:768
next →1–100 of 144, ranked by callers