本文整理了Java中android.widget.TableLayout.getContext()
方法的一些代码示例,展示了TableLayout.getContext()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TableLayout.getContext()
方法的具体详情如下:
包路径:android.widget.TableLayout
类名称:TableLayout
方法名:getContext
暂无
代码示例来源:origin: stackoverflow.com
tablerowLayout[0] = new LinearLayout(table.getContext());
int rowcount=0;
for (int i=0; i<itemNames.length; i++){
buttons[i]= new Button(table.getContext(), null, android.R.attr.buttonStyleSmall);
buttons[i].setText(itemNames[i]);
buttons[i].setId(i);
tablerowLayout[rowcount] = new LinearLayout(table.getContext());
代码示例来源:origin: labexp/osmtracker-android
TableRow tblRow = new TableRow(layout.getContext());
tblRow.setLayoutParams(new TableLayout.LayoutParams(TableLayout.LayoutParams.FILL_PARENT,
TableLayout.LayoutParams.FILL_PARENT, 1));
代码示例来源:origin: marzika/Snapprefs
TextView orig1 =
(TextView) ((TableRow) navigation.getChildAt(0)).getChildAt(1);
TableRow row = new TableRow(navigation.getContext());
row.setTag("Snapprefs Link");
row.setLayoutParams(navigation.getChildAt(0).getLayoutParams());
ImageView iv = new ImageView(navigation.getContext());
iv.setImageDrawable(mResources.getDrawable(R.drawable.profile_snapprefs));
iv.setLayoutParams(orig.getLayoutParams());
TextView textView = new TextView(navigation.getContext());
textView.setText("Open Snapprefs");
textView.setTextColor(orig1.getCurrentTextColor());
内容来源于网络,如有侵权,请联系作者删除!