public TableLayoutAssert isStretchableColumn(int index) { isNotNull(); assertThat(actual.isColumnStretchable(index)) // .overridingErrorMessage("Expected column %s to be stretchable but was not.") // .isTrue(); return this; }
public TableLayoutAssert isNotStretchableColumn(int index) { isNotNull(); assertThat(actual.isColumnStretchable(index)) // .overridingErrorMessage("Expected column %s to not be stretchable but was.") // .isFalse(); return this; } }
public TableLayoutAssert isStretchableColumn(int index) { isNotNull(); assertThat(actual.isColumnStretchable(index)) // .overridingErrorMessage("Expected column %s to be stretchable but was not.") // .isTrue(); return this; }
public TableLayoutAssert isNotStretchableColumn(int index) { isNotNull(); assertThat(actual.isColumnStretchable(index)) // .overridingErrorMessage("Expected column %s to not be stretchable but was.") // .isFalse(); return this; } }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.table_layout_8); final TableLayout table = (TableLayout) findViewById(R.id.menu); Button button = (Button) findViewById(R.id.toggle); button.setOnClickListener(new Button.OnClickListener() { public void onClick(View v) { mStretch = !mStretch; table.setColumnStretchable(1, mStretch); } }); mStretch = table.isColumnStretchable(1); appendRow(table); }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.table_layout_8); final TableLayout table = (TableLayout) findViewById(R.id.menu); Button button = (Button) findViewById(R.id.toggle); button.setOnClickListener(new Button.OnClickListener() { public void onClick(View v) { mStretch = !mStretch; table.setColumnStretchable(1, mStretch); } }); mStretch = table.isColumnStretchable(1); appendRow(table); }