I think this version of addView does what you need (with index = 0) public void addView (View child int index ) Adds a child view. If no layout parameters are already set on the child, the default parameters for this ViewGroup are set on the child. Parameters child the child view to add index the position at which to add the child.
I think this version of addView does what you need (with index = 0) public void addView (View child, int index) Adds a child view. If no layout parameters are already set on the child, the default parameters for this ViewGroup are set on the child. Parameters child the child view to add index the position at which to add the child.
I tried it, but when I add row from Java code with index=0, it works the same, with index=1 it fails with Force close button. – DZeN Mar 11 at 14:08 Please attach she logcat dump so we can see why your app was closed, and please attach the exact code you used when it happened. – Zds Mar 11 at 15:05 Dump link Process fails when it on string tableLayout.
AddView(row, 1, new TableRow. LayoutParams(TableRow.LayoutParams. WRAP_CONTENT, TableRow.LayoutParams.
WRAP_CONTENT)); – DZeN Mar 11 at 15:43.
So, I did it as: TextView days = new TextView7; for(int I = 0; I AddView(daysi); } days0. SetText(R.string. Monday); days1.
SetText(R.string. Tuesday); days2. SetText(R.string.
Wednesday); days3. SetText(R.string. Thursday); days4.
SetText(R.string. Friday); days5. SetText(R.string.
Saturday); days6. SetText(R.string. Sunday); rowsWithButtons.
Add(row).
Creates a new TableLayout for the given context. Specified set attributes. Adds a child view.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.