/development/samples/ApiDemos/src/com/example/android/apis/view/ |
ProgressBar1.java | 22 import android.widget.Button; 47 Button button = (Button) findViewById(R.id.increase); local 48 button.setOnClickListener(new Button.OnClickListener() { 56 button = (Button) findViewById(R.id.decrease); 57 button.setOnClickListener(new Button.OnClickListener() [all...] |
/external/toybox/kconfig/lxdialog/ |
yesno.c | 44 int i, x, y, key = 0, button = 0; local 93 button = ((key == KEY_LEFT ? --button : ++button) < 0) ? 1 : (button > 1 ? 0 : button); 95 print_buttons(dialog, height, width, button); 101 return button;
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
RadioOptions.java | 87 public void onClick(View button) { 88 setSelectedOptionByView(button); 93 View button = getChildAt(i); local 94 button.setOnClickListener(onClickListener); 103 View button = findViewWithTag(tag); local 104 setSelectedOptionByView(button); 112 View button = findViewById(id); local 113 setSelectedOptionByView(button); 118 // Reset all button states. 123 // Highlight the appropriate button [all...] |
/frameworks/base/tests/ImfTest/src/com/android/imftest/samples/ |
OneEditTextActivityNotSelected.java | 29 import android.widget.Button; 53 Button button = new Button(this); local 54 button.setText("The focus is here."); 55 button.setFocusableInTouchMode(true); 56 button.requestFocus(); 57 mDefaultFocusedView = button; 58 layout.addView(button);
|
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
HorizontalFocusSearch.java | 21 import android.widget.Button; 31 private Button mLeftTall; 32 private Button mMidShort1Top; 33 private Button mMidShort2Bottom; 34 private Button mRightTall; 41 public Button getLeftTall() { 45 public Button getMidShort1Top() { 49 public Button getMidShort2Bottom() { 53 public Button getRightTall() { 80 private static class MyButton extends Button { 94 Button button = new MyButton(this); local 103 Button button = new MyButton(this); local [all...] |
VerticalFocusSearch.java | 22 import android.widget.Button; 36 private Button mTopWide; 37 private Button mMidSkinny1Left; 38 private Button mBottomWide; 40 private Button mMidSkinny2Right; 47 public Button getTopWide() { 51 public Button getMidSkinny1Left() { 55 public Button getMidSkinny2Right() { 59 public Button getBottomWide() { 88 private static class MyButton extends Button { 102 Button button = new MyButton(this); local 119 Button button = new MyButton(this); local [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
Animation.java | 32 import android.widget.Button; 47 // Watch for button clicks. 48 Button button = (Button)findViewById(R.id.fade_animation); local 49 button.setOnClickListener(mFadeListener); 50 button = (Button)findViewById(R.id.zoom_animation); 51 button.setOnClickListener(mZoomListener); 53 button = (Button)findViewById(R.id.modern_fade_animation) [all...] |
NotifyWithText.java | 22 import android.widget.Button; 28 * When you push the button on this Activity, it creates a {@link Toast} object and 43 Button button; local 46 button = (Button) findViewById(R.id.short_notify); 47 button.setOnClickListener(new Button.OnClickListener() { 67 button = (Button) findViewById(R.id.long_notify) [all...] |
LocalServiceActivities.java | 32 import android.widget.Button; 52 // Watch for button clicks. 53 Button button = (Button)findViewById(R.id.start); local 54 button.setOnClickListener(mStartListener); 55 button = (Button)findViewById(R.id.stop); 56 button.setOnClickListener(mStopListener); 175 // Watch for button clicks 176 Button button = (Button)findViewById(R.id.bind); local [all...] |
/cts/tests/tests/view/src/android/view/cts/ |
TouchDelegateTestActivity.java | 26 import android.widget.Button; 42 * | (touches in this region should go to button + parent) 45 * | <-- Button top boundary 65 final Button button = findViewById(R.id.button); local 75 button.getLocationOnScreen(buttonLocation); 80 button.getHitRect(rect); 81 rect.top -= gap / 2; // TouchDelegate is halfway between button and parent 82 parent.setTouchDelegate(new TouchDelegate(rect, button)); [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/content/ |
DocumentsSample.java | 31 import android.widget.Button; 74 Button button; local 75 button = new Button(context); 76 button.setText("OPEN_DOC */*"); 77 button.setOnClickListener(new OnClickListener() { 92 view.addView(button); 94 button = new Button(context) [all...] |
/packages/apps/Dialer/java/com/android/incallui/video/impl/ |
SpeakerButtonController.java | 31 /** Manages a single button. */ 37 @NonNull private CheckableImageButton button; field in class:SpeakerButtonController 47 @NonNull CheckableImageButton button, 52 this.button = Assert.isNotNull(button); 60 button.setVisibility(View.VISIBLE); 61 button.setEnabled(isEnabled); 62 button.setChecked(isChecked); 63 button.setOnClickListener(checkable ? null : this); 64 button.setOnCheckedChangeListener(checkable ? this : null) [all...] |
/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/ |
ElementLayoutActivity.java | 102 RadioButton button = new RadioButton(this); local 103 button.setText("RadioButton:" + mRandom.nextInt()); 104 mLayout.addView(button); 108 ToggleButton button = new ToggleButton(this); local 109 button.setChecked(mRandom.nextBoolean()); 110 mLayout.addView(button); 114 Switch button = new Switch(this); local 115 button.setChecked(mRandom.nextBoolean()); 116 mLayout.addView(button);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/widgets/ |
ProjectionWidgetActivity.java | 25 import android.widget.Button; 61 Button button; local 63 button = (Button) view.findViewById(R.id.up_button); 64 button.setOnClickListener(new InjectDPadClickListener(KeyEvent.KEYCODE_DPAD_UP)); 67 button = (Button) view.findViewById(R.id.down_button); 68 button.setOnClickListener(new InjectDPadClickListener(KeyEvent.KEYCODE_DPAD_DOWN));
|
/frameworks/base/tests/VectorDrawableTest/src/com/android/test/dynamic/ |
AnimatedStateVectorDrawableTest.java | 21 import android.widget.Button; 52 CheckBox button = new CheckBox(this); local 53 button.setWidth(400); 54 button.setHeight(400); 55 button.setBackgroundResource(icon[i]); 56 container.addView(button);
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
DropTargetBar.java | 116 for (ButtonDropTarget button : mDropTargets) { 117 button.setToolTipLocation(tooltipLocation); 138 for (ButtonDropTarget button : mDropTargets) { 139 if (button.getVisibility() != GONE) { 140 button.setTextVisible(false); 141 button.measure(widthSpec, heightSpec); 156 for (ButtonDropTarget button : mDropTargets) { 157 if (button.getVisibility() != GONE) { 158 button.setTextVisible(textVisible); 159 button.measure(widthSpec, heightSpec) [all...] |
/tools/test/connectivity/acts/framework/acts/controllers/relay_lib/ |
sony_xb20_speaker.py | 35 Wraps the button presses, as well as the special features like pairing. 43 for button in Buttons: 44 self.ensure_config_contains_relay(button.value) 51 def _hold_button(self, button, seconds): 52 self.hold_down(button.value) 54 self.release(button.value)
|
/development/samples/ApiDemos/src/com/example/android/apis/accessibility/ |
ClockBackActivity.java | 47 ImageButton button = (ImageButton) findViewById(R.id.button); local 48 button.setOnClickListener(new View.OnClickListener() {
|
TaskListActivity.java | 51 ImageButton button = (ImageButton) findViewById(R.id.button); local 52 button.setOnClickListener(new View.OnClickListener() {
|
/external/python/cpython2/Demo/tkinter/matt/ |
packer-and-placer-together.py | 8 app.button.place(x=event.x, y=event.y) 25 # now make a button 26 f.button = Button(f, foreground='red', text='amazing', command=dothis) 30 f.button.place(relx=0.5, rely=0.0, anchor=NW) 32 # allow the user to move the button SUIT-style.
|
placer-simple.py | 6 app.button.place(x=event.x, y=event.y) 23 # now make a button 24 f.button = Button(f, foreground='red', text='amazing', command=dothis) 28 f.button.place(relx=0.5, rely=0.0, anchor=NW) 30 # allow the user to move the button SUIT-style.
|
/external/python/cpython3/Lib/test/ |
test_ttk_guionly.py | 18 button = ttk.Button(root) variable 19 button.destroy() 20 del button
|
/external/python/cpython2/Demo/tkinter/guido/ |
switch.py | 22 button = Button(self.buttonframe, text=name, 24 button.pack(side=LEFT) 27 self.panels[name] = (button, frame, instance) 32 (button, frame, instance) = self.panels[name] 45 self.button = Button(frame, text="Press me") 46 self.button.pack() 51 app.addpanel("button", ButtonPanel)
|
/developers/build/prebuilts/gradle/PermissionRequest/Application/src/main/assets/ |
sample.css | 25 button {
|
/developers/samples/android/content/webview/PermissionRequest/Application/src/main/assets/ |
sample.css | 25 button {
|