0

I want to do the following layout in Android:

Layout

My two questions are:

  • Is it possible to do a dividor with text without using an image?
  • I know that I want to use the TableLayout for the registration form, but is it possible to do a round cornered border around the table?
duncanportelli
  • 3,161
  • 8
  • 38
  • 59

1 Answers1

0

The answer to both questions is yes.

You will want to investigate Nine-patch drawables for both. Nine-patch drawables allow you to create a bitmap and specify where the bitmap will stretch.

As an example with your table, you will have images that look like the the table's top and bottom cells, and you will mark the center of the cells (along the straight edges) as the stretchable area. The rounded edges will stay the same, but the centers will stretch to accommodate the content.

Bryan Herbst
  • 66,602
  • 10
  • 133
  • 120