/developers/samples/android/ui/views/TextSwitcher/TextSwitcherSample/src/main/java/com/example/android/textswitcher/ |
MainActivity.java | 25 import android.widget.Button; 65 * Setup the 'next' button. The counter is incremented when clicked and 69 Button nextButton = (Button) findViewById(R.id.button);
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
FragmentAlertDialog.java | 30 import android.widget.Button; 46 // Watch for button clicks. 47 Button button = (Button)findViewById(R.id.show); local 48 button.setOnClickListener(new OnClickListener() {
|
FragmentDialogOrActivity.java | 30 import android.widget.Button; 49 // Watch for button clicks. 50 Button button = (Button)findViewById(R.id.show_dialog); local 51 button.setOnClickListener(new OnClickListener() {
|
/development/samples/ApiDemos/src/com/example/android/apis/preference/ |
LaunchingPreferences.java | 28 import android.widget.Button; 58 // Create a simple button that will launch the preferences 59 Button launchPreferences = new Button(this); 74 // When the button is clicked, launch an activity through this intent
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
RadioGroup1.java | 26 import android.widget.Button; 44 // test adding a radio button programmatically 60 Button clearButton = (Button) findViewById(R.id.clear);
|
/development/samples/BusinessCard/src/com/example/android/businesscard/ |
BusinessCardActivity.java | 26 import android.widget.Button; 30 * A simple activity that shows a "Pick Contact" button and two fields: contact's name 31 * and phone number. The user taps on the Pick Contact button to bring up 58 // Install a click handler on the Pick Contact button 59 Button pickContact = (Button)findViewById(R.id.pick_contact_button); 69 * Click handler for the Pick Contact button. Invokes a contact picker activity.
|
/development/samples/MultiResolution/src/com/example/android/multires/ |
MultiRes.java | 22 import android.widget.Button; 42 // Handle clicks on the 'Next' button. 43 Button nextButton = (Button) findViewById(R.id.next_button);
|
/development/samples/SkeletonApp/src/com/example/android/skeletonapp/ |
SkeletonActivity.java | 26 import android.widget.Button; 56 // Hook up button presses to the appropriate event handler. 57 ((Button) findViewById(R.id.back)).setOnClickListener(mBackListener); 58 ((Button) findViewById(R.id.clear)).setOnClickListener(mClearListener); 119 * A call-back for when the user presses the back button. 128 * A call-back for when the user presses the clear button.
|
/development/samples/Support4Demos/src/com/example/android/supportv4/app/ |
FragmentAlertDialogSupport.java | 31 import android.widget.Button; 47 // Watch for button clicks. 48 Button button = (Button)findViewById(R.id.show); local 49 button.setOnClickListener(new OnClickListener() {
|
FragmentDialogOrActivitySupport.java | 29 import android.widget.Button; 48 // Watch for button clicks. 49 Button button = (Button)findViewById(R.id.show_dialog); local 50 button.setOnClickListener(new OnClickListener() {
|
/development/samples/browseable/TextSwitcher/src/com.example.android.textswitcher/ |
MainActivity.java | 25 import android.widget.Button; 65 * Setup the 'next' button. The counter is incremented when clicked and 69 Button nextButton = (Button) findViewById(R.id.button);
|
/development/samples/training/testingfun/app/tests/src/com/example/android/testingfun/tests/lesson5/ |
SenderActivityTest.java | 26 import android.widget.Button; 65 final Button sendToReceiverButton = (Button) mSenderActivity
|
/development/tutorials/NotepadCodeLab/Notepadv2Solution/src/com/android/demo/notepad2/ |
NoteEdit.java | 23 import android.widget.Button; 41 Button confirmButton = (Button) findViewById(R.id.confirm);
|
/development/tutorials/NotepadCodeLab/Notepadv3/src/com/android/demo/notepad3/ |
NoteEdit.java | 23 import android.widget.Button; 41 Button confirmButton = (Button) findViewById(R.id.confirm);
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
TestFragment.java | 10 import android.widget.Button; 55 Button button = new Button(context); local 56 button.setId(R.id.button); 58 view.addView(button);
|
/frameworks/base/core/tests/coretests/src/android/view/ |
DrawableBgMinSize.java | 27 import android.widget.Button; 44 private Button mChangeBackgroundsButton; 61 mChangeBackgroundsButton = (Button) findViewById(R.id.change_backgrounds);
|
SetTagsTest.java | 23 import android.widget.Button; 29 private Button mView; 39 mView = (Button) getActivity().findViewById(R.id.disabledButton);
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/ |
ListItemFocusablesFarApartTest.java | 24 import android.widget.Button; 74 assertTrue("second button should be more than max scroll away from first", 84 final Button topButton = (Button) getChildOfItem(0, 0); 89 if (counter > 5) fail("couldn't reach next button within " + counter + " downs"); 92 assertFalse("after " + counter + " downs, top button not visible, should not have focus", 94 assertFalse("after " + counter + " downs, neither top button nor botom button visible, nothng within first list " + 97 assertTrue("after " + counter + " downs, top button still visible, should have focus", 110 // at this point, the second button is visible on screen [all...] |
/frameworks/base/tests/BiDiTests/src/com/android/bidi/ |
BiDiTestBasic.java | 28 import android.widget.Button; 34 private Button alertDialogButton; 48 alertDialogButton = (Button) currentView.findViewById(R.id.button_alert_dialog);
|
/frameworks/base/tests/GridLayoutTest/src/com/android/test/layout/ |
AbstractLayoutTest.java | 25 import android.widget.Button; 37 Button result = new Button(context);
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
GetBitmapActivity.java | 28 import android.widget.Button; 49 Button button = new Button(this); local 50 button.setText("Copy bitmap to /sdcard/textureview.png"); 51 button.setOnClickListener(new View.OnClickListener() { 74 content.addView(button, new FrameLayout.LayoutParams(
|
/frameworks/base/tests/LargeAssetTest/src/com/android/largeassettest/ |
LargeAssetTest.java | 26 import android.widget.Button; 37 Button mValidateButton; 47 mValidateButton = (Button) findViewById(R.id.validate);
|
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/ |
Reparenting.java | 25 import android.widget.Button; 50 Button button = new Button(this); local 51 button.setText(Integer.toString(i)); 52 button.setOnClickListener(mButtonListener); 53 parent.addView(button);
|
SequenceTestSimple.java | 25 import android.widget.Button; 33 Button mRemovingButton, mInvisibleButton, mGoneButton; 48 mRemovingButton = (Button) findViewById(R.id.removingButton);
|
/packages/apps/Calendar/src/com/android/calendar/ |
EditResponseHelper.java | 23 import android.widget.Button; 37 * and is invoked when the "Ok" button is selected. 102 // Enable the "ok" button now that the user has selected which 104 Button ok = mAlertDialog.getButton(DialogInterface.BUTTON_POSITIVE); 125 // we try to fetch the "Ok" button. 140 // Disable the "Ok" button until the user selects which events to 142 Button ok = dialog.getButton(DialogInterface.BUTTON_POSITIVE);
|