public TableLayoutAssert isNotShrinkableColumn(int index) { isNotNull(); assertThat(actual.isColumnShrinkable(index)) // .overridingErrorMessage("Expected column %s to not be shrinkable but was.", index) // .isFalse(); return this; }
public TableLayoutAssert isShrinkableColumn(int index) { isNotNull(); assertThat(actual.isColumnShrinkable(index)) // .overridingErrorMessage("Expected column %s to be shrinkable but was not.", index) // .isTrue(); return this; }
public TableLayoutAssert isShrinkableColumn(int index) { isNotNull(); assertThat(actual.isColumnShrinkable(index)) // .overridingErrorMessage("Expected column %s to be shrinkable but was not.", index) // .isTrue(); return this; }
public TableLayoutAssert isNotShrinkableColumn(int index) { isNotNull(); assertThat(actual.isColumnShrinkable(index)) // .overridingErrorMessage("Expected column %s to not be shrinkable but was.", index) // .isFalse(); return this; }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.table_layout_9); 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) { mShrink = !mShrink; table.setColumnShrinkable(0, mShrink); } }); mShrink = table.isColumnShrinkable(0); } }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.table_layout_9); 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) { mShrink = !mShrink; table.setColumnShrinkable(0, mShrink); } }); mShrink = table.isColumnShrinkable(0); } }