类 | |
| interface | PopoverViewListener |
静态 Public 成员函数 | |
| static Rect | getFrameForView (View v) |
静态 Public 属性 | |
| static final int | PopoverArrowDirectionUp = 0x00000001 |
| static final int | PopoverArrowDirectionDown = 0x00000002 |
| static final int | PopoverArrowDirectionLeft = 0x00000004 |
| static final int | PopoverArrowDirectionRight = 0x00000008 |
| static final int | PopoverArrowDirectionAny = PopoverArrowDirectionUp|PopoverArrowDirectionDown|PopoverArrowDirectionLeft|PopoverArrowDirectionRight |
Private 成员函数 | |
| void | initPopoverView () |
| void | addPopoverInRect (Rect insertRect) |
| void | initArrow (Rect originRect, Integer arrowDirection) |
| Rect | getRectForArrowUp (Rect originRect) |
| Rect | getRectForArrowDown (Rect originRect) |
| Rect | getRectForArrowRight (Rect originRect) |
| Rect | getRectForArrowLeft (Rect originRect) |
| void | addAvailableRects (Rect originRect, int arrowDirections) |
| Integer | getBestRect () |
Private 属性 | |
| PopoverViewListener | popoverViewListener |
| RelativeLayout | popoverView |
| ViewGroup | superview |
| Point | contentSizeForViewInPopover = new Point(0, 0) |
| Point | realContentSize = new Point(0, 0) |
| Map< Integer, Rect > | possibleRects |
| boolean | isAnimating = false |
| int | fadeAnimationTime = 300 |
| Rect | popoverLayoutRect |
| Drawable | backgroundDrawable |
| Drawable | arrowUpDrawable |
| Drawable | arrowDownDrawable |
| Drawable | arrowLeftDrawable |
| Drawable | arrowRightDrawable |
| ImageView | arrowImageView = null |
| View | popoverContentView = null |
© 2012-2015 amsoft.cn 名称:AbPopoverView.java 描述:提示框
|
inline |
Constructor to create a popover with a popover view.
| context | The context where we should create the popover view |
|
inline |
Constructor to create a popover with a popover view.
| context | The context where we should create the popover view |
| attrs | Attribute set to init the view |
|
inline |
Constructor to create a popover with a popover view.
| context | The context where we should create the popover view |
| attrs | Attribute set to init the view |
| defStyle | The default style for this view |
|
inlineprivate |
Add available rects for each selected arrow direction.
| originRect | The rect where the popover will appear from |
| arrowDirections | The bit mask for the possible arrow directions |
|
inlineprivate |
Add the popover to the view with a defined rect inside the popover.
| insertRect | The rect we want to insert the view |
|
inline |
Dismiss the current shown popover.
| animated | Whether it should be dismissed animated or not |
|
inline |
Gets the arrow down drawable.
|
inline |
Gets the arrow left drawable.
|
inline |
Gets the arrow right drawable.
|
inline |
Gets the arrow up drawable.
|
inline |
Gets the background drawable.
|
inlineprivate |
Get the best available rect (bigger area).
|
inline |
Get the content size for view in popover.
|
inline |
Gets the current fade animation time.
|
inlinestatic |
Get the Rect frame for a view (relative to the Window of the application).
| v | The view to get the rect from |
|
inline |
Gets the popover content view.
|
inline |
Gets the popover view listener.
|
inlineprivate |
Calculates the rect for showing the view with Arrow Down.
| originRect | The origin rect |
|
inlineprivate |
Calculates the rect for showing the view with Arrow Left.
| originRect | The origin rect |
|
inlineprivate |
Calculates the rect for showing the view with Arrow Right.
| originRect | The origin rect |
|
inlineprivate |
Calculates the rect for showing the view with Arrow Up.
| originRect | The origin rect |
|
inlineprivate |
Inits the arrow.
| originRect | the origin rect |
| arrowDirection | the arrow direction |
|
inlineprivate |
Init the popover view.
|
inline |
|
inline |
Sets the arrow down drawable.
| arrowDownDrawable | the new arrow down drawable |
|
inline |
Sets the arrow left drawable.
| arrowLeftDrawable | the new arrow left drawable |
|
inline |
Sets the arrow right drawable.
| arrowRightDrawable | the new arrow right drawable |
|
inline |
Sets the arrow up drawable.
| arrowUpDrawable | the new arrow up drawable |
|
inline |
|
inline |
Sets the content size for the view in a popover, if point is (0,0) the popover will full the screen.
| contentSizeForViewInPopover | the new content size for view in popover |
|
inline |
Sets the fade animation time.
| fadeAnimationTime | The time in milliseconds |
|
inline |
描述:设置显示的View.
| popoverContentView | the new popover content view |
|
inline |
Sets the popover view listener.
| popoverViewListener | the new popover view listener |
|
inline |
This method shows a popover in a ViewGroup, from an origin rect (relative to the Application Window).
| group | The group we want to insert the popup. Normally a Relative Layout so it can stand on top of everything |
| originRect | The rect we want the popup to appear from (relative to the Application Window!) |
| arrowDirections | The mask of bits to tell in which directions we want the popover to be shown |
| animated | Whether is animated, or not |
|
private |
The popover arrow down drawable.
|
private |
当前显示的箭头图标.
|
private |
The popover arrow left drawable.
|
private |
The popover arrow down drawable.
|
private |
The popover arrow up drawable.
|
private |
The popover background drawable.
|
private |
The content size for the view in the popover.
|
private |
The fade animation time in milliseconds.
|
private |
Whether the view is animating or not.
|
static |
Popover arrow points any direction. Integer to use with bit operators to tell the popover where the arrow should appear and from where the popover should appear
|
static |
Popover arrow points down. Integer to use with bit operators to tell the popover where the arrow should appear and from where the popover should appear
|
static |
Popover arrow points left. Integer to use with bit operators to tell the popover where the arrow should appear and from where the popover should appear
|
static |
Popover arrow points right. Integer to use with bit operators to tell the popover where the arrow should appear and from where the popover should appear
|
static |
Popover arrow points up. Integer to use with bit operators to tell the popover where the arrow should appear and from where the popover should appear
|
private |
当前显示的提示的View.
|
private |
The layout Rect, is the same as the superview rect.
|
private |
The main popover containing the view we want to show.
|
private |
The delegate of the view.
|
private |
A hash containing.
|
private |
The real content size we will use (it considers the padding).
|
private |
The view group storing this popover. We need this so, when we dismiss the popover, we remove it from the view group
1.8.8