Home
last modified time | relevance | path

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

12345678910>>...20

/frameworks/support/v4/java/android/support/v4/widget/
DCompoundButtonCompat.java50 void setButtonTintList(CompoundButton button, ColorStateList tint); in setButtonTintList() argument
51 ColorStateList getButtonTintList(CompoundButton button); in getButtonTintList() argument
52 void setButtonTintMode(CompoundButton button, PorterDuff.Mode tintMode); in setButtonTintMode() argument
53 PorterDuff.Mode getButtonTintMode(CompoundButton button); in getButtonTintMode() argument
54 Drawable getButtonDrawable(CompoundButton button); in getButtonDrawable() argument
59 public void setButtonTintList(CompoundButton button, ColorStateList tint) { in setButtonTintList() argument
60 CompoundButtonCompatDonut.setButtonTintList(button, tint); in setButtonTintList()
64 public ColorStateList getButtonTintList(CompoundButton button) { in getButtonTintList() argument
65 return CompoundButtonCompatDonut.getButtonTintList(button); in getButtonTintList()
69 public void setButtonTintMode(CompoundButton button, PorterDuff.Mode tintMode) { in setButtonTintMode() argument
[all …]
/frameworks/support/v4/donut/android/support/v4/widget/
DCompoundButtonCompatDonut.java34 static void setButtonTintList(CompoundButton button, ColorStateList tint) { in setButtonTintList() argument
35 if (button instanceof TintableCompoundButton) { in setButtonTintList()
36 ((TintableCompoundButton) button).setSupportButtonTintList(tint); in setButtonTintList()
40 static ColorStateList getButtonTintList(CompoundButton button) { in getButtonTintList() argument
41 if (button instanceof TintableCompoundButton) { in getButtonTintList()
42 return((TintableCompoundButton) button).getSupportButtonTintList(); in getButtonTintList()
47 static void setButtonTintMode(CompoundButton button, PorterDuff.Mode tintMode) { in setButtonTintMode() argument
48 if (button instanceof TintableCompoundButton) { in setButtonTintMode()
49 ((TintableCompoundButton) button).setSupportButtonTintMode(tintMode); in setButtonTintMode()
53 static PorterDuff.Mode getButtonTintMode(CompoundButton button) { in getButtonTintMode() argument
[all …]
/frameworks/support/v4/api21/android/support/v4/widget/
DCompoundButtonCompatLollipop.java25 static void setButtonTintList(CompoundButton button, ColorStateList tint) { in setButtonTintList() argument
26 button.setButtonTintList(tint); in setButtonTintList()
29 static ColorStateList getButtonTintList(CompoundButton button) { in getButtonTintList() argument
30 return button.getButtonTintList(); in getButtonTintList()
33 static void setButtonTintMode(CompoundButton button, PorterDuff.Mode tintMode) { in setButtonTintMode() argument
34 button.setButtonTintMode(tintMode); in setButtonTintMode()
37 static PorterDuff.Mode getButtonTintMode(CompoundButton button) { in getButtonTintMode() argument
38 return button.getButtonTintMode(); in getButtonTintMode()
/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/
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()
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()
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 …]
Dtogglebutton.jd22 <p>A toggle button allows the user to change a setting between two states.</p>
24 <p>You can add a basic toggle button to your layout with the {@link android.widget.ToggleButton}
25 object. Android 4.0 (API level 14) introduces another kind of toggle button called a switch that
29 If you need to change a button's state yourself, you can use the {@link
47 To detect when the user activates the button or switch, create an {@link
49 to the button by calling {@link
/frameworks/base/tests/VectorDrawableTest/src/com/android/test/dynamic/
DAnimatedVectorDrawableTest.java54 Button button = new Button(this); in onCreate() local
55 button.setWidth(400); in onCreate()
56 button.setHeight(400); in onCreate()
57 button.setBackgroundResource(icon[i]); in onCreate()
58 AnimatedVectorDrawable d = (AnimatedVectorDrawable) button.getBackground(); in onCreate()
71 container.addView(button); in onCreate()
72 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()
/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/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/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/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/support/graphics/drawable/testanimated/src/android/support/test/vectordrawable/
DTestAVDActivity.java84 Button button = new Button(this); in addDrawableButtons() local
85 button.setWidth(200); in addDrawableButtons()
86 button.setHeight(200); in addDrawableButtons()
87 button.setBackgroundDrawable(d[i]); in addDrawableButtons()
88 container.addView(button); in addDrawableButtons()
89 button.setOnClickListener(this); in addDrawableButtons()
/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/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/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/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 …]

12345678910>>...20