Home
last modified time | relevance | path

Searched refs:popup (Results 1 – 25 of 41) sorted by relevance

12

/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/
DMenuPopupHelper.java236 final MenuPopup popup; in createPopup() local
238 popup = new CascadingMenuPopup(mContext, mAnchorView, mPopupStyleAttr, in createPopup()
241 popup = new StandardMenuPopup(mContext, mMenu, mAnchorView, mPopupStyleAttr, in createPopup()
246 popup.addMenu(mMenu); in createPopup()
247 popup.setOnDismissListener(mInternalOnDismissListener); in createPopup()
250 popup.setAnchorView(mAnchorView); in createPopup()
251 popup.setCallback(mPresenterCallback); in createPopup()
252 popup.setForceShowIcon(mForceShowIcon); in createPopup()
253 popup.setGravity(mDropDownGravity); in createPopup()
255 return popup; in createPopup()
[all …]
DActionMenuItemView.java327 final ShowableListMenu popup = getPopup(); in onForwardingStarted() local
328 return popup != null && popup.isShowing(); in onForwardingStarted()
/frameworks/base/core/java/com/android/internal/view/menu/
DMenuPopupHelper.java226 final MenuPopup popup; in createPopup() local
228 popup = new CascadingMenuPopup(mContext, mAnchorView, mPopupStyleAttr, in createPopup()
231 popup = new StandardMenuPopup(mContext, mMenu, mAnchorView, mPopupStyleAttr, in createPopup()
236 popup.addMenu(mMenu); in createPopup()
237 popup.setOnDismissListener(mInternalOnDismissListener); in createPopup()
240 popup.setAnchorView(mAnchorView); in createPopup()
241 popup.setCallback(mPresenterCallback); in createPopup()
242 popup.setForceShowIcon(mForceShowIcon); in createPopup()
243 popup.setGravity(mDropDownGravity); in createPopup()
245 return popup; in createPopup()
[all …]
DActionMenuItemView.java345 final ShowableListMenu popup = getPopup(); in onForwardingStarted() local
346 return popup != null && popup.isShowing(); in onForwardingStarted()
/frameworks/base/core/java/android/widget/
DForwardingListener.java129 final ShowableListMenu popup = getPopup(); in onForwardingStarted() local
130 if (popup != null && !popup.isShowing()) { in onForwardingStarted()
131 popup.show(); in onForwardingStarted()
146 final ShowableListMenu popup = getPopup(); in onForwardingStopped() local
147 if (popup != null && popup.isShowing()) { in onForwardingStopped()
148 popup.dismiss(); in onForwardingStopped()
250 final ShowableListMenu popup = getPopup(); in onTouchForwarded() local
251 if (popup == null || !popup.isShowing()) { in onTouchForwarded()
255 final DropDownListView dst = (DropDownListView) popup.getListView(); in onTouchForwarded()
DActionMenuPresenter.java550 OverflowPopup popup = new OverflowPopup(mContext, mMenu, mOverflowButton, true); in showOverflowMenu() local
551 mPostedOpenRunnable = new OpenOverflowRunnable(popup); in showOverflowMenu()
576 MenuPopupHelper popup = mOverflowPopup; in hideOverflowMenu() local
577 if (popup != null) { in hideOverflowMenu()
578 popup.dismiss(); in hideOverflowMenu()
999 public OpenOverflowRunnable(OverflowPopup popup) { in OpenOverflowRunnable() argument
1000 mPopup = popup; in OpenOverflowRunnable()
DSpinner.java268 final DropdownPopup popup = new DropdownPopup( in Spinner() local
275 popup.setListSelector(pa.getDrawable( in Spinner()
278 popup.setBackgroundDrawable(pa.getDrawable(R.styleable.Spinner_popupBackground)); in Spinner()
279 popup.setPromptText(a.getString(R.styleable.Spinner_prompt)); in Spinner()
282 mPopup = popup; in Spinner()
286 return popup; in Spinner()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DForwardingListener.java116 final ShowableListMenu popup = getPopup(); in onForwardingStarted() local
117 if (popup != null && !popup.isShowing()) { in onForwardingStarted()
118 popup.show(); in onForwardingStarted()
133 final ShowableListMenu popup = getPopup(); in onForwardingStopped() local
134 if (popup != null && popup.isShowing()) { in onForwardingStopped()
135 popup.dismiss(); in onForwardingStopped()
237 final ShowableListMenu popup = getPopup(); in onTouchForwarded() local
238 if (popup == null || !popup.isShowing()) { in onTouchForwarded()
242 final DropDownListView dst = (DropDownListView) popup.getListView(); in onTouchForwarded()
DAppCompatPopupWindow.java116 private static void wrapOnScrollChangedListener(final PopupWindow popup) {
126 (OnScrollChangedListener) fieldListener.get(popup);
130 fieldListener.set(popup, new OnScrollChangedListener() {
134 WeakReference<View> mAnchor = (WeakReference<View>) fieldAnchor.get(popup);
DActionMenuPresenter.java345 OverflowPopup popup = new OverflowPopup(mContext, mMenu, mOverflowButton, true); in showOverflowMenu() local
346 mPostedOpenRunnable = new OpenOverflowRunnable(popup); in showOverflowMenu()
371 MenuPopupHelper popup = mOverflowPopup; in hideOverflowMenu() local
372 if (popup != null) { in hideOverflowMenu()
373 popup.dismiss(); in hideOverflowMenu()
791 public OpenOverflowRunnable(OverflowPopup popup) { in OpenOverflowRunnable() argument
792 mPopup = popup; in OpenOverflowRunnable()
DAppCompatSpinner.java243 final DropdownPopup popup = new DropdownPopup(mPopupContext, attrs, defStyleAttr); in AppCompatSpinner() local
248 popup.setBackgroundDrawable( in AppCompatSpinner()
250 popup.setPromptText(a.getString(R.styleable.Spinner_android_prompt)); in AppCompatSpinner()
253 mPopup = popup; in AppCompatSpinner()
257 return popup; in AppCompatSpinner()
/frameworks/support/v4/java/android/support/v4/widget/
DPopupWindowCompat.java35 void showAsDropDown(PopupWindow popup, View anchor, int xoff, int yoff, int gravity); in showAsDropDown() argument
47 public void showAsDropDown(PopupWindow popup, View anchor, int xoff, int yoff, in showAsDropDown() argument
54 xoff -= (popup.getWidth() - anchor.getWidth()); in showAsDropDown()
56 popup.showAsDropDown(anchor, xoff, yoff); in showAsDropDown()
100 public void showAsDropDown(PopupWindow popup, View anchor, int xoff, int yoff, in showAsDropDown() argument
102 PopupWindowCompatKitKat.showAsDropDown(popup, anchor, xoff, yoff, gravity); in showAsDropDown()
179 public static void showAsDropDown(PopupWindow popup, View anchor, int xoff, int yoff, in showAsDropDown() argument
181 IMPL.showAsDropDown(popup, anchor, xoff, yoff, gravity); in showAsDropDown()
/frameworks/rs/java/tests/VrDemo/src/com/example/android/rs/vr/
DVrActivity.java153 PopupMenu popup = new PopupMenu(this, v); in looksClick() local
154 Menu menu = popup.getMenu(); in looksClick()
161 popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() { in looksClick()
167 popup.show(); in looksClick()
175 PopupMenu popup = new PopupMenu(this, v); in dataClick() local
176 Menu menu = popup.getMenu(); in dataClick()
183 popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() { in dataClick()
195 popup.show(); in dataClick()
/frameworks/support/v4/kitkat/android/support/v4/widget/
DPopupWindowCompatKitKat.java28 public static void showAsDropDown(PopupWindow popup, View anchor, int xoff, int yoff, in showAsDropDown() argument
30 popup.showAsDropDown(anchor, xoff, yoff, gravity); in showAsDropDown()
/frameworks/base/docs/html-intl/intl/ru/guide/topics/ui/
Dmenus.jd756 PopupMenu popup = new PopupMenu(this, v);
757 MenuInflater inflater = popup.getMenuInflater();
758 inflater.inflate(R.menu.actions, popup.getMenu());
759 popup.show();
784 PopupMenu popup = new PopupMenu(this, v);
787 popup.setOnMenuItemClickListener(this);
788 popup.inflate(R.menu.actions);
789 popup.show();
/frameworks/base/docs/html-intl/intl/zh-cn/guide/topics/ui/
Dmenus.jd756 PopupMenu popup = new PopupMenu(this, v);
757 MenuInflater inflater = popup.getMenuInflater();
758 inflater.inflate(R.menu.actions, popup.getMenu());
759 popup.show();
784 PopupMenu popup = new PopupMenu(this, v);
787 popup.setOnMenuItemClickListener(this);
788 popup.inflate(R.menu.actions);
789 popup.show();
/frameworks/base/docs/html-intl/intl/ja/guide/topics/ui/
Dmenus.jd756 PopupMenu popup = new PopupMenu(this, v);
757 MenuInflater inflater = popup.getMenuInflater();
758 inflater.inflate(R.menu.actions, popup.getMenu());
759 popup.show();
784 PopupMenu popup = new PopupMenu(this, v);
787 popup.setOnMenuItemClickListener(this);
788 popup.inflate(R.menu.actions);
789 popup.show();
/frameworks/base/docs/html-intl/intl/zh-tw/guide/topics/ui/
Dmenus.jd756 PopupMenu popup = new PopupMenu(this, v);
757 MenuInflater inflater = popup.getMenuInflater();
758 inflater.inflate(R.menu.actions, popup.getMenu());
759 popup.show();
784 PopupMenu popup = new PopupMenu(this, v);
787 popup.setOnMenuItemClickListener(this);
788 popup.inflate(R.menu.actions);
789 popup.show();
/frameworks/base/docs/html-intl/intl/ko/guide/topics/ui/
Dmenus.jd756 PopupMenu popup = new PopupMenu(this, v);
757 MenuInflater inflater = popup.getMenuInflater();
758 inflater.inflate(R.menu.actions, popup.getMenu());
759 popup.show();
784 PopupMenu popup = new PopupMenu(this, v);
787 popup.setOnMenuItemClickListener(this);
788 popup.inflate(R.menu.actions);
789 popup.show();
/frameworks/base/docs/html-intl/intl/in/guide/topics/ui/
Dmenus.jd98 <dt><strong>Menu popup</strong></dt>
99 <dd>Menu popup menampilkan daftar item secara vertikal yang dipasang pada tampilan yang
101 untuk menyediakan opsi bagi bagian kedua dari suatu perintah. Tindakan di menu popup
103 tindakan kontekstual. Melainkan, menu popup adalah untuk tindakan tambahan yang terkait dengan wila…
706 <p><strong>Gambar 4.</strong> Menu popup dalam aplikasi Gmail, dikaitkan pada
719 yang menghasilkan menu popup dengan berbagai opsi "Tambah").</li>
728 …="#xml">mendefinisikan menu dalam XML</a>, berikut ini adalah cara Anda menampilkan menu popup:</p>
741 yang menampilkan menu popup:</p>
752 <p>Aktivitas nanti bisa menampilkan menu popup seperti ini:</p>
756 PopupMenu popup = new PopupMenu(this, v);
[all …]
/frameworks/base/docs/html/guide/topics/ui/
Dmenus.jd93 <dd>A popup menu displays a list of items in a vertical list that's anchored to the view that
95 to provide options for a second part of a command. Actions in a popup menu should
97 are for. Rather, the popup menu is for extended actions that relate to regions of content in your
702 <p><strong>Figure 4.</strong> A popup menu in the Gmail app, anchored to the overflow
716 that produces a popup menu with different "Add" options).</li>
725 <p>If you <a href="#xml">define your menu in XML</a>, here's how you can show the popup menu:</p>
737 that shows a popup menu:</p>
748 <p>The activity can then show the popup menu like this:</p>
752 PopupMenu popup = new PopupMenu(this, v);
753 MenuInflater inflater = popup.getMenuInflater();
[all …]
/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientEditTextView.java341 private void setupPopupWindow(ListPopupWindow popup) { in setupPopupWindow() argument
342 popup.setOnDismissListener(new PopupWindow.OnDismissListener() { in setupPopupWindow()
2381 private void showAddress(final DrawableRecipientChip currentChip, final ListPopupWindow popup) { in showAddress() argument
2389 popup.setAnchorView((mAlternatePopupAnchor != null) ? mAlternatePopupAnchor : this); in showAddress()
2390 popup.setVerticalOffset(bottomOffset); in showAddress()
2391 popup.setAdapter(createSingleAddressAdapter(currentChip)); in showAddress()
2392 popup.setOnItemClickListener(new OnItemClickListener() { in showAddress()
2396 popup.dismiss(); in showAddress()
2399 popup.show(); in showAddress()
2400 ListView listView = popup.getListView(); in showAddress()
/frameworks/base/docs/html/design/patterns/
Dcompatibility.jd46 resulting actions popup has the same style as in the previous example, but is displayed at the bott…
/frameworks/base/docs/html/training/snackbar/
Daction.jd2 page.tags="Snackbar" "action" "popup"
/frameworks/base/core/java/com/android/internal/widget/
DFloatingToolbar.java1468 OverflowPanel(FloatingToolbarPopup popup) { in OverflowPanel() argument
1469 super(Preconditions.checkNotNull(popup).mContext); in OverflowPanel()
1470 this.mPopup = popup; in OverflowPanel()

12