¡@

Home 

2014/10/16 ¤W¤È 08:10:14

android Programming Glossary: arrowpos

Quick dialog using onclick search view in android

http://stackoverflow.com/questions/12351670/quick-dialog-using-onclick-search-view-in-android

view. public void show View anchor preShow int xPos yPos arrowPos mDidAction false int location new int 2 anchor.getLocationOnScreen.. rootWidth anchor.getWidth xPos xPos 0 0 xPos arrowPos anchorRect.centerX xPos else if anchor.getWidth rootWidth xPos.. anchorRect.centerX rootWidth 2 else xPos anchorRect.left arrowPos anchorRect.centerX xPos int dyTop anchorRect.top int dyBottom..

Quick dialog using onclick search view in android

http://stackoverflow.com/questions/12351670/quick-dialog-using-onclick-search-view-in-android

Popup is automatically positioned on top or bottom of anchor view. public void show View anchor preShow int xPos yPos arrowPos mDidAction false int location new int 2 anchor.getLocationOnScreen location Rect anchorRect new Rect location 0 location.. top left if anchorRect.left rootWidth screenWidth xPos anchorRect.left rootWidth anchor.getWidth xPos xPos 0 0 xPos arrowPos anchorRect.centerX xPos else if anchor.getWidth rootWidth xPos anchorRect.centerX rootWidth 2 else xPos anchorRect.left.. xPos else if anchor.getWidth rootWidth xPos anchorRect.centerX rootWidth 2 else xPos anchorRect.left arrowPos anchorRect.centerX xPos int dyTop anchorRect.top int dyBottom screenHeight anchorRect.bottom boolean onTop dyTop dyBottom..