sk.baka.ambient.views
Interface ContainedPopupWindow.IPlaceable

Enclosing class:
ContainedPopupWindow

public static interface ContainedPopupWindow.IPlaceable

Computes window placement.

Author:
Martin Vysny

Method Summary
 int[] getCoordinates(ContainedPopupWindow popup, java.lang.CharSequence text, android.widget.TextView textView)
          Computes new coordinates for given pop-up window, based on a text value.
 

Method Detail

getCoordinates

int[] getCoordinates(ContainedPopupWindow popup,
                     java.lang.CharSequence text,
                     android.widget.TextView textView)
Computes new coordinates for given pop-up window, based on a text value.

Parameters:
popup - the pop-up window instance, never null.
text - the placement text
textView - the string is set to this text view.
Returns:
[x, y] coordinates relative to owner view.


Copyright © 2007-2009. All Rights Reserved.