tablerow

Dynamically load customized table cells in table

Hi all, I want to create say 5 different types of cells in table along with identifiers and load them appropriately as per the given data depending upon the type? Creating TableRow inside TableLayout seems to be one of the options but how to dynamically create the tableRows depending upon the type? Thanx in advance. ...

[ANDROID] Grid 3*3

Hey, i want to have a grid with 3 columns and 3 rows and an image button in each cell (center of cell) i tried with gridview but i can't fix the number of rows i tried with a tablelayout and 3 tablerows, but i can't change width/height at runtime any idea ? sry for english, i'm french ;) ...

Auto-sizing of background image in tablerow to fit content in Android

Hi, I have a TableLayout in my Android application. In the TableLayout, I have a TableRow which has an oversized background image. I would like the background image to be auto-sized to cater to the content within the TableRow. But no matter how I try, it always display the original size. Please refer to link for screen capture. As s...

How to dynamically add radiobuttons, texboxes, and buttons in a Table by code?

Hi Everyone, I am trying to dynamically create a table with radiobuttons, textboxes and buttons on each rows uniquely depending on the question to the left of the TableRow with two TableCells. So far, I was able to add the questions to the left of the TableRow. Now, I am having a hard time filling out the right side of it. Can someone...

Remove dinamically created Items from view in Android

Hi, i have used the following code to create table row TableRow TRow = new TableRow(a); TextView TxtViewProvider = new TextView(a); TxtViewProvider.setText(gradeText); // TxtViewProvider.setBackgroundColor(Color.RED); if (bold == 1) TxtViewProvider.setTypeface(Typeface.DEFAULT_BOLD); TxtViewProvider.setTextColor(Color.BLACK); ...