Home
last modified time | relevance | path

Searched refs:Button (Results 1 – 25 of 221) sorted by relevance

123456789

/development/samples/ApiDemos/src/com/example/android/apis/view/
DFocus3.java21 import android.widget.Button;
25 private Button mTopButton;
26 private Button mBottomButton;
34 mTopButton = (Button) findViewById(R.id.top); in onCreate()
35 mBottomButton = (Button) findViewById(R.id.bottom); in onCreate()
38 public Button getTopButton() { in getTopButton()
42 public Button getBottomButton() { in getBottomButton()
DProgressBar1.java22 import android.widget.Button;
47 Button button = (Button) findViewById(R.id.increase); in onCreate()
48 button.setOnClickListener(new Button.OnClickListener() { in onCreate()
56 button = (Button) findViewById(R.id.decrease); in onCreate()
57 button.setOnClickListener(new Button.OnClickListener() { in onCreate()
65 button = (Button) findViewById(R.id.increase_secondary); in onCreate()
66 button.setOnClickListener(new Button.OnClickListener() { in onCreate()
74 button = (Button) findViewById(R.id.decrease_secondary); in onCreate()
75 button.setOnClickListener(new Button.OnClickListener() { in onCreate()
DSecureView.java29 import android.widget.Button;
78 Button toastButton = (Button) findViewById(R.id.secure_view_toast_button); in onCreate()
85 Button unsecureButton = (Button) findViewById(R.id.secure_view_unsecure_button); in onCreate()
88 Button builtinSecureButton = (Button) findViewById(R.id.secure_view_builtin_secure_button); in onCreate()
91 Button customSecureButton = (Button) findViewById(R.id.secure_view_custom_secure_button); in onCreate()
109 private void setClickedAction(Button button) { in setClickedAction()
125 private void setTouchFilter(Button button) { in setTouchFilter()
DVisibility1.java27 import android.widget.Button;
47 Button visibleButton = (Button) findViewById(R.id.vis); in onCreate()
48 Button invisibleButton = (Button) findViewById(R.id.invis); in onCreate()
49 Button goneButton = (Button) findViewById(R.id.gone); in onCreate()
DChronometerDemo.java28 import android.widget.Button;
40 Button button; in onCreate()
45 button = (Button) findViewById(R.id.start); in onCreate()
48 button = (Button) findViewById(R.id.stop); in onCreate()
51 button = (Button) findViewById(R.id.reset); in onCreate()
54 button = (Button) findViewById(R.id.set_format); in onCreate()
57 button = (Button) findViewById(R.id.clear_format); in onCreate()
DTableLayout9.java23 import android.widget.Button;
38 Button button = (Button) findViewById(R.id.toggle); in onCreate()
39 button.setOnClickListener(new Button.OnClickListener() { in onCreate()
DTableLayout7.java25 import android.widget.Button;
42 Button button = (Button) findViewById(R.id.toggle1); in onCreate()
43 button.setOnClickListener(new Button.OnClickListener() { in onCreate()
49 button = (Button) findViewById(R.id.toggle2); in onCreate()
50 button.setOnClickListener(new Button.OnClickListener() { in onCreate()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DStatusBarNotifications.java29 import android.widget.Button;
48 Button button; in onCreate()
53 button = (Button) findViewById(R.id.happy); in onCreate()
54 button.setOnClickListener(new Button.OnClickListener() { in onCreate()
61 button = (Button) findViewById(R.id.neutral); in onCreate()
62 button.setOnClickListener(new Button.OnClickListener() { in onCreate()
69 button = (Button) findViewById(R.id.sad); in onCreate()
70 button.setOnClickListener(new Button.OnClickListener() { in onCreate()
76 button = (Button) findViewById(R.id.happyMarquee); in onCreate()
77 button.setOnClickListener(new Button.OnClickListener() { in onCreate()
[all …]
DNotifyWithText.java22 import android.widget.Button;
43 Button button; in onCreate()
46 button = (Button) findViewById(R.id.short_notify); in onCreate()
47 button.setOnClickListener(new Button.OnClickListener() { in onCreate()
67 button = (Button) findViewById(R.id.long_notify); in onCreate()
68 button.setOnClickListener(new Button.OnClickListener() { in onCreate()
DAlertDialogSamples.java31 import android.widget.Button;
344 Button twoButtonsTitle = (Button) findViewById(R.id.two_buttons);
352 Button twoButtons2Title = (Button) findViewById(R.id.two_buttons2);
361 Button twoButtons2UltraTitle = (Button) findViewById(R.id.two_buttons2ultra);
370 Button selectButton = (Button) findViewById(R.id.select_button);
378 Button progressButton = (Button) findViewById(R.id.progress_button);
389 Button progressSpinnerButton = (Button) findViewById(R.id.progress_spinner_button);
397 Button radioButton = (Button) findViewById(R.id.radio_button);
405 Button checkBox = (Button) findViewById(R.id.checkbox_button);
413 Button checkBox2 = (Button) findViewById(R.id.checkbox_button2);
[all …]
DCustomTitle.java24 import android.widget.Button;
71 Button leftButton = (Button) findViewById(R.id.left_text_button); in onCreate()
72 Button rightButton = (Button) findViewById(R.id.right_text_button); in onCreate()
DIncomingMessageInterstitial.java26 import android.widget.Button;
40 Button button = (Button) findViewById(R.id.notify_app); in onCreate()
41 button.setOnClickListener(new Button.OnClickListener() { in onCreate()
/development/samples/ApiDemos/src/com/example/android/apis/media/
DMediaPlayerDemo.java25 import android.widget.Button;
28 private Button mlocalvideo;
29 private Button mresourcesvideo;
30 private Button mstreamvideo;
31 private Button mlocalaudio;
32 private Button mresourcesaudio;
33 private Button mstreamaudio;
47 mlocalaudio = (Button) findViewById(R.id.localaudio); in onCreate()
49 mresourcesaudio = (Button) findViewById(R.id.resourcesaudio); in onCreate()
52 mlocalvideo = (Button) findViewById(R.id.localvideo); in onCreate()
[all …]
/development/apps/Development/src/com/android/development/
DBadBehaviorActivity.java37 import android.widget.Button;
160 Button crash_system = (Button) findViewById(R.id.bad_behavior_crash_system); in onCreate()
173 Button crash_main = (Button) findViewById(R.id.bad_behavior_crash_main); in onCreate()
178 Button crash_thread = (Button) findViewById(R.id.bad_behavior_crash_thread); in onCreate()
188 Button crash_native = (Button) findViewById(R.id.bad_behavior_crash_native); in onCreate()
199 Button wtf = (Button) findViewById(R.id.bad_behavior_wtf); in onCreate()
204 Button anr = (Button) findViewById(R.id.bad_behavior_anr); in onCreate()
213 Button anr_activity = (Button) findViewById(R.id.bad_behavior_anr_activity); in onCreate()
222 Button anr_broadcast = (Button) findViewById(R.id.bad_behavior_anr_broadcast); in onCreate()
230 Button anr_service = (Button) findViewById(R.id.bad_behavior_anr_service); in onCreate()
[all …]
DCacheAbuser.java40 import android.widget.Button;
43 Button mStartInternalAbuse;
44 Button mStartSlowInternalAbuse;
45 Button mStartExternalAbuse;
46 Button mStartSlowExternalAbuse;
47 Button mStopAbuse;
103 mStartInternalAbuse = (Button) findViewById(R.id.start_internal_abuse); in onCreate()
114 mStartSlowInternalAbuse = (Button) findViewById(R.id.start_slow_internal_abuse); in onCreate()
125 mStartExternalAbuse = (Button) findViewById(R.id.start_external_abuse); in onCreate()
136 mStartSlowExternalAbuse = (Button) findViewById(R.id.start_slow_external_abuse); in onCreate()
[all …]
/development/samples/devbytes/animation/ViewAnimations/src/com/example/android/viewanimations/
DViewAnimations.java29 import android.widget.Button;
50 final Button alphaButton = (Button) findViewById(R.id.alphaButton); in onCreate()
51 final Button translateButton = (Button) findViewById(R.id.translateButton); in onCreate()
52 final Button rotateButton = (Button) findViewById(R.id.rotateButton); in onCreate()
53 final Button scaleButton = (Button) findViewById(R.id.scaleButton); in onCreate()
54 final Button setButton = (Button) findViewById(R.id.setButton); in onCreate()
/development/samples/devbytes/ui/RequestDuringLayout/src/com/example/android/requestduringlayout/
DRequestDuringLayout.java26 import android.widget.Button;
44 Button addViewButton = (Button) findViewById(R.id.addView); in onCreate()
45 Button removeViewButton = (Button) findViewById(R.id.removeView); in onCreate()
46 Button forceLayoutButton = (Button) findViewById(R.id.forceLayout); in onCreate()
122 Button button = new Button(getContext()); in addButton()
/development/samples/ApiDemos/tests/src/com/example/android/apis/view/
DFocus2ActivityTest.java24 import android.widget.Button;
47 private Button mLeftButton;
48 private Button mCenterButton;
49 private Button mRightButton;
64 mLeftButton = (Button) a.findViewById(R.id.leftButton); in setUp()
65 mCenterButton = (Button) a.findViewById(R.id.centerButton); in setUp()
66 mRightButton = (Button) a.findViewById(R.id.rightButton); in setUp()
DFocus2AndroidTest.java28 import android.widget.Button;
61 private Button mLeftButton;
62 private Button mCenterButton;
63 private Button mRightButton;
80 mLeftButton = (Button) mRoot.findViewById(R.id.leftButton); in setUp()
81 mCenterButton = (Button) mRoot.findViewById(R.id.centerButton); in setUp()
82 mRightButton = (Button) mRoot.findViewById(R.id.rightButton); in setUp()
/development/samples/devbytes/animation/PropertyAnimations/src/com/example/android/propertyanimations/
DPropertyAnimations.java28 import android.widget.Button;
49 final Button alphaButton = (Button) findViewById(R.id.alphaButton); in onCreate()
50 final Button translateButton = (Button) findViewById(R.id.translateButton); in onCreate()
51 final Button rotateButton = (Button) findViewById(R.id.rotateButton); in onCreate()
52 final Button scaleButton = (Button) findViewById(R.id.scaleButton); in onCreate()
53 final Button setButton = (Button) findViewById(R.id.setButton); in onCreate()
/development/samples/training/testingfun/app/tests/src/com/example/android/testingfun/tests/lesson4/
DLaunchActivityTest.java25 import android.widget.Button;
55 …final Button launchNextButton = (Button) getActivity().findViewById(R.id.launch_next_activity_butt… in testPreconditions()
65 …final Button launchNextButton = (Button) getActivity().findViewById(R.id.launch_next_activity_butt… in testLaunchNextActivityButton_labelText()
75 …final Button launchNextButton = (Button) getActivity().findViewById(R.id.launch_next_activity_butt… in testNextActivityWasLaunchedWithIntent()
/development/samples/ApiDemos/src/com/example/android/apis/animation/
DLayoutAnimationsByDefault.java27 import android.widget.Button;
46 Button addButton = (Button) findViewById(R.id.addNewButton); in onCreate()
49 Button newButton = new Button(LayoutAnimationsByDefault.this); in onCreate()
/development/samples/devbytes/animation/WindowAnimations/src/com/example/android/windowanimations/
DWindowAnimations.java26 import android.widget.Button;
43 final Button defaultButton = (Button) findViewById(R.id.defaultButton); in onCreate()
44 final Button translateButton = (Button) findViewById(R.id.translateButton); in onCreate()
45 final Button scaleButton = (Button) findViewById(R.id.scaleButton); in onCreate()
/development/apps/CustomLocale/src/com/android/customlocale2/
DNewLocaleDialog.java24 import android.widget.Button;
39 private Button mButtonAdd;
40 private Button mButtonAddSelect;
51 mButtonAdd = (Button) findViewById(R.id.add); in onCreate()
54 mButtonAddSelect = (Button) findViewById(R.id.add_and_select); in onCreate()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DSurfaceViewOverlay.java24 import android.widget.Button;
56 Button visibleButton = (Button) findViewById(R.id.vis); in onCreate()
57 Button invisibleButton = (Button) findViewById(R.id.invis); in onCreate()
58 Button goneButton = (Button) findViewById(R.id.gone); in onCreate()

123456789