android.widget
Class PopupWindow

java.lang.Object
  extended by android.widget.PopupWindow

public class PopupWindow
extends Object


Nested Class Summary
static interface PopupWindow.OnDismissListener
           
 
Field Summary
static int INPUT_METHOD_FROM_FOCUSABLE
           
static int INPUT_METHOD_NEEDED
           
static int INPUT_METHOD_NOT_NEEDED
           
 
Constructor Summary
PopupWindow()
           
PopupWindow(Context context)
           
PopupWindow(Context context, AttributeSet attrs)
           
PopupWindow(Context context, AttributeSet attrs, int defStyle)
           
PopupWindow(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
           
PopupWindow(int width, int height)
           
PopupWindow(View contentView)
           
PopupWindow(View contentView, int width, int height)
           
PopupWindow(View contentView, int width, int height, boolean focusable)
           
 
Method Summary
 void dismiss()
           
 int getAnimationStyle()
           
 Drawable getBackground()
           
 View getContentView()
           
 int getHeight()
           
 int getInputMethodMode()
           
 int getMaxAvailableHeight(View anchor)
           
 int getMaxAvailableHeight(View anchor, int yOffset)
           
 int getSoftInputMode()
           
 int getWidth()
           
 boolean isAboveAnchor()
           
 boolean isClippingEnabled()
           
 boolean isFocusable()
           
 boolean isOutsideTouchable()
           
 boolean isShowing()
           
 boolean isSplitTouchEnabled()
           
 boolean isTouchable()
           
 void setAnimationStyle(int animationStyle)
           
 void setBackgroundDrawable(Drawable background)
           
 void setClippingEnabled(boolean enabled)
           
 void setContentView(View contentView)
           
 void setFocusable(boolean focusable)
           
 void setHeight(int height)
           
 void setIgnoreCheekPress()
           
 void setInputMethodMode(int mode)
           
 void setOnDismissListener(PopupWindow.OnDismissListener onDismissListener)
           
 void setOutsideTouchable(boolean touchable)
           
 void setSoftInputMode(int mode)
           
 void setSplitTouchEnabled(boolean enabled)
           
 void setTouchable(boolean touchable)
           
 void setTouchInterceptor(View.OnTouchListener l)
           
 void setWidth(int width)
           
 void setWindowLayoutMode(int widthSpec, int heightSpec)
           
 void showAsDropDown(View anchor)
           
 void showAsDropDown(View anchor, int xoff, int yoff)
           
 void showAtLocation(View parent, int gravity, int x, int y)
           
 void update()
           
 void update(int width, int height)
           
 void update(int x, int y, int width, int height)
           
 void update(int x, int y, int width, int height, boolean force)
           
 void update(View anchor, int width, int height)
           
 void update(View anchor, int xoff, int yoff, int width, int height)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INPUT_METHOD_FROM_FOCUSABLE

public static final int INPUT_METHOD_FROM_FOCUSABLE
See Also:
Constant Field Values

INPUT_METHOD_NEEDED

public static final int INPUT_METHOD_NEEDED
See Also:
Constant Field Values

INPUT_METHOD_NOT_NEEDED

public static final int INPUT_METHOD_NOT_NEEDED
See Also:
Constant Field Values
Constructor Detail

PopupWindow

public PopupWindow(Context context)

PopupWindow

public PopupWindow(Context context,
                   AttributeSet attrs)

PopupWindow

public PopupWindow(Context context,
                   AttributeSet attrs,
                   int defStyle)

PopupWindow

public PopupWindow(Context context,
                   AttributeSet attrs,
                   int defStyleAttr,
                   int defStyleRes)

PopupWindow

public PopupWindow()

PopupWindow

public PopupWindow(View contentView)

PopupWindow

public PopupWindow(int width,
                   int height)

PopupWindow

public PopupWindow(View contentView,
                   int width,
                   int height)

PopupWindow

public PopupWindow(View contentView,
                   int width,
                   int height,
                   boolean focusable)
Method Detail

getBackground

public Drawable getBackground()

setBackgroundDrawable

public void setBackgroundDrawable(Drawable background)

getAnimationStyle

public int getAnimationStyle()

setIgnoreCheekPress

public void setIgnoreCheekPress()

setAnimationStyle

public void setAnimationStyle(int animationStyle)

getContentView

public View getContentView()

setContentView

public void setContentView(View contentView)

setTouchInterceptor

public void setTouchInterceptor(View.OnTouchListener l)

isFocusable

public boolean isFocusable()

setFocusable

public void setFocusable(boolean focusable)

getInputMethodMode

public int getInputMethodMode()

setInputMethodMode

public void setInputMethodMode(int mode)

setSoftInputMode

public void setSoftInputMode(int mode)

getSoftInputMode

public int getSoftInputMode()

isTouchable

public boolean isTouchable()

setTouchable

public void setTouchable(boolean touchable)

isOutsideTouchable

public boolean isOutsideTouchable()

setOutsideTouchable

public void setOutsideTouchable(boolean touchable)

isClippingEnabled

public boolean isClippingEnabled()

setClippingEnabled

public void setClippingEnabled(boolean enabled)

isSplitTouchEnabled

public boolean isSplitTouchEnabled()

setSplitTouchEnabled

public void setSplitTouchEnabled(boolean enabled)

setWindowLayoutMode

public void setWindowLayoutMode(int widthSpec,
                                int heightSpec)

getHeight

public int getHeight()

setHeight

public void setHeight(int height)

getWidth

public int getWidth()

setWidth

public void setWidth(int width)

isShowing

public boolean isShowing()

showAtLocation

public void showAtLocation(View parent,
                           int gravity,
                           int x,
                           int y)

showAsDropDown

public void showAsDropDown(View anchor)

showAsDropDown

public void showAsDropDown(View anchor,
                           int xoff,
                           int yoff)

isAboveAnchor

public boolean isAboveAnchor()

getMaxAvailableHeight

public int getMaxAvailableHeight(View anchor)

getMaxAvailableHeight

public int getMaxAvailableHeight(View anchor,
                                 int yOffset)

dismiss

public void dismiss()

setOnDismissListener

public void setOnDismissListener(PopupWindow.OnDismissListener onDismissListener)

update

public void update()

update

public void update(int width,
                   int height)

update

public void update(int x,
                   int y,
                   int width,
                   int height)

update

public void update(int x,
                   int y,
                   int width,
                   int height,
                   boolean force)

update

public void update(View anchor,
                   int width,
                   int height)

update

public void update(View anchor,
                   int xoff,
                   int yoff,
                   int width,
                   int height)


Copyright © 2008-2012. All Rights Reserved.