HomeSort by relevance Sort by last modified time
    Searched refs:Button (Results 51 - 75 of 1134) sorted by null

1 23 4 5 6 7 8 91011>>

  /development/samples/ApiDemos/src/com/example/android/apis/view/
ProgressBar4.java 25 import android.widget.Button;
43 Button button = (Button) findViewById(R.id.toggle); local
44 button.setOnClickListener(new Button.OnClickListener() {
TableLayout9.java 23 import android.widget.Button;
38 Button button = (Button) findViewById(R.id.toggle); local
39 button.setOnClickListener(new Button.OnClickListener() {
SecureView.java 29 import android.widget.Button;
51 * 1. The "unsecured button" does not apply any touch filtering of any kind.
52 * When the toast appears, this button remains clickable as usual which creates an
55 * 2. The "built-in secured button" leverages the android:filterTouchesWhenObscured view
57 * When the toast appears, the button does not receive the touch and appears to be inoperable.
59 * 3. The "custom secured button" adds a touch listener to the button which intercepts the
78 Button toastButton = (Button) findViewById(R.id.secure_view_toast_button);
85 Button unsecureButton = (Button) findViewById(R.id.secure_view_unsecure_button)
    [all...]
ChronometerDemo.java 28 import android.widget.Button;
40 Button button; local
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)
    [all...]
  /external/chromium_org/chrome/browser/ui/views/infobars/
infobar_label_button_border.cc 20 : views::LabelButtonBorder(views::Button::STYLE_TEXTBUTTON) {
21 SetPainter(false, views::Button::STATE_NORMAL,
23 SetPainter(false, views::Button::STATE_HOVERED,
25 SetPainter(false, views::Button::STATE_PRESSED,
  /frameworks/base/core/tests/coretests/src/android/view/menu/
MenuLayout.java 23 import android.widget.Button;
29 private Button mButton;
53 public Button getButton() {
61 mButton = new Button(this);
  /frameworks/base/core/tests/coretests/src/android/widget/layout/linear/
LLEditTextThenButton.java 23 import android.widget.Button;
29 private Button mButton;
41 mButton = (Button) findViewById(R.id.button);
52 public Button getButton() {
LLOfButtons1.java 23 import android.widget.Button;
34 private Button mFirstButton;
40 mFirstButton = (Button) findViewById(R.id.button1);
54 public Button getFirstButton() {
BaselineAlignmentCenterGravityTest.java 24 import android.widget.Button;
30 private Button mButton1;
31 private Button mButton2;
32 private Button mButton3;
43 mButton1 = (Button) activity.findViewById(R.id.button1);
44 mButton2 = (Button) activity.findViewById(R.id.button2);
45 mButton3 = (Button) activity.findViewById(R.id.button3);
  /frameworks/base/core/tests/coretests/src/android/widget/listview/
ListSetSelection.java 24 import android.widget.Button;
31 private Button mButton;
45 mButton = new Button(this);
59 public Button getButton() {
  /development/samples/devbytes/animation/ViewAnimations/src/com/example/android/viewanimations/
ViewAnimations.java 29 import android.widget.Button;
50 final Button alphaButton = (Button) findViewById(R.id.alphaButton);
51 final Button translateButton = (Button) findViewById(R.id.translateButton);
52 final Button rotateButton = (Button) findViewById(R.id.rotateButton);
53 final Button scaleButton = (Button) findViewById(R.id.scaleButton);
54 final Button setButton = (Button) findViewById(R.id.setButton)
    [all...]
  /cts/tests/src/android/view/cts/
TestButton.java 21 import android.widget.Button;
23 public class TestButton extends Button {
  /frameworks/base/tests/TransitionTests/src/com/android/transitiontests/
UniqueIds.java 25 import android.widget.Button;
36 HashMap<Button, ToggleScene> mSceneMap = new HashMap<Button, ToggleScene>();
45 Button button = (Button) inflater.inflate(R.layout.button_template, null); local
46 container.addView(button);
47 ToggleScene scene = new ToggleScene(container, button);
48 mSceneMap.put(button, scene);
49 button = (Button) inflater.inflate(R.layout.button_template, null)
    [all...]
HierarchicalMove.java 26 import android.widget.Button;
32 Button[] buttons = new Button[6];
45 buttons[0] = (Button) findViewById(R.id.button0);
46 buttons[1] = (Button) findViewById(R.id.button1);
47 buttons[2] = (Button) findViewById(R.id.button2);
48 buttons[3] = (Button) findViewById(R.id.button3);
49 buttons[4] = (Button) findViewById(R.id.button4);
50 buttons[5] = (Button) findViewById(R.id.button5);
  /development/samples/ApiDemos/src/com/example/android/apis/app/
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...]
  /external/chromium_org/ui/views/controls/button/
label_button_border.cc 5 #include "ui/views/controls/button/label_button_border.h"
15 #include "ui/views/controls/button/label_button.h"
22 // Insets for the unified button images. This assumes that the images
26 // The text-button hot and pushed image IDs; normal is unadorned by default.
30 Button::ButtonState GetButtonState(ui::NativeTheme::State state) {
32 case ui::NativeTheme::kDisabled: return Button::STATE_DISABLED;
33 case ui::NativeTheme::kHovered: return Button::STATE_HOVERED;
34 case ui::NativeTheme::kNormal: return Button::STATE_NORMAL;
35 case ui::NativeTheme::kPressed: return Button::STATE_PRESSED;
38 return Button::STATE_NORMAL
    [all...]
  /development/apps/Development/src/com/android/development/
BadBehaviorActivity.java 36 import android.widget.Button;
136 Button crash_system = (Button) findViewById(R.id.bad_behavior_crash_system);
149 Button crash_main = (Button) findViewById(R.id.bad_behavior_crash_main);
154 Button crash_thread = (Button) findViewById(R.id.bad_behavior_crash_thread);
164 Button crash_native = (Button) findViewById(R.id.bad_behavior_crash_native);
175 Button wtf = (Button) findViewById(R.id.bad_behavior_wtf)
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/colorpicker/
ColorGridDialog.java 25 import android.widget.Button;
40 Button sel = (Button) findViewById(R.id.filtershow_cp_custom);
41 ArrayList<Button> b = getButtons((ViewGroup) getWindow().getDecorView());
45 for (Button button : b) {
46 if (!button.equals(sel)){
51 GradientDrawable sd = ((GradientDrawable) button.getBackground());
52 button.setOnClickListener(new View.OnClickListener() {
73 private ArrayList<Button> getButtons(ViewGroup vg)
    [all...]
  /development/samples/ApiDemos/tests/src/com/example/android/apis/view/
Focus2AndroidTest.java 28 import android.widget.Button;
61 private Button mLeftButton;
62 private Button mCenterButton;
63 private Button mRightButton;
80 mLeftButton = (Button) mRoot.findViewById(R.id.leftButton);
81 mCenterButton = (Button) mRoot.findViewById(R.id.centerButton);
82 mRightButton = (Button) mRoot.findViewById(R.id.rightButton);
94 assertTrue("center button should be right of left button",
96 assertTrue("right button should be right of center button"
    [all...]
  /development/samples/training/testingfun/app/tests/src/com/example/android/testingfun/tests/lesson4/
LaunchActivityTest.java 25 import android.widget.Button;
55 final Button launchNextButton = (Button) getActivity().findViewById(R.id.launch_next_activity_button);
65 final Button launchNextButton = (Button) getActivity().findViewById(R.id.launch_next_activity_button);
68 assertEquals("Unexpected button label text", expectedButtonText,
75 final Button launchNextButton = (Button) getActivity().findViewById(R.id.launch_next_activity_button);
77 //button from code
84 //Verify that LaunchActivity was finished after button clic
    [all...]
  /frameworks/base/core/tests/coretests/src/android/view/
VisibilityCallback.java 26 import android.widget.Button;
48 Button visibleButton = (Button) findViewById(R.id.vis);
49 Button invisibleButton = (Button) findViewById(R.id.invis);
50 Button goneButton = (Button) findViewById(R.id.gone);
52 // Wire each button to a click listener
  /frameworks/base/core/tests/coretests/src/android/widget/focus/
RequestFocusTest.java 31 import android.widget.Button;
42 private Button mTopLeftButton;
43 private Button mBottomLeftButton;
44 private Button mTopRightButton;
45 private Button mBottomRightButton;
58 mTopLeftButton = (Button) a.findViewById(R.id.topLeftButton);
59 mBottomLeftButton = (Button) a.findViewById(R.id.bottomLeftButton);
60 mTopRightButton = (Button) a.findViewById(R.id.topRightButton);
61 mBottomRightButton = (Button) a.findViewById(R.id.bottomRightButton);
117 Button clearingFocusButton = mTopLeftButton
    [all...]
FocusAfterRemovalTest.java 24 import android.widget.Button;
36 private Button mTopLeftButton;
37 private Button mBottomLeftButton;
38 private Button mTopRightButton;
39 private Button mBottomRightButton;
51 mTopLeftButton = (Button) a.findViewById(R.id.topLeftButton);
52 mBottomLeftButton = (Button) a.findViewById(R.id.bottomLeftButton);
53 mTopRightButton = (Button) a.findViewById(R.id.topRightButton);
54 mBottomRightButton = (Button) a.findViewById(R.id.bottomRightButton);
75 // clicking on this button makes its parent linear layout GON
    [all...]
  /packages/apps/Settings/src/com/android/settings/
MediaFormat.java 25 import android.widget.Button;
44 private Button mInitiateButton;
47 private Button mFinalButton;
53 private Button.OnClickListener mFinalClickListener = new Button.OnClickListener() {
105 private Button.OnClickListener mInitiateListener = new Button.OnClickListener() {
120 (Button) mFinalView.findViewById(R.id.execute_media_format);
128 * In its initial state, the activity presents a button for the user to
143 (Button) mInitialView.findViewById(R.id.initiate_media_format)
    [all...]
  /development/apps/CustomLocale/src/com/android/customlocale2/
NewLocaleDialog.java 24 import android.widget.Button;
39 private Button mButtonAdd;
40 private Button mButtonAddSelect;
51 mButtonAdd = (Button) findViewById(R.id.add);
54 mButtonAddSelect = (Button) findViewById(R.id.add_and_select);

Completed in 652 milliseconds

1 23 4 5 6 7 8 91011>>