HomeSort by relevance Sort by last modified time
    Searched defs:popup (Results 1 - 25 of 84) sorted by null

1 2 3 4

  /development/samples/ApiDemos/src/com/example/android/apis/view/
PopupMenu1.java 30 * show a popup menu from an XML resource.
40 PopupMenu popup = new PopupMenu(this, button); local
41 popup.getMenuInflater().inflate(R.menu.popup, popup.getMenu());
43 popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {
45 Toast.makeText(PopupMenu1.this, "Clicked popup menu item " + item.getTitle(),
51 popup.show();
  /external/autotest/frontend/client/src/autotest/common/ui/
ToolTip.java 12 protected PopupPanel popup; field in class:ToolTip
18 popup = new PopupPanel();
20 popup.setStyleName("tooltip");
21 popup.add(new Label(toolTipMessage));
27 popup.setPopupPosition(left + Window.getScrollLeft() + LEFT_OFFSET,
29 popup.show();
33 popup.hide();
ContextMenu.java 13 private PopupPanel popup = new PopupPanel(true); field in class:ContextMenu
25 popup.hide();
49 popup.add(menu);
70 popup.setPopupPosition(left, top);
71 popup.show();
79 popup.addCloseHandler(closeHandler);
  /packages/apps/Launcher3/src/com/android/launcher3/keyboard/
CustomActionsPopup.java 30 import com.android.launcher3.popup.PopupContainerWithArrow;
37 * Handles showing a popup menu with available custom actions for a launcher icon.
79 PopupMenu popup = new PopupMenu(mLauncher, mIcon); local
80 popup.setOnMenuItemClickListener(this);
81 Menu menu = popup.getMenu();
85 popup.show();
  /packages/apps/Contacts/src/com/android/contacts/util/
UiClosables.java 29 * @param popup The popup window to close.
30 * @return {@code true} if the popup was showing. {@code false} otherwise.
32 public static boolean closeQuietly(ListPopupWindow popup) {
33 if (popup != null && popup.isShowing()) {
34 popup.dismiss();
  /packages/apps/LegacyCamera/src/com/android/camera/ui/
OtherSettingIndicatorButton.java 58 OtherSettingsPopup popup = (OtherSettingsPopup) inflater.inflate( local
60 popup.setSettingChangedListener(mListener);
61 popup.initialize(mPreferenceGroup, mPrefKeys);
62 root.addView(popup);
63 mPopup = popup;
  /developers/build/prebuilts/gradle/ActionBarCompat-ListPopupMenu/Application/src/main/java/com/example/android/actionbarcompat/listpopupmenu/
PopupListFragment.java 61 // We need to post a Runnable to show the popup to make sure that the PopupMenu is
80 PopupMenu popup = new PopupMenu(getActivity(), view); local
83 popup.getMenuInflater().inflate(R.menu.popup, popup.getMenu());
86 popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {
100 popup.show();
119 // Retrieve the popup button from the inflated view
  /developers/samples/android/ui/actionbarcompat/ActionBarCompat-ListPopupMenu/Application/src/main/java/com/example/android/actionbarcompat/listpopupmenu/
PopupListFragment.java 61 // We need to post a Runnable to show the popup to make sure that the PopupMenu is
80 PopupMenu popup = new PopupMenu(getActivity(), view); local
83 popup.getMenuInflater().inflate(R.menu.popup, popup.getMenu());
86 popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {
100 popup.show();
119 // Retrieve the popup button from the inflated view
  /development/samples/browseable/ActionBarCompat-ListPopupMenu/src/com.example.android.actionbarcompat.listpopupmenu/
PopupListFragment.java 61 // We need to post a Runnable to show the popup to make sure that the PopupMenu is
80 PopupMenu popup = new PopupMenu(getActivity(), view); local
83 popup.getMenuInflater().inflate(R.menu.popup, popup.getMenu());
86 popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {
100 popup.show();
119 // Retrieve the popup button from the inflated view
  /packages/apps/Launcher3/src/com/android/launcher3/popup/
SystemShortcut.java 1 package com.android.launcher3.popup;
PopupPopulator.java 17 package com.android.launcher3.popup;
  /frameworks/base/core/java/android/widget/
ForwardingListener.java 72 * Returns the popup to which this listener is forwarding events.
74 * Override this to return the correct popup. If the popup is displayed
79 * @return the popup to which this listener is forwarding events
123 * By default, this will show the popup returned by {@link #getPopup()}.
125 * source view or preparing the popup before showing it.
130 final ShowableListMenu popup = getPopup(); local
131 if (popup != null && !popup.isShowing()) {
132 popup.show()
147 final ShowableListMenu popup = getPopup(); local
251 final ShowableListMenu popup = getPopup(); local
    [all...]
  /frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/
VrActivity.java 153 PopupMenu popup = new PopupMenu(this, v); local
154 Menu menu = popup.getMenu();
160 //registering popup with OnMenuItemClickListener
161 popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {
167 popup.show();
175 PopupMenu popup = new PopupMenu(this, v); local
176 Menu menu = popup.getMenu();
182 //registering popup with OnMenuItemClickListener
183 popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {
195 popup.show()
    [all...]
  /frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
ForwardingListener.java 81 * Returns the popup to which this listener is forwarding events.
83 * Override this to return the correct popup. If the popup is displayed
88 * @return the popup to which this listener is forwarding events
132 * By default, this will show the popup returned by {@link #getPopup()}.
134 * source view or preparing the popup before showing it.
139 final ShowableListMenu popup = getPopup(); local
140 if (popup != null && !popup.isShowing()) {
141 popup.show()
156 final ShowableListMenu popup = getPopup(); local
260 final ShowableListMenu popup = getPopup(); local
    [all...]
  /packages/apps/Launcher3/src/com/android/launcher3/views/
OptionsPopupView.java 37 import com.android.launcher3.popup.ArrowPopup;
47 * Popup shown on long pressing an empty space in launcher
120 OptionsPopupView popup = (OptionsPopupView) launcher.getLayoutInflater() local
122 popup.mTargetRect = targetRect;
125 DeepShortcutView view = popup.inflateAndAdd(R.layout.system_shortcut, popup);
129 view.setOnClickListener(popup);
130 view.setOnLongClickListener(popup);
131 popup.mItemMap.put(view, item);
133 popup.reorderAndShow(popup.getChildCount())
    [all...]
  /external/python/cpython2/Tools/pynche/
PyncheWidget.py 73 command=v.popup,
277 def popup(self, event=None):
274 def popup(self, event=None): member in class:PopupViewer
  /external/python/cpython3/Tools/pynche/
PyncheWidget.py 72 command=v.popup,
278 def popup(self, event=None):
275 def popup(self, event=None): member in class:PopupViewer
  /frameworks/support/compat/src/main/java/androidx/core/widget/
PopupWindowCompat.java 51 * <p>Display the content view in a popup window anchored to the bottom-left
54 * the popup in its entirety, this method tries to find a parent scroll
56 * corner of the popup is pinned at the top left corner of the anchor view.</p>
58 * location, the popup will be moved correspondingly.</p>
60 * @param popup the PopupWindow to show
61 * @param anchor the view on which to pin the popup window
64 * @param gravity Alignment of the popup relative to the anchor
66 public static void showAsDropDown(@NonNull PopupWindow popup, @NonNull View anchor,
69 popup.showAsDropDown(anchor, xoff, yoff, gravity);
75 // Flip the location to align the right sides of the popup an
    [all...]
  /frameworks/base/core/java/com/android/internal/view/menu/
MenuPopupHelper.java 36 * Presents a menu as a small, simple popup anchored to another view.
43 // Immutable cached popup menu properties.
49 // Mutable cached popup menu properties.
89 * Sets the view to which the popup window is anchored.
93 * @param anchor the view to which the popup window should be anchored
100 * Sets whether the popup menu's adapter is forced to show icons in the
116 * Sets the alignment of the popup window relative to the anchor view.
120 * @param gravity alignment of the popup relative to the anchor
127 * @return alignment of the popup relative to the anchor
154 * Attempts to show the popup anchored to the view specified by {@link #setAnchorView(View)}
226 final MenuPopup popup; local
249 final MenuPopup popup = getPopup(); local
    [all...]
  /frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/view/menu/
MenuPopupHelper.java 42 * Presents a menu as a small, simple popup anchored to another view.
52 // Immutable cached popup menu properties.
58 // Mutable cached popup menu properties.
98 * Sets the view to which the popup window is anchored.
102 * @param anchor the view to which the popup window should be anchored
109 * Sets whether the popup menu's adapter is forced to show icons in the
125 * Sets the alignment of the popup window relative to the anchor view.
129 * @param gravity alignment of the popup relative to the anchor
136 * @return alignment of the popup relative to the anchor
163 * Attempts to show the popup anchored to the view specified by {@link #setAnchorView(View)}
240 final MenuPopup popup; local
263 final MenuPopup popup = getPopup(); local
    [all...]
  /packages/apps/Contacts/src/com/android/contacts/editor/
AccountHeaderPresenter.java 176 final ListPopupWindow popup = new ListPopupWindow(mContext); local
179 popup.setWidth(mAccountHeaderContainer.getWidth());
180 popup.setAnchorView(mAccountHeaderContainer);
181 popup.setAdapter(adapter);
182 popup.setModal(true);
183 popup.setInputMethodMode(ListPopupWindow.INPUT_METHOD_NOT_NEEDED);
184 popup.setOnItemClickListener(new AdapterView.OnItemClickListener() {
188 UiClosables.closeQuietly(popup);
199 popup.show();
  /packages/apps/Browser2/src/org/chromium/webview_shell/
WebViewBrowserActivity.java 347 PopupMenu popup = new PopupMenu(this, v); local
348 popup.setOnMenuItemClickListener(this);
349 popup.inflate(R.menu.main_menu);
350 popup.show();
  /packages/apps/Launcher3/tests/src/com/android/launcher3/popup/
PopupPopulatorTest.java 17 package com.android.launcher3.popup;
31 import static com.android.launcher3.popup.PopupPopulator.MAX_SHORTCUTS;
32 import static com.android.launcher3.popup.PopupPopulator.NUM_DYNAMIC;
  /external/pdfium/fpdfsdk/
fpdfannot_embeddertest.cpp 1088 FPDF_ANNOTATION popup = FPDFAnnot_GetLinkedAnnot(annot, kPopupKey); local
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/ui/
PopupList.java 120 // Need to update the position of the popup window
139 PopupWindow popup = mPopupWindow; local
142 popup.getBackground().getPadding(p);
155 PopupWindow popup = new PopupWindow(mContext); local
156 popup.setOnDismissListener(mOnDismissListener);
158 popup.setBackgroundDrawable(mContext.getResources().getDrawable(
165 popup.setContentView(mContentList);
166 popup.setFocusable(true);
167 popup.setOutsideTouchable(true);
169 return popup;
    [all...]

Completed in 994 milliseconds

1 2 3 4