Home
last modified time | relevance | path

Searched refs:mDropDownWidth (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/core/java/android/widget/
DListPopupWindow.java73 private int mDropDownWidth = ViewGroup.LayoutParams.WRAP_CONTENT; field in ListPopupWindow
489 return mDropDownWidth; in getWidth()
499 mDropDownWidth = width; in setWidth()
512 mDropDownWidth = mTempRect.left + mTempRect.right + width; in setContentWidth()
625 if (mDropDownWidth == ViewGroup.LayoutParams.MATCH_PARENT) { in show()
629 } else if (mDropDownWidth == ViewGroup.LayoutParams.WRAP_CONTENT) { in show()
632 widthSpec = mDropDownWidth; in show()
641 mPopup.setWidth(mDropDownWidth == ViewGroup.LayoutParams.MATCH_PARENT ? in show()
645 mPopup.setWidth(mDropDownWidth == ViewGroup.LayoutParams.MATCH_PARENT ? in show()
663 if (mDropDownWidth == ViewGroup.LayoutParams.MATCH_PARENT) { in show()
[all …]
DSpinner.java102 int mDropDownWidth; field in Spinner
274 mDropDownWidth = pa.getLayoutDimension(R.styleable.Spinner_dropDownWidth, in Spinner()
438 mDropDownWidth = pixels; in setDropDownWidth()
453 return mDropDownWidth; in getDropDownWidth()
1224 if (mDropDownWidth == WRAP_CONTENT) { in computeContentWidth()
1234 } else if (mDropDownWidth == MATCH_PARENT) { in computeContentWidth()
1237 setContentWidth(mDropDownWidth); in computeContentWidth()
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
DListPopupWindow.java109 private int mDropDownWidth = ViewGroup.LayoutParams.WRAP_CONTENT; field in ListPopupWindow
529 return mDropDownWidth; in getWidth()
539 mDropDownWidth = width; in setWidth()
552 mDropDownWidth = mTempRect.left + mTempRect.right + width; in setContentWidth()
658 if (mDropDownWidth == ViewGroup.LayoutParams.MATCH_PARENT) { in show()
662 } else if (mDropDownWidth == ViewGroup.LayoutParams.WRAP_CONTENT) { in show()
665 widthSpec = mDropDownWidth; in show()
674 mPopup.setWidth(mDropDownWidth == ViewGroup.LayoutParams.MATCH_PARENT ? in show()
678 mPopup.setWidth(mDropDownWidth == ViewGroup.LayoutParams.MATCH_PARENT ? in show()
695 if (mDropDownWidth == ViewGroup.LayoutParams.MATCH_PARENT) { in show()
[all …]
DAppCompatSpinner.java96 private int mDropDownWidth; field in AppCompatSpinner
238 mDropDownWidth = pa.getLayoutDimension(R.styleable.Spinner_android_dropDownWidth, in AppCompatSpinner()
369 mDropDownWidth = pixels; in setDropDownWidth()
378 return mDropDownWidth; in getDropDownWidth()
771 if (mDropDownWidth == WRAP_CONTENT) { in computeContentWidth()
781 } else if (mDropDownWidth == MATCH_PARENT) { in computeContentWidth()
784 setContentWidth(mDropDownWidth); in computeContentWidth()