1. Are you ready for the Galaxy S20? Here is everything we know so far!

Layouts within Layouts

Discussion in 'Android Development' started by aSystemOverloa, Dec 12, 2011.

  1. aSystemOverloa

    Thread Starter


    As a total noob, I'm learning about layouts. Can someone advise how would be the best way to nest a table layout within another table layout.

    I can create a TableLayout fine, but not quite sure how to nest a TableLayout inside what would effectively be a 'cell' of that TableLayout. I tried putting a TableLayout inside a TextView, but just got errors.


  2. JiMMaR

    JiMMaR Android Enthusiast

    even though I don't know why you wanna do that , but the idea behind using TableLayout is to use TableRow in it , if you didn't use it that there is not point in a tableLayout
    try putting your nested layout inside the tablerow , not sure if that would work though
  3. aSystemOverloa

    Thread Starter

    Ok, well my aim is two columns that I can get to scroll interdependently of each other. The left (smaller) one displays categories, which when clicked, change the content of the right column.

    What is the best way to implement that?


Share This Page