Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Группа 1 | Имя 1 | Значение
- Группа 1 | Имя 2 | Значение
- Группа 2 | Имя 3 | Значение
- <TableRow xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:minHeight="60dp">
- <TextView
- android:id="@+id/attrib_name"
- android:textStyle="bold"
- android:textSize="18dp"
- android:layout_height="wrap_content"
- android:layout_width="0dp"
- android:layout_weight="0.6"/>
- <TextView
- android:id="@+id/min"
- android:textStyle="normal"
- android:textSize="18dp"
- android:layout_width="0dp"
- android:layout_weight="0.1"/></TableRow>
- public void FillTable()
- {
- TableLayout table = (TableLayout)findViewById(R.id.attrib_table);
- for(int i=0;i<myData.size();i++)
- {
- TableRow row = (TableRow) LayoutInflater.from(this).inflate(R.layout.attrib_row, null);
- ((TextView)row.findViewById(R.id.attrib_name)).setText(myData.get(i).getToroParameterMeasurement());
- ((TextView)row.findViewById(R.id.min)).setText(myData.get(i).getMinNominal());
- table.addView(row); } }
- Группа 1
- Имя 1 | Значение
- Имя 2 | Значение
- Группа 2
- Имя 3 | Значение
- <TableRow
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:minHeight="60dp">
- <TextView
- android:id="@+id/group"
- android:textStyle="bold"
- android:textSize="18dp"
- android:layout_height="wrap_content"
- android:layout_width="0dp"
- android:layout_weight="1.0"/>
- </TableRow>
Add Comment
Please, Sign In to add comment