Code example for TableRow

Methods: setVisibility

0
 
  /** 
   * Updates the UI state based on the current selection. 
   */ 
  private void updateStateBySelection() { 
    mapsOptionTableRow.setVisibility(sendMaps() ? View.VISIBLE : View.GONE);
    send.setEnabled(sendMaps() || sendFusionTables() || sendDocs());
  } 
 
  /** 
   * Saves the UI state to the shared preferences. 
   */ 
  @VisibleForTesting 
  void saveState() { 
    SharedPreferences prefs = getSharedPreferences(Constants.SETTINGS_NAME, Context.MODE_PRIVATE);
    Editor editor = prefs.edit();
    editor.putBoolean(
        getString(R.string.pick_existing_map_key), existingMapRadioButton.isChecked());
    if (sendRequest.isShowAll()) {
      editor.putBoolean(getString(R.string.send_to_maps_key), sendMaps());
      editor.putBoolean(getString(R.string.send_to_fusion_tables_key), sendFusionTables());