I’m extremely new to Android and just trying to get my head around these layouts.
I’ve got several tabs which contain a LinearLayout with a TabWidget and FrameLayout as children. In the FrameLayout I’d like a certain percentage at the bottom of the screen to be reserved for a table, the rest above to be filled with an image.
How can I replicate this in the Android XML?
Any ideas much appreciated.
Inside of the
FrameLayout, put aLinearLayout. In theLinearLayout, have your “table” (TableLayout?) and image (ImageView?). Set the table’s and image’sandroid:layout_height="0px"andandroid:layout_weightto be whatever percentage you want for each.