本文整理了Java中android.widget.TableRow.setVisibility()
方法的一些代码示例,展示了TableRow.setVisibility()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TableRow.setVisibility()
方法的具体详情如下:
包路径:android.widget.TableRow
类名称:TableRow
方法名:setVisibility
暂无
代码示例来源:origin: oliexdev/openScale
protected void showEvaluatorRow(boolean show) {
if (show) {
evaluatorRow.setVisibility(View.VISIBLE);
}
else {
evaluatorRow.setVisibility(View.GONE);
}
}
代码示例来源:origin: oliexdev/openScale
public void setVisible(boolean isVisible) {
if (isVisible) {
measurementRow.setVisibility(View.VISIBLE);
} else {
measurementRow.setVisibility(View.GONE);
}
}
代码示例来源:origin: stackoverflow.com
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);
}
}
代码示例来源:origin: renyuneyun/Easer
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
代码示例来源:origin: TobiasBielefeld/Simple-Solitaire
/**
* 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);
}
}
代码示例来源:origin: firelotus/Meteorite
tableRow.setVisibility(View.VISIBLE);
for(int j=0;j<tableRow.getChildCount();j++)
tableRow.setVisibility(View.GONE);
代码示例来源:origin: firelotus/Meteorite
tableRow.setVisibility(View.VISIBLE);
for(int j=0;j<tableRow.getChildCount();j++)
tableRow.setVisibility(View.GONE);
代码示例来源:origin: openbmap/radiocells-scanner-android
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);
代码示例来源:origin: okleine/spitfirefox
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);
代码示例来源:origin: firelotus/Meteorite
tableRow.setVisibility(View.VISIBLE);
currentrow=currentrow+1;
代码示例来源:origin: oliexdev/openScale
row.setVisibility(View.GONE);
代码示例来源:origin: oliexdev/openScale
Space spaceAfterEvaluatorView = new Space(context);
evaluatorRow.addView(spaceAfterEvaluatorView);
evaluatorRow.setVisibility(View.GONE);
代码示例来源:origin: openbmap/radiocells-scanner-android
rowCdma.setVisibility(View.GONE);
tvBaseId = (TextView) findViewById(R.id.celldetails_baseid);
tvSystemId = (TextView) findViewById(R.id.celldetails_system_id);
内容来源于网络,如有侵权,请联系作者删除!