PopupWindow isShowing - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for PopupWindow isShowing method.

This code example shows how to use the following methods:isShowing
 
        @Test 
        public void testShowing() { 
            shadowOf(popupWindow).setShowing(true);
 
            assertTrue(popupWindow.isShowing());
        } 
 
        @Test 
        public void testDismiss() { 
            shadowOf(popupWindow).setShowing(true);
 
            assertTrue(popupWindow.isShowing());
 
            popupWindow.dismiss();
 
            assertFalse(popupWindow.isShowing());
        } 
 
        @SuppressWarnings("RedundantCast") //For some reason this is needed because of a compile error without it 
7
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:isShowing
            list.requestLayout();
        } 
    } 
 
    public boolean isShowing() { 
        return mPopup.isShowing();
    } 
 
    private boolean isInputMethodNotNeeded() { 
        return mPopup.getInputMethodMode() == PopupWindow.INPUT_METHOD_NOT_NEEDED;
    } 
 
    public ListView getListView() {
        return mDropDownList;
    } 
 
    private int buildDropDown() { 
        ViewGroup dropDownView;
        int otherHeights = 0;
 
6
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:isShowing
	public void dismiss() { 
		listWindow.dismiss();
	} 
	 
	public boolean isShowing() { 
		return listWindow.isShowing();
	} 
 
	public ListAdapter getListAdapter() {
		return listAdapter;
	} 
 
	public void setListAdapter(ListAdapter listAdapter) {
		this.listAdapter = listAdapter;
		if (listAdapter != null) {
			lvItem.setAdapter(listAdapter);
		} 
	} 
 
	public OnItemClickListener getItemClickListener() {
6
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:dismiss, isShowing, setContentView, showAtLocation
    void show() { 
        if (!isPositionVisible()) { 
            hide(); 
            return; 
        } 
        mContainer.setContentView(this);
        final int[] coords = mTempCoords;
        mParent.getLocationInWindow(coords);
        mContainerPositionX = coords[0] + mPositionX;
        mContainerPositionY = coords[1] + mPositionY;
        mContainer.showAtLocation(mParent, 0, mContainerPositionX, mContainerPositionY);
 
        // Hide paste view when handle is moved on screen. 
        if (mPastePopupWindow != null) {
            mPastePopupWindow.hide();
        } 
    } 
 
    void hide() { 
        mIsDragging = false;

7
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:dismiss, isShowing
    	 
		super.onDetachedFromWindow(); 
	} 
     
    private void close() { 
    	if (mPreviewPopup.isShowing()) {
    		mPreviewPopup.dismiss();
    	} 
    } 
     
	/** calculate button position relative to this table because MotionEvents are relative to this table 
     */ 
    private void recordButtonPositions() { 
		for (ButtonInfo buttonInfo : buttonInfoList) {
			 
			// get position of button within row 
			Button button = buttonInfo.button;
			TableRow tableRow = (TableRow)button.getParent();
			 
			buttonInfo.left += button.getLeft()+tableRow.getLeft();
6
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:isShowing
	} 
 
	public boolean isShowing() { 
		boolean isShowing = false;
		try { 
			isShowing = progressWindow.isShowing();
		} catch(Exception e) {}
 
		return isShowing;
	} 
 
	public void setListUpdateAccount(List<LocalAccount> listUpdateAccount) {
		if (ListUtil.isEmpty(listUpdateAccount)) {
			return; 
		} 
		listAdapter.setListUpdateAccount(listUpdateAccount);
	} 
 
	public boolean updateState(LocalAccount account, State state) {
		if (account == null || state == null) {
6
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:getHeight, getWidth, isShowing
            final int action = event.getAction();
            final int x = (int) event.getX();
            final int y = (int) event.getY();
 
            if (action == MotionEvent.ACTION_DOWN &&
                    mPopup != null && mPopup.isShowing() &&
                    (x >= 0 && x < mPopup.getWidth() && y >= 0 && y < mPopup.getHeight())) {
                mHandler.postDelayed(mResizePopupRunnable, EXPAND_LIST_TIMEOUT);
            } else if (action == MotionEvent.ACTION_UP) {
                mHandler.removeCallbacks(mResizePopupRunnable);
            } 
            return false; 
        } 
    } 
 
    private class PopupScrollListener implements ListView.OnScrollListener {
        public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount,
                int totalItemCount) {
 
        } 
7
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:isShowing, setHeight, setWidth, showAtLocation
This code example shows how to use the following methods:dismiss, isShowing, setContentView, showAtLocation
    void show() { 
        if (!isPositionVisible()) { 
            hide(); 
            return; 
        } 
        mContainer.setContentView(this);
        final int[] coords = mTempCoords;
        mParent.getLocationInWindow(coords);
        mContainerPositionX = coords[0] + mPositionX;
        mContainerPositionY = coords[1] + mPositionY;
        mContainer.showAtLocation(mParent, 0, mContainerPositionX, mContainerPositionY);
 
        // Hide paste view when handle is moved on screen. 
        if (mPastePopupWindow != null) {
            mPastePopupWindow.hide();
        } 
    } 
 
    void hide() { 
        mIsDragging = false;

7
CodeRank
Connect your IDE to all the code out there  Get Codota for Java
This code example shows how to use the following methods:isShowing, setHeight, setWidth, showAtLocation

Related PopupWindow isShowing Questions & Answers:

isShowing Method Overview
Indicate whether this popup window is showing on screen.
See Code Examples for other Android PopupWindow Methods: