@Test public void testLayout() { Assume.assumeTrue(VERSION.SDK_INT >= VERSION_CODES.LOLLIPOP); SwitchItem item = new SwitchItem(); LayoutInflater inflater = LayoutInflater.from(application); ViewGroup layout = (ViewGroup) inflater.inflate(item.getDefaultLayoutResource(), null); assertThat(layout.getClipToPadding()).isFalse(); }
@Override protected int getDefaultLayoutResource() { return R.layout.suw_items_switch; }
SwitchItem extends Item implements CompoundButton.OnCheckedChangeListener { @Override protected int getDefaultLayoutResource() { return R.layout.suw_items_switch; } }
SwitchItem extends Item implements CompoundButton.OnCheckedChangeListener { @Override protected int getDefaultLayoutResource() { return R.layout.suw_items_switch; } SwitchItem();  SwitchItem(Context context, AttributeSet attrs); }
SwitchItem extends Item implements CompoundButton.OnCheckedChangeListener { @Override protected int getDefaultLayoutResource() { return R.layout.suw_items_switch; } SwitchItem();  SwitchItem(Context context, AttributeSet attrs); void setChecked(boolean checked); boolean isChecked(); void toggle(View view); @Override void onBindView(View view); void setOnCheckedChangeListener(OnCheckedChangeListener listener); @Override void onCheckedChanged(CompoundButton buttonView, boolean isChecked); }
SwitchItem extends Item implements CompoundButton.OnCheckedChangeListener { @Override protected int getDefaultLayoutResource() { return R.layout.suw_items_switch; } SwitchItem();  SwitchItem(Context context, AttributeSet attrs); void setChecked(boolean checked); boolean isChecked(); void toggle(View view); @Override void onBindView(View view); void setOnCheckedChangeListener(OnCheckedChangeListener listener); @Override void onCheckedChanged(CompoundButton buttonView, boolean isChecked);  }