Example usage for android.widget ListPopupWindow POSITION_PROMPT_BELOW

List of usage examples for android.widget ListPopupWindow POSITION_PROMPT_BELOW

Introduction

In this page you can find the example usage for android.widget ListPopupWindow POSITION_PROMPT_BELOW.

Prototype

int POSITION_PROMPT_BELOW

To view the source code for android.widget ListPopupWindow POSITION_PROMPT_BELOW.

Click Source Link

Document

The provided prompt view should appear below list content.

Usage

From source file:com.duy.pascal.ui.editor.view.CodeSuggestsEditText.java

private void setupCodeSuggestsEditText(Context context) {
    mTokenizer = new SymbolsTokenizer();
    setTokenizer(mTokenizer);/*w ww. jav  a 2  s.c  o m*/
    // setThreshold(1);
    calculateCharHeight();

    mDropDownAnchorId = View.NO_ID;
    mPopup = new ListPopupWindow(context);
    mPopup.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);
    mPopup.setPromptPosition(ListPopupWindow.POSITION_PROMPT_BELOW);
    mPopup.setOnItemClickListener(new DropDownItemClickListener());
    mPopup.setAnimationStyle(android.R.style.Animation_Dialog);

    onDropdownChangeSize(getWidth(), getHeight());
}