About 2,560 results
Open links in new tab
  1. android - Adding rows to table layout in kotlin - Stack Overflow

    Jul 20, 2020 · To me problem appears to be caused by FOR loop. you are creating row object outside and then reusing it for second row which is incorrect. move the row creation object to inside for loop along with creation of other textview objects

  2. How to add a row dynamically in a tableLayout in Android

    Jun 6, 2014 · Create table row header to hold the column headings TableRow tr_head = new TableRow(this); tr_head.setId(10); tr_head.setBackgroundColor(Color.GRAY); // part1 tr_head.setLayoutParams(new LayoutParams( LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT));

  3. Android TableLayout in Kotlin - GeeksforGeeks

    Feb 24, 2025 · TableLayout in Android is a ViewGroup subclass that is designed to align child views in rows and columns like a grid structure. It automatically arranges all the child elements into rows and columns without displaying any border lines between cells.

  4. Adding Table rows Dynamically in Android - Stack Overflow

    Aug 13, 2013 · Create an init() function and point the table layout. Then create the needed rows and columns.

  5. Table - Android Developers

    May 20, 2024 · TableLayout is a ViewGroup that displays child View elements in rows and columns. TableLayout positions its children into rows and columns. TableLayout containers do not display border lines for their rows, columns, or cells. The table will have as many…

  6. Add Table Rows Dynamically in Android Layout - Online …

    Learn how to add table rows dynamically in your Android layout with this comprehensive guide. Step-by-step instructions and code examples included.

  7. How to use Android TableLayout in Kotlin - Programming …

    In your Kotlin activity file (e.g., MainActivity.kt), find the TableLayout and perform any necessary operations. For example, you can add dynamic rows or access the elements within the table. Here's a basic example: import android.widget.TableLayout. import android.widget.TableRow. import android.widget.TextView.

  8. Table Layout with Recycler View in Kotlin | by Mustafa Imran

    Oct 22, 2020 · Hi, this article is about how to use table layout with recycler view. Our final outcome would look like this: First, create a table_row_layout.xml for the rows of the table....

  9. Showing dynamic data in a TableLayout in Android

    May 1, 2016 · The best way is to use a TableLayout, which will automatically arrange the inner Views into columns across multiple TableRows. If you have complex requirements in which some rows may have different layouts, then its best not to use the TableLayout as it doesnt handle varying column counts very well.

  10. Android Table Layout Example in kotlin - Developers Dome

    Aug 12, 2021 · In this tutorial, we will learn about the Android table layout that divides its children into rows and columns. A Table Layout is made up of a number of TableRow objects, each of which defines a row (actually, you can have other children, which will be explained below).

  11. Some results have been removed
Refresh