Searched refs:button (Results 1 - 25 of 35) sorted by relevance

12

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/controller/
H A DStyleChooser.java44 final ImageButton button = new ImageButton(context);
45 button.setScaleType(ScaleType.CENTER_CROP);
46 button.setLayoutParams(lp);
47 button.setBackgroundResource(android.R.color.transparent);
48 mIconButton.add(button);
50 button.setOnClickListener(new View.OnClickListener() {
56 mLinearLayout.addView(button);
64 button.setImageBitmap(bmap);
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/
H A DTutorialJAJP.java221 Bubble button;
227 button = new Bubble(context, inputView,
230 mBubbles.add(button);
236 button = new Bubble(context, inputView,
239 mBubbles.add(button);
245 button = new Bubble(context, inputView,
248 mBubbles.add(button);
254 button = new Bubble(context, inputView,
257 mBubbles.add(button);
265 button
[all...]
/packages/apps/Mms/src/com/android/mms/ui/
H A DConfirmRateLimitActivity.java51 Button button = (Button) findViewById(R.id.btn_yes);
52 button.setOnClickListener(new OnClickListener() {
58 button = (Button) findViewById(R.id.btn_no);
59 button.setOnClickListener(new OnClickListener() {
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/editors/
H A DEditorRotate.java53 final Button button = (Button) accessoryViewList.findViewById(R.id.applyEffect);
54 button.setOnClickListener(new OnClickListener() {
58 button.setText(mContext.getString(getTextId()) + " " + mImageRotate.getLocalValue());
H A DEditorFlip.java53 final Button button = (Button) accessoryViewList.findViewById(R.id.applyEffect);
54 button.setOnClickListener(new OnClickListener() {
H A DEditorCrop.java83 final Button button = (Button) accessoryViewList.findViewById(
85 if (button == null) {
88 final PopupMenu popupMenu = new PopupMenu(mImageShow.getActivity(), button);
H A DEditorDraw.java87 final Button button = (Button) accessoryViewList.findViewById(
89 if (button == null) {
92 final PopupMenu popupMenu = new PopupMenu(mImageShow.getActivity(), button);
132 Button button = (Button) dialog.findViewById(R.id.sizeAcceptButton);
133 button.setOnClickListener(new OnClickListener() {
H A DEditor.java259 protected void createMenu(int[] strId, View button) { argument
260 PopupMenu pmenu = new PopupMenu(mContext, button);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
H A DButtonSwitcher.java144 private ViewPropertyAnimator animateButton(final View button, final int direction) { argument
146 final float innerX = button.getX() - button.getTranslationX();
148 button.setClickable(true);
149 return button.animate().translationX(0);
151 button.setClickable(false);
152 return button.animate().translationX(outerX - innerX);
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/colorpicker/
H A DColorGridDialog.java45 for (Button button : b) {
46 if (!button.equals(sel)){
51 GradientDrawable sd = ((GradientDrawable) button.getBackground());
52 button.setOnClickListener(new View.OnClickListener() {
H A DColorPickerDialog.java108 private void setButtonColor(ToggleButton button, float[] hsv) { argument
109 if (button == null) {
113 button.setBackgroundColor(color);
119 button.setTextColor(Color.HSVToColor(fg));
120 button.setTag(hsv);
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DSelectionMenu.java35 public SelectionMenu(Context context, Button button, OnPopupItemClickListener listener) { argument
37 mButton = button;
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/EN/
H A DTutorialEN.java217 Bubble button;
221 button = new Bubble(context, inputView,
224 mBubbles.add(button);
231 button = new Bubble(context, inputView,
234 mBubbles.add(button);
236 button = new Bubble(context, inputView,
239 mBubbles.add(button);
/packages/apps/Calendar/src/com/android/calendar/event/
H A DAttendeesView.java191 // Set up the Image button even if the view is disabled
193 final ImageButton button = (ImageButton) view.findViewById(R.id.contact_remove);
194 button.setVisibility(isEnabled() ? View.VISIBLE : View.GONE);
195 button.setTag(item);
197 button.setImageResource(R.drawable.ic_menu_add_field_holo_light);
198 button.setContentDescription(mContext.getString(R.string.accessibility_add_attendee));
200 button.setImageResource(R.drawable.ic_menu_remove_field_holo_light);
201 button.setContentDescription(mContext.
204 button.setOnClickListener(this);
/packages/apps/Settings/src/com/android/settings/
H A DCredentialStorage.java249 @Override public void onClick(DialogInterface dialog, int button) { argument
250 mResetConfirmed = (button == DialogInterface.BUTTON_POSITIVE);
319 @Override public void onClick(DialogInterface dialog, int button) { argument
320 mConfigureConfirmed = (button == DialogInterface.BUTTON_POSITIVE);
427 @Override public void onClick(DialogInterface dialog, int button) { argument
428 mUnlockConfirmed = (button == DialogInterface.BUTTON_POSITIVE);
H A DCryptKeeper.java330 * re-run if the user clicks the power button (sleeping/waking the screen), and this is
420 // Hide the encryption-bot to make room for the "factory reset" button
423 // Show the reset button, failure text, and a divider
424 final Button button = (Button) findViewById(R.id.factory_reset);
425 button.setVisibility(View.VISIBLE);
426 button.setOnClickListener(new OnClickListener() {
513 // Disable the Emergency call button if the device has no voice telephone capability
518 Log.d(TAG, "Removing the emergency Call button");
671 * Code to update the state of, and handle clicks from, the "Emergency call" button.
678 // The button is
[all...]
/packages/apps/Contacts/src/com/android/contacts/activities/
H A DContactEditorAccountsChangedActivity.java95 final Button button = (Button) findViewById(R.id.add_account_button);
96 button.setText(getString(R.string.add_new_account));
97 button.setOnClickListener(mAddAccountClickListener);
117 // This button allows the user to add a new account to the device and return to
122 // This button allows the user to continue creating the contact in the specified
142 // This button allows the user to continue editing the contact as a phone-only
156 // This button allows the user to add a new account to the device and return to
/packages/apps/Calendar/src/com/android/calendar/
H A DDeleteEventHelper.java135 public void onClick(DialogInterface dialog, int button) {
154 public void onClick(DialogInterface dialog, int button) {
171 public void onClick(DialogInterface dialog, int button) {
173 mWhichDelete = mWhichIndex.get(button);
175 // Enable the "ok" button now that the user has selected which
187 public void onClick(DialogInterface dialog, int button) {
334 // Disable the "Ok" button until the user selects which events
H A DEventInfoFragment.java562 View button = mView.findViewById(R.id.change_color);
563 if (button != null && mColors.length > 0) {
564 button.setEnabled(true);
565 button.setVisibility(View.VISIBLE);
997 // Create a listener for the email guests button
1008 // Create a listener for the add reminder button
1227 // Home button - close event info activity and start the main calendar
1229 // Edit button - start the event edit activity and close the info
1231 // Delete button - start a delete query that calls a runnable that close
1663 // No icon && no label. Hide button
[all...]
/packages/apps/DeskClock/src/com/android/deskclock/widget/swipeablelistview/
H A DSwipeHelper.java212 View button = mCurrView.findViewById(R.id.onoff);
214 // Find raw top and left positions for button.
215 int left = button.getLeft();
216 int top = button.getTop();
217 View parent = (View) button.getParent();
229 int bottom = top + button.getHeight() + PROTECTION_PADDING;
/packages/apps/Phone/src/com/android/phone/
H A DDTMFTwelveKeyDialer.java205 * Overriden so that with each valid button press, we start sending
235 * Overriden so that with each valid button up, we stop sending
611 View button;
614 button = dialerView.findViewById(viewId);
616 button.setOnTouchListener(this);
617 button.setClickable(true);
618 button.setOnKeyListener(this);
619 button.setOnHoverListener(this);
620 button.setOnClickListener(this);
655 // the button'
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ui/
H A DImageCurves.java94 final Button button = (Button) accessoryViewList.findViewById(
96 if (button == null) {
110 PopupMenu popupMenu = new PopupMenu(getActivity(), button);
116 button.setText(mIdStrLut.get(item.getItemId()));
/packages/apps/Calendar/src/com/android/calendar/selectcalendars/
H A DSelectSyncedCalendarsMultiAccountAdapter.java188 * Method for changing the sync state when a calendar's button is pressed.
378 CheckBox button = (CheckBox) view.findViewById(R.id.sync);
379 button.setChecked(sync);
383 view.setTag(TAG_ID_SYNC_CHECKBOX, button);
/packages/apps/DeskClock/src/com/android/deskclock/
H A DAlarmClock.java597 // Build button for each day.
601 final ToggleButton button = (ToggleButton) viewgroup.getChildAt(0);
603 button.setText(mShortWeekDayStrings[dayToShowIndex]);
604 button.setTextOn(mShortWeekDayStrings[dayToShowIndex]);
605 button.setTextOff(mShortWeekDayStrings[dayToShowIndex]);
606 button.setContentDescription(mLongWeekDayStrings[dayToShowIndex]);
608 holder.dayButtons[i] = button;
/packages/apps/Launcher2/src/com/android/launcher2/
H A DLauncher.java1971 // Back button is a no-op here, but give at least some feedback for the button press
2038 * Event handler for the search button
2049 * Event handler for the voice button
2074 * Event handler for the "grid" button that appears on the home screen, which
2861 // Set focus to the AppsCustomize button
3063 // if successful in getting icon, return it; otherwise, set button to use default drawable
3072 TextView button = (TextView) findViewById(buttonId);
3077 if (button != null) {
3078 button
3121 invalidatePressedFocusedStates(View container, View button) argument
[all...]

Completed in 308 milliseconds

12