Android: help creating tablelayout?

A TableLayout isn't really what you need for this. A TableLayout gives you something like Excel, where you have rows and columns Also, dip is the same as dp Possible Solution:? Xml version="1.0" encoding="utf-8"?

A TableLayout isn't really what you need for this. A TableLayout gives you something like Excel, where you have rows and columns. Also, dip is the same as dp.

Possible Solution.

– Yang Jan 20 '10 at 19:07 I updated my answer to show a possible solution. – CaseyB Jan 20 '10 at 19:54.

A RelativeLayout allows you to tell views to stick to the bottom or top, with the attributes layout_alignParentBottom="true" or layout_alignParentTop="true". See common layouts for more information on the RelativeLayout.

Your answerdoes not work that well, I wish people would stop posting the wrong answers. Here is one tip you can use. Use the merge tag to merge with the parent since the parent layout is most likely in FrameLayout mode anyway.

Wrap one part in Linearlayout (your first two rows) then the last row leave will default to parent. Then use the android:layout_gravity="bottom" attribute. See layout example for more information.

Here is an example of mine with 3 text views and 2 seekbars I wanted the last text to layout on the bottom.

Another way to do this is to use RelativeLayout mixed with LinearLayout. In the Relative portion you reference the previous widget using the android:layout_below="@id/color_font_text" for example. This will lay the second widget, a SeekBar below the first TextView.

Hope this helps!

For example, what does 3dip mean in android:padding="3dip". The documentation says "Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), mm (millimeters). Specifically, I want to create a layout with top and bottom two rows, and the middle are lists.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions