HomeSort by relevance Sort by last modified time
    Searched refs:Button (Results 1 - 25 of 381) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /development/samples/ApiDemos/src/com/example/android/apis/view/
Focus3.java 21 import android.widget.Button;
25 private Button mTopButton;
26 private Button mBottomButton;
34 mTopButton = (Button) findViewById(R.id.top);
35 mBottomButton = (Button) findViewById(R.id.bottom);
38 public Button getTopButton() {
42 public Button getBottomButton() {
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...]
Visibility1.java 27 import android.widget.Button;
47 Button visibleButton = (Button) findViewById(R.id.vis);
48 Button invisibleButton = (Button) findViewById(R.id.invis);
49 Button goneButton = (Button) findViewById(R.id.gone);
51 // Wire each button to a click listener
  /frameworks/base/core/tests/coretests/src/android/view/menu/
MenuWith1Item.java 20 import android.widget.Button;
24 private Button mButton;
33 public Button getButton() {
41 mButton = new Button(this);
  /frameworks/base/core/tests/coretests/src/android/widget/scroll/
ButtonsWithTallTextViewInBetween.java 21 import android.widget.Button;
27 * before getting to next button).
31 public Button getTopButton() {
39 public Button getBottomButton() {
41 return (Button) ll.getChildAt(0);
46 params.addButton("top button", 0.2f)
ButtonAboveTallInternalSelectionView.java 22 import android.widget.Button;
25 * A button above a tall internal selection view, wrapped in a scroll view.
32 public Button getButtonAbove() {
  /frameworks/base/core/tests/coretests/src/android/view/
Disabled.java 22 import android.widget.Button;
37 Button disabledButton = (Button) findViewById(R.id.disabledButton);
41 Button disabledButtonA = (Button) findViewById(R.id.disabledButtonA);
46 Button disabledButtonB = (Button) findViewById(R.id.disabledButtonB);
MutateDrawable.java 22 import android.widget.Button;
32 Button ok = new Button(this);
37 Button cancel = new Button(this);
Visibility.java 22 import android.widget.Button;
40 Button visibleButton = (Button) findViewById(R.id.vis);
41 Button invisibleButton = (Button) findViewById(R.id.invis);
42 Button goneButton = (Button) findViewById(R.id.gone);
44 // Wire each button to a click listener
  /frameworks/base/core/tests/coretests/src/android/widget/focus/
DescendantFocusability.java 24 import android.widget.Button;
29 public Button beforeDescendantsChild;
32 public Button afterDescendantsChild;
35 public Button blocksDescendantsChild;
44 beforeDescendantsChild = (Button) beforeDescendants.getChildAt(0);
47 afterDescendantsChild = (Button) afterDescendants.getChildAt(0);
50 blocksDescendantsChild = (Button) blocksDescendants.getChildAt(0);
FocusAfterRemoval.java 24 import android.widget.Button;
41 Button topLeftButton = (Button) findViewById(R.id.topLeftButton);
51 Button bottomLeftButton = (Button) findViewById(R.id.bottomLeftButton);
59 // top right button makes top right button GONE
60 final Button topRightButton = (Button) findViewById(R.id.topRightButton);
68 // bottom right button makes bottom right button INVISIBL
    [all...]
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...]
  /frameworks/base/core/tests/coretests/src/android/widget/listview/
ListButtonsDiagonalAcrossItems.java 25 import android.widget.Button;
37 public Button getLeftButton() {
38 return (Button) ((ViewGroup) getListView().getChildAt(0)).getChildAt(0);
41 public Button getCenterButton() {
42 return (Button) ((ViewGroup) getListView().getChildAt(1)).getChildAt(1);
45 public Button getRightButton() {
46 return (Button) ((ViewGroup) getListView().getChildAt(2)).getChildAt(2);
ListWithHeaders.java 22 import android.widget.Button;
43 Button header = new Button(this);
49 Button footer = new Button(this);
ListHorizontalFocusWithinItemWins.java 26 import android.widget.Button;
38 public Button getTopLeftButton() {
39 return (Button) ((ViewGroup) getListView().getChildAt(0)).getChildAt(0);
42 public Button getTopRightButton() {
43 return (Button) ((ViewGroup) getListView().getChildAt(0)).getChildAt(2);
46 public Button getBottomMiddleButton() {
47 return (Button) ((ViewGroup) getListView().getChildAt(1)).getChildAt(1);
ListViewHeightTest.java 22 import android.widget.Button;
51 final Button button1 = (Button) mActivity.findViewById(R.id.button1);
52 final Button button2 = (Button) mActivity.findViewById(R.id.button2);
53 final Button button3 = (Button) mActivity.findViewById(R.id.button3);
  /frameworks/base/core/java/android/widget/
Button.java 29 * <code>Button</code> represents a push-button widget. Push-buttons can be
31 * push-button in an activity would be the following:
41 * final Button button = (Button) findViewById(R.id.button_id);
42 * button.setOnClickListener(new View.OnClickListener() {
53 * See {@link android.R.styleable#Button Button Attributes},
59 public class Button extends TextView
    [all...]
  /development/samples/ApiDemos/src/com/example/android/apis/media/
MediaPlayerDemo.java 25 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);
49 mresourcesaudio = (Button) findViewById(R.id.resourcesaudio);
52 mlocalvideo = (Button) findViewById(R.id.localvideo)
    [all...]
  /cts/tests/tests/widget/src/android/widget/cts/
ButtonTest.java 25 import android.widget.Button;
35 @TestTargetClass(Button.class)
40 notes = "Test constructor(s) of {@link Button}",
41 method = "Button",
46 notes = "Test constructor(s) of {@link Button}",
47 method = "Button",
52 notes = "Test constructor(s) of {@link Button}",
53 method = "Button",
58 "Button's constructors when the input AttributeSet or Context is null")
63 new Button(mContext, attrs, 0)
    [all...]
  /cts/tests/src/android/view/cts/
FocusFinderStubActivity.java 22 import android.widget.Button;
36 private Button mTopWide;
37 private Button mMidSkinny1Left;
38 private Button mBottomWide;
40 private Button mMidSkinny2Right;
50 public Button getTopWide() {
54 public Button getMidSkinny1Left() {
58 public Button getMidSkinny2Right() {
62 public Button getBottomWide() {
91 private static class MyButton extends Button {
104 Button button = new MyButton(this); local
125 Button button = new MyButton(this); local
    [all...]
  /cts/tests/src/android/widget/cts/
ExpandableListWithHeaders.java 20 import android.widget.Button;
45 Button header = new Button(this);
51 Button footer = new Button(this);
  /frameworks/base/core/tests/coretests/src/android/widget/expandablelistview/
ExpandableListWithHeaders.java 21 import android.widget.Button;
45 Button header = new Button(this);
51 Button footer = new Button(this);
  /development/samples/ApiDemos/src/com/example/android/apis/app/
StatusBarNotifications.java 28 import android.widget.Button;
47 Button button; local
52 button = (Button) findViewById(R.id.happy);
53 button.setOnClickListener(new Button.OnClickListener() {
60 button = (Button) findViewById(R.id.neutral);
61 button.setOnClickListener(new Button.OnClickListener()
    [all...]
  /development/samples/ApiDemos/tests/src/com/example/android/apis/view/
Focus2ActivityTest.java 24 import android.widget.Button;
47 private Button mLeftButton;
48 private Button mCenterButton;
49 private Button mRightButton;
64 mLeftButton = (Button) a.findViewById(R.id.leftButton);
65 mCenterButton = (Button) a.findViewById(R.id.centerButton);
66 mRightButton = (Button) a.findViewById(R.id.rightButton);
77 assertTrue("center button should be right of left button",
79 assertTrue("right button should be right of center button"
    [all...]

Completed in 310 milliseconds

1 2 3 4 5 6 7 8 91011>>