Questions tagged [android-tablelayout]

The TableLayout is one of the layouts on the Android platform that arranges its children into rows and columns.

The TableLayout arranges its children into rows (the number of rows is given by the number of direct children, usually TableRows) and columns (where the number of columns is given by the TableRow with the biggest number of views in it).

Normally TableLayout consists of multiple TableRow objects, each defining a row. Each row has zero or more cells and each cell can hold one View. Cells can span over multiple columns. The width of a column is by default defined by the widest view in that column.

The TableLayout can also specify various rules to modify the way the columns use the space available to them (or even make them disappear). When using the TableLayout, care must be taken regarding the LayoutParams used as the TableLayout, which imposes some constraints on its children. More information can be found in the documentation for the TableLayout class.

This is an Android specific class, not present in JavaSE.

1224 questions
-2
votes
1 answer

How to create the exact number of textview and put the string value into the textviews?

String hallo = "blabla " + "jojo " + "\n" + "doj " + "drasl " +"\n"; InputStream is = new ByteArrayInputStream(hallo.getBytes()); BufferedReader in = new BufferedReader(new InputStreamReader(is)); String reader; while ((reader = in.readLine())…
davidhlynsson
  • 79
  • 1
  • 8
-2
votes
1 answer

Creating a two column Activity with horizontal and vertical scrolling

I'm trying to make a two column in Android with vertical and horizontal scrolling. Like this: This is my code:
-2
votes
3 answers

Custom `ListView` or TableLayout?

I need to create a ListView or TableLayout that each row consists of 3 columns and 3 buttons, something similar to that: but the screen will not only contains this control will contains textfields and other layouts , I need a grid to take the shape…
AMH
  • 6,363
  • 27
  • 84
  • 135
-3
votes
2 answers

Create Table Layout in android

I want to create table Layout using Listview.But the no of rows and columns are dynamically generated. So how can i create ? for eg.) If row =2 cols=2 means list view automatically create 2 rows and 2 cols If row =3 cols =4 means listview create 3…
Susi
  • 1
-3
votes
1 answer

Table Layout creation in Android

I'm new to android. I want to retrieve employee details from database and want to display those data into table layout in weekly basis. for that i want to create table layout with fixed header column like employee name, employee id, employee work…
S.Saranya
  • 25
  • 8
-3
votes
1 answer

Order TableLayout column values programmatically

I have a TableRow containing String data displayed as minutes. I want to order/sort that column data programmatically. Is that possible? I really need that feature.
androniennn
  • 3,117
  • 11
  • 50
  • 107
-3
votes
3 answers

Center ImageView dynamically in TableLayout

I'm making an app where I dynamically make tablerows. Each tablerow includes 3 ImageViews and one TextView, with textview there's not any problem, I simyply use textview.setGravity(Gravity.Center_Vertical), but there's a problem with ImageViews. How…
-4
votes
1 answer

how to design a table like what is in microsoft word in android

I want to design a table in android like what we design in microsoft word how can i do that. i can not change the size of tables in android manually.i will appreciate if some body help. thanks in advance.
-6
votes
1 answer

Table Layout and Table Row

I need to create six textview dynamically in but one condition each table row have only three textview for mine i need to place two table row and place three textview each please
Anand
  • 51
  • 1
  • 4
1 2 3
81
82