@Test public void testAddButton() { ButtonFooterMixin mixin = new ButtonFooterMixin(mTemplateLayout); final Button button = mixin.addButton("foobar", R.style.SuwGlifButton_Primary); assertNotNull(button); @IdRes final int id = 12345; button.setId(id); assertNotNull(mStubParent.findViewById(id)); assertEquals("foobar", button.getText()); assertEquals(dp2Px(16), button.getPaddingLeft()); assertEquals(dp2Px(16), button.getPaddingRight()); }
public Button addButton(CharSequence text, @StyleRes int theme) { Button button = createThemedButton(mContext, theme); button.setText(text); return addButton(button); }
ButtonFooterMixin implements Mixin { public Button addButton(CharSequence text, @StyleRes int theme) { Button button = createThemedButton(mContext, theme); button.setText(text); return addButton(button); } }
ButtonFooterMixin implements Mixin { public Button addButton(CharSequence text, @StyleRes int theme) { Button button = createThemedButton(mContext, theme); button.setText(text); return addButton(button); } ButtonFooterMixin(TemplateLayout layout); }
ButtonFooterMixin implements Mixin { public Button addButton(CharSequence text, @StyleRes int theme) { Button button = createThemedButton(mContext, theme); button.setText(text); return addButton(button); } ButtonFooterMixin(TemplateLayout layout); Button addButton(CharSequence text, @StyleRes int theme); Button addButton(@StringRes int text, @StyleRes int theme); Button addButton(Button button); View addSpace(); void removeButton(Button button); void removeSpace(View space); void removeAllViews(); }
ButtonFooterMixin implements Mixin { public Button addButton(CharSequence text, @StyleRes int theme) { Button button = createThemedButton(mContext, theme); button.setText(text); return addButton(button); } ButtonFooterMixin(TemplateLayout layout); Button addButton(CharSequence text, @StyleRes int theme); Button addButton(@StringRes int text, @StyleRes int theme); Button addButton(Button button); View addSpace(); void removeButton(Button button); void removeSpace(View space); void removeAllViews();  }