本文整理了Java中android.widget.TableRow.findViewById()
方法的一些代码示例,展示了TableRow.findViewById()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TableRow.findViewById()
方法的具体详情如下:
包路径:android.widget.TableRow
类名称:TableRow
方法名:findViewById
暂无
代码示例来源:origin: alt236/USB-Device-Info---Android
protected void addDataRow(LayoutInflater inflater,
TableLayout tlb,
String cell1Text,
String cell2Text) {
final TableRow row = (TableRow) inflater.inflate(R.layout.usb_table_row_data, null);
final TextView tv1 = (TextView) row.findViewById(R.id.usb_tablerow_cell1);
final TextView tv2 = (TextView) row.findViewById(R.id.usb_tablerow_cell2);
tv1.setText(cell1Text);
tv2.setText(cell2Text);
tlb.addView(row);
}
代码示例来源:origin: ultramega/elementary
/**
* Populate the table of common isotopes.
*/
private void populateIsotopes() {
final Isotope[] isotopes = Isotopes.getIsotopes(mElement.number);
if(isotopes != null) {
final LayoutInflater inflater = getLayoutInflater();
for(Isotope isotope : isotopes) {
final TableRow tableRow =
(TableRow)inflater.inflate(R.layout.isotope_table_row, mIsoTable, false);
final TextView symbolText = tableRow.findViewById(R.id.isoSymbol);
symbolText.setText(isotope.getSymbol());
final TextView massText = tableRow.findViewById(R.id.isoMass);
massText.setText(DECIMAL_FORMAT.format(isotope.mass));
mIsoTable.addView(tableRow);
}
}
}
代码示例来源:origin: google/search-samples
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View rootView = inflater.inflate(R.layout.ingredients_fragment, container, false);
this.recipe = ((RecipeActivity) getActivity()).mRecipe;
TableLayout table = (TableLayout) rootView.findViewById(R.id.ingredientsTable);
for (Recipe.Ingredient ingredient : recipe.getIngredients()) {
TableRow row = (TableRow) inflater.inflate(R.layout.ingredients_row, null);
((TextView) row.findViewById(R.id.attrib_name)).setText(ingredient.getAmount());
((TextView) row.findViewById(R.id.attrib_value)).setText(ingredient
.getDescription());
table.addView(row);
}
return rootView;
}
}
代码示例来源:origin: TobiasBielefeld/Simple-Solitaire
TextView textView1 = (TextView) row.findViewById(R.id.row_cell_1);
TextView textView2 = (TextView) row.findViewById(R.id.row_cell_2);
TextView textView3 = (TextView) row.findViewById(R.id.row_cell_3);
TextView textView4 = (TextView) row.findViewById(R.id.row_cell_4);
代码示例来源:origin: TobiasBielefeld/Simple-Solitaire
TextView textView1 = (TextView) row.findViewById(R.id.row_cell_1);
TextView textView2 = (TextView) row.findViewById(R.id.row_cell_2);
TextView textView3 = (TextView) row.findViewById(R.id.row_cell_3);
TextView textView4 = (TextView) row.findViewById(R.id.row_cell_4);
内容来源于网络,如有侵权,请联系作者删除!