Home | History | Annotate | Download | only in template

Lines Matching refs:button

35 import android.widget.Button;
72 final Button button = mixin.addButton("foobar", R.style.SuwGlifButton_Primary);
74 assertNotNull(button);
76 button.setId(id);
79 assertEquals("foobar", button.getText());
82 assertEquals(dp2Px(16), button.getPaddingLeft());
83 assertEquals(dp2Px(16), button.getPaddingRight());
89 final Button button = mixin.addButton(R.string.suw_next_button_label,
92 assertNotNull(button);
93 button.setTag("button");
94 assertNotNull(mStubParent.findViewWithTag("button"));
96 assertEquals("Next", button.getText());
99 assertEquals(dp2Px(16), button.getPaddingLeft());
100 assertEquals(dp2Px(16), button.getPaddingRight());
119 final Button fooButton = mixin.addButton("foo", R.style.SuwGlifButton_Secondary);
120 final Button barButton = mixin.addButton("bar", R.style.SuwGlifButton_Secondary);
124 assertNotNull("Foo button should exist", mStubParent.findViewWithTag("foo"));
125 assertNotNull("Bar button should exist", mStubParent.findViewWithTag("bar"));
129 assertNull("Foo button should be removed", mStubParent.findViewWithTag("foo"));
130 assertNotNull("Bar button should not be removed", mStubParent.findViewWithTag("bar"));
136 final Button fooButton = mixin.addButton("foo", R.style.SuwGlifButton_Secondary);
141 assertNotNull("Foo button should exist", mStubParent.findViewWithTag("foo"));
146 assertNotNull("Foo button should not be removed", mStubParent.findViewWithTag("foo"));
153 final Button fooButton = mixin.addButton("foo", R.style.SuwGlifButton_Secondary);
158 assertNotNull("Foo button should exist", mStubParent.findViewWithTag("foo"));
163 assertNull("Foo button should be removed", mStubParent.findViewWithTag("foo"));