public TableLayoutAssert isNotCollapsedColumn(int index) { isNotNull(); assertThat(actual.isColumnCollapsed(index)) // .overridingErrorMessage("Expected column %s to not be collapsed but was.", index) // .isFalse(); return this; }
public TableLayoutAssert isCollapsedColumn(int index) { isNotNull(); assertThat(actual.isColumnCollapsed(index)) // .overridingErrorMessage("Expected column %s to be collapsed but was not.", index) // .isTrue(); return this; }
public TableLayoutAssert isCollapsedColumn(int index) { isNotNull(); assertThat(actual.isColumnCollapsed(index)) // .overridingErrorMessage("Expected column %s to be collapsed but was not.", index) // .isTrue(); return this; }
public TableLayoutAssert isNotCollapsedColumn(int index) { isNotNull(); assertThat(actual.isColumnCollapsed(index)) // .overridingErrorMessage("Expected column %s to not be collapsed but was.", index) // .isFalse(); return this; }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.table_layout_7); final TableLayout table = (TableLayout) findViewById(R.id.menu); Button button = (Button) findViewById(R.id.toggle1); button.setOnClickListener(new Button.OnClickListener() { public void onClick(View v) { mShortcutsCollapsed = !mShortcutsCollapsed; table.setColumnCollapsed(2, mShortcutsCollapsed); } }); button = (Button) findViewById(R.id.toggle2); button.setOnClickListener(new Button.OnClickListener() { public void onClick(View v) { mCheckmarksCollapsed = !mCheckmarksCollapsed; table.setColumnCollapsed(0, mCheckmarksCollapsed); } }); mCheckmarksCollapsed = table.isColumnCollapsed(0); mShortcutsCollapsed = table.isColumnCollapsed(2); appendRow(table); }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.table_layout_7); final TableLayout table = (TableLayout) findViewById(R.id.menu); Button button = (Button) findViewById(R.id.toggle1); button.setOnClickListener(new Button.OnClickListener() { public void onClick(View v) { mShortcutsCollapsed = !mShortcutsCollapsed; table.setColumnCollapsed(2, mShortcutsCollapsed); } }); button = (Button) findViewById(R.id.toggle2); button.setOnClickListener(new Button.OnClickListener() { public void onClick(View v) { mCheckmarksCollapsed = !mCheckmarksCollapsed; table.setColumnCollapsed(0, mCheckmarksCollapsed); } }); mCheckmarksCollapsed = table.isColumnCollapsed(0); mShortcutsCollapsed = table.isColumnCollapsed(2); appendRow(table); }