@Test public void testSetTheme() { TestButtonItem item = new TestButtonItem(); item.setTheme(R.style.SuwButtonItem_Colored); final Button button = item.createButton(mParent); assertEquals("ButtonItem theme should be SuwButtonItem.Colored", R.style.SuwButtonItem_Colored, item.getTheme()); assertNotNull(button.getContext().getTheme()); }
public void setTheme(int theme) { mTheme = theme; mButton = null; }
ButtonItem extends AbstractItem implements View.OnClickListener { public void setTheme(int theme) { mTheme = theme; mButton = null; } }
ButtonItem extends AbstractItem implements View.OnClickListener { public void setTheme(int theme) { mTheme = theme; mButton = null; } ButtonItem();  ButtonItem(Context context, AttributeSet attrs); }
ButtonItem extends AbstractItem implements View.OnClickListener { public void setTheme(int theme) { mTheme = theme; mButton = null; } ButtonItem();  ButtonItem(Context context, AttributeSet attrs); void setOnClickListener(OnClickListener listener); void setText(CharSequence text); CharSequence getText(); void setTheme(int theme); int getTheme(); void setEnabled(boolean enabled); @Override int getCount(); @Override boolean isEnabled(); @Override int getLayoutResource(); @Override final void onBindView(View view); @Override void onClick(View v); }
ButtonItem extends AbstractItem implements View.OnClickListener { public void setTheme(int theme) { mTheme = theme; mButton = null; } ButtonItem();  ButtonItem(Context context, AttributeSet attrs); void setOnClickListener(OnClickListener listener); void setText(CharSequence text); CharSequence getText(); void setTheme(int theme); int getTheme(); void setEnabled(boolean enabled); @Override int getCount(); @Override boolean isEnabled(); @Override int getLayoutResource(); @Override final void onBindView(View view); @Override void onClick(View v);  }