protected void showEvaluatorRow(boolean show) { if (show) { evaluatorRow.setVisibility(View.VISIBLE); } else { evaluatorRow.setVisibility(View.GONE); } }
public void setVisible(boolean isVisible) { if (isVisible) { measurementRow.setVisibility(View.VISIBLE); } else { measurementRow.setVisibility(View.GONE); } }
public void filter(TableLayout tl, String regex) { TableRow tr; TextView tv; Pattern p; Matcher m; p = Pattern.compile(regex); int n = tl.getChildCount(); for(int i = 0; i < n; i++) { tr = (TableRow) tl.getChildAt(i); tv = (TextView) tr.getChildAt(0); m = p.matcher(tv.getText()); if(m.find()) { tr.setVisibility(View.VISIBLE); } else { tr.setVisibility(View.GONE); } }
void bindTo(@Nullable ActivityLog activityLog) { binding.cScript.setVisibility(View.GONE); binding.cStatus.setVisibility(View.GONE); binding.cProfile.setVisibility(View.GONE); binding.cService.setVisibility(View.GONE); binding.cTime.setVisibility(View.GONE); binding.cExtra.setVisibility(View.GONE); if (activityLog == null) return; long loadTime = activityLog.time(); binding.cTime.setVisibility(View.VISIBLE); binding.tvTime.setText(tLong2Text(loadTime, context.get())); String extraInfo = activityLog.extraInfo(); if (extraInfo != null) { binding.cExtra.setVisibility(View.VISIBLE); binding.tvExtra.setText(extraInfo); ScriptSatisfactionLog log = (ScriptSatisfactionLog) activityLog; final String scriptName = (log).getScriptName(); binding.cScript.setVisibility(View.VISIBLE); binding.tvScript.setText(scriptName); final String profileName = (log).getProfileName(); if (profileName != null) { binding.cProfile.setVisibility(View.VISIBLE); binding.tvProfile.setText(profileName); binding.cStatus.setVisibility(View.VISIBLE); binding.tvStatus.setText(log.getSatisfaction() ? R.string.activity_history__satisfied
/** * loads the other shown data */ private void loadData() { int wonGames = prefs.getSavedNumberOfWonGames(); int totalGames = prefs.getSavedNumberOfPlayedGames(); int totalHintsShown = prefs.getSavedTotalHintsShown(); int totalNumberUndos = prefs.getSavedTotalNumberUndos(); long totalTime = prefs.getSavedTotalTimePlayed(); long totalPoints = prefs.getSavedTotalPointsEarned(); textWonGames.setText(String.format(Locale.getDefault(), getString(R.string.statistics_text_won_games), wonGames, totalGames)); textWinPercentage.setText(String.format(Locale.getDefault(), getString(R.string.statistics_win_percentage), totalGames > 0 ? ((float) wonGames * 100 / totalGames) : 0.0)); textTotalTimePlayed.setText(String.format(Locale.getDefault(), "%02d:%02d:%02d", totalTime / 3600, (totalTime % 3600) / 60, totalTime % 60)); textTotalHintsShown.setText(String.format(Locale.getDefault(), "%d", totalHintsShown)); textTotalNumberUndos.setText(String.format(Locale.getDefault(), "%d", totalNumberUndos)); textTotalPointsEarned.setText(String.format(Locale.getDefault(), currentGame.isPointsInDollar() ? "%d $" : "%d", totalPoints)); boolean added = currentGame.setAdditionalStatisticsData(getResources(), textAdditionalStatisticsTitle, textAdditionalStatisticsValue); if (added) { tableRowAdditionalText.setVisibility(View.VISIBLE); } }
tableRow.setVisibility(View.VISIBLE); for(int j=0;j<tableRow.getChildCount();j++) tableRow.setVisibility(View.GONE);
tableRow.setVisibility(View.VISIBLE); for(int j=0;j<tableRow.getChildCount();j++) tableRow.setVisibility(View.GONE);
rowUtran.setVisibility(View.VISIBLE); tvLcid.setText(String.valueOf(cell.getLogicalCellId())); tvRnc.setText(String.valueOf(cell.getUtranRnc())); } else { tvCellId.setText(String.valueOf(cell.getLogicalCellId())); rowUtran.setVisibility(View.GONE); rowCdma.setVisibility(View.VISIBLE); tvBaseId.setText(cell.getBaseId()); tvSystemId.setText(cell.getSystemId()); tvNetworkId.setText(cell.getNetworkId()); } else { rowCdma.setVisibility(View.GONE);
byte[] etagValue = coapResponse.getEtag(); if(etagValue != null) { etagRow.setVisibility(View.VISIBLE); ((TextView) clientActivity.findViewById(R.id.txt_etag_response)).setText( OpaqueOptionValue.toHexString(etagValue) ); } else { etagRow.setVisibility(View.GONE); long observeValue = coapResponse.getObserve(); if(observeValue != UintOptionValue.UNDEFINED){ observeRow.setVisibility(View.VISIBLE); ((TextView) clientActivity.findViewById(R.id.txt_observe_response)).setText("" + observeValue); } else { observeRow.setVisibility(View.GONE); locationPathRow.setVisibility(View.VISIBLE); ((TextView) clientActivity.findViewById(R.id.txt_location_path_response)).setText(locationPath); } else { locationPathRow.setVisibility(View.GONE); locationQueryRow.setVisibility(View.VISIBLE); ((TextView) clientActivity.findViewById(R.id.txt_location_query_response)).setText(locationQuery); } else { locationQueryRow.setVisibility(View.GONE); locationPathRow.setVisibility(View.GONE); locationQueryRow.setVisibility(View.GONE);
tableRow.setVisibility(View.VISIBLE); currentrow=currentrow+1;
row.setVisibility(View.GONE);
Space spaceAfterEvaluatorView = new Space(context); evaluatorRow.addView(spaceAfterEvaluatorView); evaluatorRow.setVisibility(View.GONE);
rowCdma.setVisibility(View.GONE); tvBaseId = (TextView) findViewById(R.id.celldetails_baseid); tvSystemId = (TextView) findViewById(R.id.celldetails_system_id);