Home
last modified time | relevance | path

Searched refs:button (Results 1 – 25 of 399) sorted by relevance

12345678910>>...16

/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/
DUniqueIds.java45 Button button = (Button) inflater.inflate(R.layout.button_template, null); in onCreate() local
46 container.addView(button); in onCreate()
47 ToggleScene scene = new ToggleScene(container, button); in onCreate()
48 mSceneMap.put(button, scene); in onCreate()
49 button = (Button) inflater.inflate(R.layout.button_template, null); in onCreate()
50 container.addView(button); in onCreate()
51 scene = new ToggleScene(container, button); in onCreate()
52 mSceneMap.put(button, scene); in onCreate()
64 ToggleScene(ViewGroup rootView, Button button) { in ToggleScene() argument
66 mButton = button; in ToggleScene()
DReparenting.java50 Button button = new Button(this); in setupButtons() local
51 button.setText(Integer.toString(i)); in setupButtons()
52 button.setOnClickListener(mButtonListener); in setupButtons()
53 parent.addView(button); in setupButtons()
/frameworks/base/core/tests/coretests/src/android/widget/focus/
DVerticalFocusSearch.java102 Button button = new MyButton(this); in makeWide() local
103 button.setText(label); in makeWide()
104 button.setLayoutParams(new LinearLayout.LayoutParams( in makeWide()
107 return button; in makeWide()
119 Button button = new MyButton(this); in addSkinny() local
120 button.setText(label); in addSkinny()
121 button.setLayoutParams(new LinearLayout.LayoutParams( in addSkinny()
141 ll.addView(button); in addSkinny()
144 ll.addView(button); in addSkinny()
148 return button; in addSkinny()
DHorizontalFocusSearch.java94 Button button = new MyButton(this); in makeTall() local
95 button.setText(label); in makeTall()
96 button.setLayoutParams(new LinearLayout.LayoutParams( in makeTall()
99 return button; in makeTall()
103 Button button = new MyButton(this); in addShort() local
104 button.setText(label); in addShort()
105 button.setLayoutParams(new LinearLayout.LayoutParams( in addShort()
125 ll.addView(button); in addShort()
128 ll.addView(button); in addShort()
132 return button; in addShort()
DListOfButtonsTest.java52 mButtonAtTop = (Button) a.findViewById(R.id.button); in setUp()
111 Button button = (Button) mListView.getSelectedView(); in TODO_testNavigateThroughAllButtonsAndBack() local
112 assertNotNull(indexInfo, button); in TODO_testNavigateThroughAllButtonsAndBack()
113 assertEquals(indexInfo, label, button.getText().toString()); in TODO_testNavigateThroughAllButtonsAndBack()
114 assertTrue(indexInfo, button.hasFocus()); in TODO_testNavigateThroughAllButtonsAndBack()
128 Button button = (Button) mListView.getSelectedView(); in TODO_testNavigateThroughAllButtonsAndBack() local
129 assertNotNull(indexInfo, button); in TODO_testNavigateThroughAllButtonsAndBack()
130 assertEquals(indexInfo, label, button.getText().toString()); in TODO_testNavigateThroughAllButtonsAndBack()
131 assertTrue(indexInfo, button.hasFocus()); in TODO_testNavigateThroughAllButtonsAndBack()
/frameworks/base/docs/html/guide/topics/ui/controls/
Dbutton.jd2 page.tags=button,imagebutton
16 <li><a href="#Borderless">Borderless button</a></li>
30 <p>A button consists of text or an icon (or both text and an icon) that communicates what action
33 <img src="{@docRoot}images/ui/button-types.png" alt="" />
35 <p>Depending on whether you want a button with text, an icon, or both, you can create the
36 button in your layout in three ways:</p>
72 <p>When the user clicks a button, the {@link android.widget.Button} object receives
75 <p>To define the click event handler for a button, add the {@link
81 <p>For example, here's a layout with a button using {@link
98 /** Called when the user touches the button */
[all …]
/frameworks/base/tests/ImfTest/src/com/android/imftest/samples/
DOneEditTextActivityNotSelected.java53 Button button = new Button(this); in onCreate() local
54 button.setText("The focus is here."); in onCreate()
55 button.setFocusableInTouchMode(true); in onCreate()
56 button.requestFocus(); in onCreate()
57 mDefaultFocusedView = button; in onCreate()
58 layout.addView(button); in onCreate()
/frameworks/base/tests/VectorDrawableTest/src/com/android/test/dynamic/
DAnimatedVectorDrawableTest.java51 Button button = new Button(this); in onCreate() local
52 button.setWidth(400); in onCreate()
53 button.setHeight(400); in onCreate()
54 button.setBackgroundResource(icon[i]); in onCreate()
55 container.addView(button); in onCreate()
56 button.setOnClickListener(this); in onCreate()
DVectorDrawable01.java59 Button button = new Button(this); in onCreate() local
60 bArray[i] = button; in onCreate()
61 button.setWidth(200); in onCreate()
62 button.setBackgroundResource(icon[i]); in onCreate()
63 container.addView(button); in onCreate()
64 VectorDrawable vd = (VectorDrawable) button.getBackground(); in onCreate()
DAnimatedStateVectorDrawableTest.java52 CheckBox button = new CheckBox(this); in onCreate() local
53 button.setWidth(400); in onCreate()
54 button.setHeight(400); in onCreate()
55 button.setBackgroundResource(icon[i]); in onCreate()
56 container.addView(button); in onCreate()
DVectorDrawableAnimation.java31 final Button button = new Button(this); in onCreate() local
32 button.setBackgroundResource(R.drawable.animation_drawable_vector); in onCreate()
34 button.setOnClickListener(new View.OnClickListener() { in onCreate()
43 setContentView(button); in onCreate()
DBitmapDrawableDupe.java66 Button button = new Button(this); in onCreate() local
67 button.setWidth(200); in onCreate()
68 button.setBackgroundResource(icon[i]); in onCreate()
69 container.addView(button); in onCreate()
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/
DEffectsTest.java52 Button button = (Button) findViewById(R.id.env_reverb_actvity); in onCreate() local
53 button.setOnClickListener(new OnClickListener() { in onCreate()
59 button = (Button) findViewById(R.id.preset_reverb_actvity); in onCreate()
60 button.setOnClickListener(new OnClickListener() { in onCreate()
66 button = (Button) findViewById(R.id.equalizer_actvity); in onCreate()
67 button.setOnClickListener(new OnClickListener() { in onCreate()
73 button = (Button) findViewById(R.id.virtualizer_actvity); in onCreate()
74 button.setOnClickListener(new OnClickListener() { in onCreate()
80 button = (Button) findViewById(R.id.bassboost_actvity); in onCreate()
81 button.setOnClickListener(new OnClickListener() { in onCreate()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/scroll/arrowscroll/
DShortButtonsTest.java61 final Button button = getActivity().getButtonAt(i); in testScrollDownToBottomThroughButtons() local
62 assertTrue(prefix + " to have focus", button.isFocused()); in testScrollDownToBottomThroughButtons()
63 assertTrue(prefix + " to be on screen", isButtonOnScreen(button)); in testScrollDownToBottomThroughButtons()
90 final Button button = getActivity().getButtonAt(i); in testScrollFromBottomToTopThroughButtons() local
91 assertTrue(prefix + " to have focus", button.isFocused()); in testScrollFromBottomToTopThroughButtons()
92 assertTrue(prefix + " to be on screen", isButtonOnScreen(button)); in testScrollFromBottomToTopThroughButtons()
/frameworks/base/tests/SslLoad/src/com/android/sslload/
DSslLoad.java48 private Button button; field in SslLoad
59 button = new Button(this); in onCreate()
60 button.setText("GO"); in onCreate()
61 button.setOnClickListener(this); in onCreate()
63 setContentView(button); in onCreate()
78 button.setText(running ? "STOP" : "GO"); in onClick()
/frameworks/base/core/tests/coretests/src/android/util/
DListItemFactory.java119 final Button button = new Button(context); in horizontalButtonSlots() local
120 button.setText("left"); in horizontalButtonSlots()
121 ll.addView(button, lp); in horizontalButtonSlots()
127 final Button button = new Button(context); in horizontalButtonSlots() local
128 button.setText("center"); in horizontalButtonSlots()
129 ll.addView(button, lp); in horizontalButtonSlots()
135 final Button button = new Button(context); in horizontalButtonSlots() local
136 button.setText("right"); in horizontalButtonSlots()
137 ll.addView(button, lp); in horizontalButtonSlots()
155 public static View button(int position, Context context, String text, int desiredHeight) { in button() method in ListItemFactory
DScrollViewScenario.java131 final Button button = new Button(context); in addButton()
132 button.setText(text); in addButton()
133 return button; in addButton()
183 final Button button = new Button(context); in addVerticalLLOfButtons()
184 button.setText(prefix + i); in addVerticalLLOfButtons()
185 ll.addView(button, lp); in addVerticalLLOfButtons()
/frameworks/base/docs/html-intl/intl/zh-cn/distribute/tools/promote/
Dbadges.jd15 <style type="text/css">form.button-form {
30 div.button-row {
34 div.button-row input {
38 #jd-content div.button-row img {
49 // variables for creating 'try it out' demo button
80 $("#button-preview").html(linkStart + "apps/details?id=" + packageName
92 $("#button-preview").html(linkStart + "search?q=pub:" + publisherName
145 $("div.button-row.error").remove(); // remove any existing instance of error message
147 $("div.button-row.app").hide();
148 …$("div.button-row.app").after('<div class="button-row error"><p class="note" style="margin:1em 0 -…
[all …]
/frameworks/base/core/tests/coretests/src/android/animation/
DAnimatorSetEventsTest.java31 Button button; field in AnimatorSetEventsTest
37 button = (Button) getActivity().findViewById(R.id.animatingButton); in setUp()
77 button.setTranslationX(value); in setTranslationX()
82 button.setTranslationY(value); in setTranslationY()
/frameworks/base/tests/ImfTest/tests/src/com/android/imftest/samples/
DButtonActivityTest.java35 final Button button = (Button) mTargetActivity.findViewById(ButtonActivity.BUTTON_ID); in testButtonActivatesIme() local
41 button.requestFocus(); in testButtonActivatesIme()
55 destructiveCheckImeInitialState(mTargetActivity.getRootView(), button); in testButtonActivatesIme() local
/frameworks/base/core/java/com/android/internal/app/
DHeavyWeightSwitcherActivity.java80 View button = findViewById((R.id.switch_old)); in onCreate() local
81 button.setOnClickListener(mSwitchOldListener); in onCreate()
82 button = findViewById((R.id.switch_new)); in onCreate()
83 button.setOnClickListener(mSwitchNewListener); in onCreate()
84 button = findViewById((R.id.cancel)); in onCreate()
85 button.setOnClickListener(mCancelListener); in onCreate()
/frameworks/base/docs/html/training/design-navigation/
Dancestral-temporal.jd35 button is respected to respect Android conventions.</p>
46 system. All Android users expect the <em>Back</em> button to take them to the previous screen,
49 you back at the Launcher, after which the <em>Back</em> button will do nothing.</p>
53 alt="The Back button behavior after entering the Email app from the People (or Contacts) app"
56 <p class="img-caption"><strong>Figure 1.</strong> The <em>Back</em> button behavior after entering
60 <p>Applications generally don't have to worry about managing the <em>Back</em> button themselves;
63 button by default simply traverses this list of screens, removing the current screen from the list
69 behavior when users press the device's <em>Back</em> button. Upon reaching the beginning of the
71 <em>Back</em> button.</p>
78 button, or a <em>Home</em> button at the top-left of the screen, usually as a component of the
[all …]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DGetBitmapActivity.java49 Button button = new Button(this); in onCreate() local
50 button.setText("Copy bitmap to /sdcard/textureview.png"); in onCreate()
51 button.setOnClickListener(new View.OnClickListener() { in onCreate()
74 content.addView(button, new FrameLayout.LayoutParams( in onCreate()
/frameworks/base/docs/html/distribute/tools/promote/
Dbadges.jd27 form.button-form {
46 div.button-row {
51 div.button-row input {
56 #jd-content div.button-row img {
68 // variables for creating 'try it out' demo button
99 $("#button-preview").html(linkStart + "apps/details?id=" + packageName
111 $("#button-preview").html(linkStart + "search?q=pub:" + publisherName
164 $("div.button-row.error").remove(); // remove any existing instance of error message
166 $("div.button-row.app").hide();
167 …$("div.button-row.app").after('<div class="button-row error"><p class="note" style="margin:1em 0 -…
[all …]
/frameworks/base/docs/html/design/downloads/
Dindex.jd29 …<!--<a class="download-button" onClick="ga('send', 'event', 'Design', 'Download', 'Fireworks Sten…
31 …<a class="download-button" onClick="ga('send', 'event', 'Design', 'Download', 'Illustrator Stenci…
33 …<a class="download-button" onClick="ga('send', 'event', 'Design', 'Download', 'OmniGraffle Stenci…
35 …<a class="download-button" onClick="ga('send', 'event', 'Design', 'Download', 'Photoshop Sources'…
67 …<a class="download-button" onClick="ga('send', 'event', 'Design', 'Download', 'Action Bar Icons')…
92 …<a class="download-button" onClick="ga('send', 'event', 'Design', 'Download', 'Wear Toolkit AI');"
95 …<a class="download-button" onClick="ga('send', 'event', 'Design', 'Download', 'Wear Toolkit PDF')…
113 …<a class="download-button" onClick="ga('send', 'event', 'Design', 'Download', 'Wear App Patterns …
115 …<a class="download-button" onClick="ga('send', 'event', 'Design', 'Download', 'Wear App Patterns …
134 …<a class="download-button" onClick="ga('send', 'event', 'Design', 'Download', 'Wear Sample PSD Mo…
[all …]

12345678910>>...16