Best code examples for Android TableLayout class (android.widget.TableLayout)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android TableLayout class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Android TableLayout examples from Open Source projects
This code example shows how to use the following methods: isColumnCollapsed, setColumnCollapsed
25:	layout.setColumnCollapsed(1, !layout.isColumnCollapsed(1)); 
26:	if (layout.isColumnCollapsed(1)) { 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: removeView
69:	parentView.removeView(this); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setTag, addView, setColumnShrinkable, setColumnStretchable
94:	TableLayout layout = new TableLayout(ctxt); 
95:	layout.setColumnStretchable(0, true); 
96:	layout.setColumnShrinkable(0, true); 
-
123:	layout.addView(tableRow); 
-
125:	wrap=new ViewWrapper(layout); 
-
127:	layout.setTag(wrap); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setLayoutParams, setGravity, setOrientation, addView
104:	Container = new TableLayout(this.getBaseContext()); 
105:	Container.setOrientation(TableLayout.VERTICAL); 
-
109:	Container.setLayoutParams(tl); 
110:	Container.setGravity(Gravity.CENTER_HORIZONTAL); 
-
119:	Container.addView(TipsContainer, lp); 
-
126:	Container.addView(StageGellery, tl); 
-
134:	Container.addView(StageText, tl); 
-
139:	Root.addView(Container, rl); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setLayoutParams, setOrientation, addView, setShrinkAllColumns, setStretchAllColumns
32:	layout = new TableLayout(this); 
-
35:	layout.setOrientation(TableLayout.VERTICAL); 
36:	layout.setShrinkAllColumns(false); 
37:	layout.setStretchAllColumns(true); 
-
39:	layout.setLayoutParams(new TableLayout.LayoutParams(TableLayout.LayoutParams.FILL_PARENT, TableLayout.LayoutParams.FILL_PARENT)); 
-
156:	layout.addView(round); 
157:	layout.addView(usernames); 
158:	layout.addView(rd1row); 
159:	layout.addView(rd2row); 
160:	layout.addView(rd3row); 
161:	layout.addView(brrow); 
162:	layout.addView(totalrow); 
-
164:	layout.addView(buttonrow); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setColumnShrinkable
42:	table.setColumnShrinkable(0, mShrink); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setColumnStretchable
45:	table.setColumnStretchable(1, mStretch); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setLayoutParams, addView, setStretchAllColumns
16:	TableLayout tableLayout = new TableLayout(this); 
17:	tableLayout.setLayoutParams(new TableLayout.LayoutParams( 
-
21:	tableLayout.setStretchAllColumns(true); 
-
61:	tableLayout.addView(tableRow1); 
62:	tableLayout.addView(tableRow2); 
63:	tableLayout.addView(tableRow3); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setLayoutParams, addView, setColumnStretchable
26:	TableLayout tabela = new TableLayout(this); 
27:	tabela.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); 
-
29:	tabela.setColumnStretchable(1, true); 
-
64:	tabela.addView(linha1); 
65:	tabela.addView(linha2); 
66:	tabela.addView(linha3); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setColumnCollapsed
53:	table.setColumnCollapsed(0, mCheckmarksCollapsed); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setLayoutParams, addView, setColumnStretchable
24:	TableLayout tableLayout = new TableLayout(this); 
25:	tableLayout.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, 
-
27:	tableLayout.setColumnStretchable(1, true); 
-
64:	tableLayout.addView(row1); 
65:	tableLayout.addView(row2); 
66:	tableLayout.addView(row3); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setBackgroundColor, addView
51:	TableLayout tableLayout = new TableLayout(this); 
52:	tableLayout.setBackgroundColor(Color.rgb(255, 255, 255)); 
53:	setContentView(tableLayout, new LayoutParams(LayoutParams.FILL_PARENT, 
-
127:	tableLayout.addView(tableRow1); 
128:	tableLayout.addView(tableRow2); 
129:	tableLayout.addView(tableRow3); 
130:	tableLayout.addView(tableRow4); 
131:	tableLayout.addView(tableRow5); 
132:	tableLayout.addView(tableRow6); 
133:	tableLayout.addView(tableRow7); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getParent, removeView
45:	if(uiElements.getParent() != null) { 
46:	((RelativeLayout) uiElements.getParent()).removeView(uiElements); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setGravity, addView
29:	TableLayout tl = new TableLayout(this);	//Creo la tabella composta dalla due rigne che seguono ognuna delle quali ha due colonne come campi 
-
39:	tl.addView(tr1); 
40:	tl.addView(tr2); 
41:	tl.setGravity(Gravity.CENTER_VERTICAL); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: addView
48:	TableLayout tl = new TableLayout(this); 
49:	tl.addView(tv); 
50:	tl.addView(et1); 
51:	tl.addView(et2); 
52:	setContentView(tl); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getContext, addView
57:	TableRow newRow = new TableRow( list.getContext() ); 
-
63:	removeSelfButton.setOnClickListener( new RowRemover( list, newRow )); 
-
66:	list.addView( newRow ); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setGravity, setOrientation, addView
24:	table.setGravity(Gravity.CENTER); 
25:	table.setOrientation(LinearLayout.HORIZONTAL); 
26:	table.addView(pb); 
27:	table.addView(tv); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: addView, setColumnStretchable
23:	TableLayout tl = new TableLayout(context); 
24:	tl.setColumnStretchable(1, true); 
-
27:	tl.addView(tr); 
-
31:	tl.addView(tr); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getMeasuredHeight, getMeasuredWidth, measure, layout
255:	mTableLayout.measure(MeasureSpec.makeMeasureSpec(getMeasuredWidth(), 
-
258:	mTableLayout.layout(0, 0, mTableLayout.getMeasuredWidth(), 
259:	mTableLayout.getMeasuredHeight()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
32:	TableLayout imagesTable = new TableLayout(this); 
-
45:	new PuzzleImageLoader(imagesTable,(Context)this).execute(); 
-
48:	refreshButton.setOnClickListener(new PuzzleRefresher(imagesTable,(Context)this)); 
-
58:	answerSubmitButton.setOnClickListener(new SubmitButtonOnClickListener(answerField, imagesTable, (Context)this)); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setBackgroundColor, addView
29:	mLL = new TableLayout(this); 
30:	mLL.setBackgroundColor(Color.WHITE); 
-
33:	mLL.addView(mTextField); 
-
36:	mLL.addView(mButton_dial); 
-
40:	mLL.addView(mScrollView); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setLayoutParams, addView
34:	tab=new TableLayout(context); 
35:	tab.setLayoutParams(new LinearLayout.LayoutParams(85*(int)px,18*(int)px)); 
-
62:	tab.addView(t); 
-
77:	tab.addView(v); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setLayoutParams, addView
35:	tab = new TableLayout(context); 
36:	tab.setLayoutParams(new LinearLayout.LayoutParams(85 * (int) px, 18 * (int) px)); 
-
63:	tab.addView(t); 
-
78:	tab.addView(v); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setPadding, addView
34:	TableLayout layout = new TableLayout(mContext); 
35:	layout.setPadding(6, 6, 6, 6); 
-
56:	layout.addView(row_header); 
-
65:	layout.addView(row_main); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getChildAt, getChildCount, addView
168:	int childCount = grid.getChildCount(); 
-
174:	tablerow = (TableRow) grid.getChildAt(childCount - 1); 
-
177:	grid.addView(tablerow); 
-
181:	grid.addView(tablerow); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setColumnStretchable
32:	TableLayout tl=new TableLayout(this); 
-
34:	tl.setColumnStretchable(1, true); 
-
133:	DownloadWebPageTask task = new DownloadWebPageTask(tableLayout, this); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setMinimumWidth, addView
93:	mTL = new TableLayout(this); 
94:	mTL.setMinimumWidth(display.getWidth()); 
-
105:	mTL.addView(tr); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setGravity, addView
89:	tLayout = new TableLayout(this); 
90:	tLayout.setGravity(Gravity.CENTER_HORIZONTAL); 
-
103:	tLayout.addView(head); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: removeViewInLayout, requestLayout
60:	tableLayout.removeViewInLayout(mTableRow); 
-
62:	tableLayout.requestLayout(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setLayoutParams, addView
211:	TableLayout table = new TableLayout(this); 
-
216:	table.setLayoutParams(layoutParams); 
-
232:	table.addView(tr1); 
-
247:	table.addView(tr2); 
-
262:	table.addView(tr3); 
-
277:	table.addView(tr4); 
-
292:	table.addView(tr5); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setColumnCollapsed
46:	table.setColumnCollapsed(2, mShortcutsCollapsed); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getChildCount, removeViews
28:	if (table.getChildCount() > 0) { 
29:	table.removeViews(0, table.getChildCount()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setColumnCollapsed
46:	table.setColumnCollapsed(2, mShortcutsCollapsed); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: addView
52:	TableLayout tl = new TableLayout(this); 
-
55:	tl.addView(tv); 
-
59:	tl.addView(registrer); 
-
63:	tl.addView(afregistrer); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: addView
37:	layout = new TableLayout(this); 
-
58:	layout.addView(headerRow); 
59:	layout.addView(groupRow); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setVisibility
60:	localTableLayout.setVisibility(8); 
-
71:	new Thread(new bh(this, bool, localTableLayout)).start(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: addView
19:	TableLayout tl = new TableLayout(this); 
-
22:	tl.addView(editText); 
-
26:	tl.addView(knap1); 
-
30:	tl.addView(knap2); 
-
34:	tl.addView(knap3); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: removeAllViews, requestLayout
57:	tuitions.removeAllViews(); 
-
70:	tuitions.requestLayout(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: removeAllViews
81:	mTableLayout.removeAllViews(); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: isColumnCollapsed, setColumnCollapsed
26:	layout.setColumnCollapsed(1, !layout.isColumnCollapsed(1)); 
27:	if (layout.isColumnCollapsed(1)) { 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: addView
27:	TableLayout tl = new TableLayout(this); 
-
31:	tl.addView(kortvisning); 
-
35:	tl.addView(rutevisning); 
-
39:	tl.addView(gadevisning); 
-
43:	tl.addView(googlePlay); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: isColumnCollapsed, setColumnCollapsed
23:	layout.setColumnCollapsed(1, !layout.isColumnCollapsed(1)); 
24:	if (layout.isColumnCollapsed(1)) { 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: removeAllViews
76:	mTableLayout.removeAllViews(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: addView
24:	TableLayout tl = new TableLayout(this); 
-
28:	tl.addView(spilKnap); 
-
32:	tl.addView(indstillingerKnap); 
-
36:	tl.addView(hjaelpKnap); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: removeAllViews
51:	table.removeAllViews(); 
52:	PuzzleImageLoader.drawImageTable(result, context, table); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: removeAllViews
17:	table.removeAllViews(); 
18:	new PuzzleImageLoader(table, context).execute(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getContext, addView
194:	TableRow row = new TableRow(tableLayout.getContext()); 
195:	TextView textView = new TextView(tableLayout.getContext()); 
-
199:	tableLayout.addView(row); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: addView
23:	TableLayout tl = new TableLayout(this); 
-
27:	tl.addView(knap1); 
-
31:	tl.addView(knap2); 
-
35:	tl.addView(knap3); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: addView
153:	mTableLayout.addView(row); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: addView
47:	TableLayout tbl = new TableLayout(context); 
-
55:	tbl.addView(tr); 
Full Snippet Info
5
CodeRank
Related Android TableLayout Questions & Answers:
See Code Examples for Android TableLayout Methods: