Ich habe eine Tabelle namens „Grid“, innerhalb der eigenen Klasse erstellen ... wie folgen aus:Insert Tablelayout mit Bildlaufleisten in einem RelativeLayout
ScrollView contentView = new ScrollView(this);
contentView.setBackgroundColor(Color.LTGRAY);
// THIS IS OUR MAIN LAYOUT
mainLayout = new RelativeLayout(this);
// ADD MAINLAYOUT TO SCROLLVIEW (contentView)
contentView.addView(mainLayout);
// SET CONTENT VIEW
setContentView(contentView);
meTable = this.tableLayout();
HorizontalScrollView HOR = new HorizontalScrollView(this);
mainLayout.addView(HOR);
HOR.addView(meTable);
Diese die Tabelle erstellt, und fügt auch einen horizontalen und vertikalen Bildlauf , das ist toll ...
ich brauche aber all dies in einem anderen RelativeLayout, so zu setzen:
I c ein tun das, aber ohne die Bildlaufleisten, füge ich nur „meTable“, wie folgt aus:
Grid gr = new Grid();
gr.Activate(this);
TableLayout tablita;
RelativeLayout layout = (RelativeLayout) findViewById(R.id.contenedorLay);
tablita = gr.meTable;
layout.addView(tablita);
Wie füge ich die gesamte Tabelle mit ihren Rollbalken?
Wer Sie Papa kennt ?? – WhiteFloater