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

123

/development/samples/ApiDemos/src/com/example/android/apis/view/
H A DChronometerDemo.java40 Button button;
44 // Watch for button clicks.
45 button = (Button) findViewById(R.id.start);
46 button.setOnClickListener(mStartListener);
48 button = (Button) findViewById(R.id.stop);
49 button.setOnClickListener(mStopListener);
51 button = (Button) findViewById(R.id.reset);
52 button.setOnClickListener(mResetListener);
54 button = (Button) findViewById(R.id.set_format);
55 button
[all...]
H A DProgressBar1.java47 Button button = (Button) findViewById(R.id.increase);
48 button.setOnClickListener(new Button.OnClickListener() {
56 button = (Button) findViewById(R.id.decrease);
57 button.setOnClickListener(new Button.OnClickListener() {
65 button = (Button) findViewById(R.id.increase_secondary);
66 button.setOnClickListener(new Button.OnClickListener() {
74 button = (Button) findViewById(R.id.decrease_secondary);
75 button.setOnClickListener(new Button.OnClickListener() {
H A DProgressBar3.java48 Button button = (Button) findViewById(R.id.showIndeterminate);
49 button.setOnClickListener(new View.OnClickListener() {
55 button = (Button) findViewById(R.id.showIndeterminateNoTitle);
56 button.setOnClickListener(new View.OnClickListener() {
H A DPopupMenu1.java29 * This demonstrates the use of the PopupMenu class. Clicking the button will inflate and
39 public void onPopupButtonClick(View button) { argument
40 PopupMenu popup = new PopupMenu(this, button);
/development/samples/ApiDemos/src/com/example/android/apis/app/
H A DStatusBarNotifications.java48 Button button;
53 button = (Button) findViewById(R.id.happy);
54 button.setOnClickListener(new Button.OnClickListener() {
61 button = (Button) findViewById(R.id.neutral);
62 button.setOnClickListener(new Button.OnClickListener() {
69 button = (Button) findViewById(R.id.sad);
70 button.setOnClickListener(new Button.OnClickListener() {
76 button = (Button) findViewById(R.id.happyMarquee);
77 button.setOnClickListener(new Button.OnClickListener() {
84 button
[all...]
H A DNotifyingController.java41 Button button = (Button) findViewById(R.id.notifyStart);
42 button.setOnClickListener(mStartListener);
43 button = (Button) findViewById(R.id.notifyStop);
44 button.setOnClickListener(mStopListener);
H A DNotifyWithText.java28 * When you push the button on this Activity, it creates a {@link Toast} object and
43 Button button;
46 button = (Button) findViewById(R.id.short_notify);
47 button.setOnClickListener(new Button.OnClickListener() {
67 button = (Button) findViewById(R.id.long_notify);
68 button.setOnClickListener(new Button.OnClickListener() {
H A DAnimation.java44 // Watch for button clicks.
45 Button button = (Button)findViewById(R.id.fade_animation);
46 button.setOnClickListener(mFadeListener);
47 button = (Button)findViewById(R.id.zoom_animation);
48 button.setOnClickListener(mZoomListener);
50 button = (Button)findViewById(R.id.modern_fade_animation);
51 button.setOnClickListener(mModernFadeListener);
52 button = (Button)findViewById(R.id.modern_zoom_animation);
53 button.setOnClickListener(mModernZoomListener);
54 button
[all...]
H A DLocalServiceActivities.java50 // Watch for button clicks.
51 Button button = (Button)findViewById(R.id.start);
52 button.setOnClickListener(mStartListener);
53 button = (Button)findViewById(R.id.stop);
54 button.setOnClickListener(mStopListener);
164 // Watch for button clicks.
165 Button button = (Button)findViewById(R.id.bind);
166 button.setOnClickListener(mBindListener);
167 button = (Button)findViewById(R.id.unbind);
168 button
[all...]
H A DDialogActivity.java61 Button button = (Button)findViewById(R.id.add);
62 button.setOnClickListener(mAddContentListener);
63 button = (Button)findViewById(R.id.remove);
64 button.setOnClickListener(mRemoveContentListener);
H A DFinishAffinity.java42 // Watch for button clicks.
43 Button button = (Button)findViewById(R.id.nest);
44 button.setOnClickListener(mNestListener);
45 button = (Button)findViewById(R.id.finish);
46 button.setOnClickListener(mFinishListener);
H A DNotificationDisplay.java52 ImageButton button = new ImageButton(this);
53 button.setImageResource(getIntent().getIntExtra("moodimg", 0));
54 button.setOnClickListener(this);
61 container.addView(button, lp);
71 // Pressing on the button brings the user back to our mood ring,
H A DSendResult.java52 // Watch for button clicks.
53 Button button = (Button)findViewById(R.id.corky);
54 button.setOnClickListener(mCorkyListener);
55 button = (Button)findViewById(R.id.violet);
56 button.setOnClickListener(mVioletListener);
H A DRemoteService.java221 // Watch for button clicks.
222 Button button = (Button)findViewById(R.id.start);
223 button.setOnClickListener(mStartListener);
224 button = (Button)findViewById(R.id.stop);
225 button.setOnClickListener(mStopListener);
283 // Watch for button clicks.
284 Button button = (Button)findViewById(R.id.bind);
285 button.setOnClickListener(mBindListener);
286 button = (Button)findViewById(R.id.unbind);
287 button
[all...]
H A DContactsFilter.java41 // Watch for button clicks.
42 Button button = (Button)findViewById(R.id.go);
43 button.setOnClickListener(mGoListener);
H A DIncomingMessageInterstitial.java40 Button button = (Button) findViewById(R.id.notify_app);
41 button.setOnClickListener(new Button.OnClickListener() {
H A DIntents.java35 // Watch for button clicks.
36 Button button = (Button)findViewById(R.id.get_music);
37 button.setOnClickListener(mGetMusicListener);
H A DLocalSample.java41 // Watch for button clicks.
42 Button button = (Button)findViewById(R.id.go);
43 button.setOnClickListener(mGoListener);
H A DSecureDialogActivity.java70 // Handle click events on the button to show the dialog.
71 Button button = (Button)findViewById(R.id.show);
72 button.setOnClickListener(this);
76 * Called when the button to show the dialog is clicked.
/development/samples/ApiDemos/src/com/example/android/apis/accessibility/
H A DClockBackActivity.java47 ImageButton button = (ImageButton) findViewById(R.id.button);
48 button.setOnClickListener(new View.OnClickListener() {
H A DTaskListActivity.java51 ImageButton button = (ImageButton) findViewById(R.id.button);
52 button.setOnClickListener(new View.OnClickListener() {
/development/samples/HeavyWeight/src/com/example/android/heavyweight/
H A DHeavyWeight.java35 Button button = (Button)findViewById(R.id.stop);
36 button.setOnClickListener(mStopListener);
/development/samples/Alarm/src/com/example/android/newalarm/
H A DAlarmActivity.java33 * When the user clicks the "Start Alarm Service" button, it triggers a repeating countdown
38 * When the user clicks the "Stop Alarm Service" button, it stops the countdown timer.
73 // Finds the button that starts the repeating countdown timer
74 Button button = (Button)findViewById(R.id.start_alarm);
76 // Sets the listener for the start button
77 button.setOnClickListener(mStartAlarmListener);
79 // Finds the button that stops countdown timer
80 button = (Button)findViewById(R.id.stop_alarm);
82 // Sets the listener for the stop button
83 button
[all...]
/development/samples/Support4Demos/src/com/example/android/supportv4/app/
H A DSendResult.java52 // Watch for button clicks.
53 Button button = (Button)findViewById(R.id.corky);
54 button.setOnClickListener(mCorkyListener);
55 button = (Button)findViewById(R.id.violet);
56 button.setOnClickListener(mVioletListener);
H A DFragmentStackFragmentSupport.java53 // Watch for button clicks.
54 Button button = (Button)v.findViewById(R.id.new_fragment);
55 button.setOnClickListener(new OnClickListener() {
60 button = (Button)v.findViewById(R.id.delete_fragment);
61 button.setOnClickListener(new OnClickListener() {
66 button = (Button)v.findViewById(R.id.home);
67 button.setOnClickListener(new OnClickListener() {

Completed in 376 milliseconds

123