I'll reply to myself.

a1) public void addView (View child, int index)
a2) care for the padding and styles set for the main table and the
child row you are inserting

a3) it's definitely doable.

Hope I helped someone

On Nov 4, 11:03 am, Hatch <[email protected]> wrote:
> Hi all.
>
> I have a table layout with a few predefined rows in it.
> Each row has only two columns.
>
> Now I need to dynamically add additional rows in it.
>
> I have two problems:
>
> 1) When programmatically inflating, I cannot set the index of the
> newly created row (I want it in place 'n')
> 2) After inflation, the inserted (actually appended) row doesn't
> listen to parent table's stretch column property.
>
> So here are my questions:
>
> q1) Can I set the place where to insert the inflated row
> programatically ?
> q2) Why doesn't the new row inflate properly (the second column is not
> shown because the first column doesn't contains a TextView with
> fill_parent.
>
> In the end I need the first column to occupy 80% of the screen width,
> and the second column remaining 20%.
>
> q3) is that doable with programmatic row insertions ?
>
> Regards,
>
> Hatch

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to