• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Layouts within Layouts

Hi

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.
 
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
 
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?

Thnx
 
Back
Top Bottom