What can be used in place of TableRow in harmony OS? It is a part of widget package in android.
Asked
Active
Viewed 44 times
1 Answers
1
Currently Harmony doesn't have any specific alternative for TableRow, but I would say there is no need for TableRow in TableLayout Component of Harmony OS, as you will be able to create TableLayout without TableRow, For Example
private TableLayout createTableLayout() {
tableLayout = (TableLayout) mDialogLayout.findComponentById(ResourceTable.Id_md_table_layout);
ComponentContainer.LayoutConfig layoutConfig = new ComponentContainer.LayoutConfig(ComponentContainer.LayoutConfig.MATCH_CONTENT,
ComponentContainer.LayoutConfig.MATCH_CONTENT);
tableLayout.setRowCount(getRowCount());
tableLayout.setColumnCount(getColumnCount());
tableLayout.verifyLayoutConfig(layoutConfig);
for (int position = 0; position < getCount(); position++) {
CircleView cv = new CircleView(mContext);
cv.setLayoutConfig(cvlayoutConfig);
tableLayout.addComponent(cv);
}
return tableLayout;
}

Gowtham GS
- 478
- 2
- 5