Dynamic TableLayout with ID's?
I have a working dynamic TableLayout
that holds user data. Clicking an "Add Event" button brings up a Dialog
that allows the user t开发者_Go百科o enter data. When the Dialog
is dismissed, the entered data appears as a new row in the table.
Now, however, I am having trouble allowing the user to EDIT a given row in the table. It seems I need dynamic ID's to give each TableRow
in order to allow edits. Is this possible?
You can use the setId()
method that will allow you to assign an ID dynamically from your Java code.
精彩评论