新聞中心
TableLayoutManager

成都創(chuàng)新互聯(lián)專業(yè)為企業(yè)提供鎮(zhèn)原網(wǎng)站建設(shè)、鎮(zhèn)原做網(wǎng)站、鎮(zhèn)原網(wǎng)站設(shè)計(jì)、鎮(zhèn)原網(wǎng)站制作等企業(yè)網(wǎng)站建設(shè)、網(wǎng)頁(yè)設(shè)計(jì)與制作、鎮(zhèn)原企業(yè)網(wǎng)站模板建站服務(wù),十多年鎮(zhèn)原做網(wǎng)站經(jīng)驗(yàn),不只是建網(wǎng)站,更提供有價(jià)值的思路和整體網(wǎng)絡(luò)服務(wù)。
java.lang.Object
|---ohos.agp.components.LayoutManager
|---|---ohos.agp.components.TableLayoutManager
public class TableLayoutManager
extends LayoutManager表示 ListContainer 對(duì)象的表布局管理器。
Since:
5
構(gòu)造函數(shù)摘要
| 構(gòu)造函數(shù) | 描述 |
|---|---|
| TableLayoutManager() | 用于創(chuàng)建 TableLayoutManager 實(shí)例的默認(rèn)構(gòu)造函數(shù)。 |
方法總結(jié)
| 修飾符和類型 | 方法 | 描述 |
|---|---|---|
| int | getColumnCount() | 獲取表中的列數(shù)。 |
| int | getRowCount() | 獲取表中的行數(shù)。 |
| void | setColumnCount(int columnCount) | 設(shè)置表中的列數(shù)。 |
| void | setRowCount(int rowCount) | 設(shè)置表中的行數(shù)。 |
| 從類 ohos.agp.components.LayoutManager 繼承的方法 |
|---|
| getOrientation, setOrientation |
| 從類 java.lang.Object 繼承的方法 |
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
構(gòu)造函數(shù)詳細(xì)信息
TableLayoutManager
public TableLayoutManager()
用于創(chuàng)建 TableLayoutManager 實(shí)例的默認(rèn)構(gòu)造函數(shù)。
Since:
5
方法詳情
setColumnCount
public void setColumnCount(int columnCount)
設(shè)置表中的列數(shù)。
參數(shù):
| 參數(shù)名稱 | 參數(shù)描述 |
|---|---|
| columnCount | 表示列數(shù)。 |
Since:
5
getColumnCount
public int getColumnCount()
獲取表中的列數(shù)。
返回:
返回列數(shù)。
Since:
5
setRowCount
public void setRowCount(int rowCount)
設(shè)置表中的行數(shù)。
參數(shù):
| 參數(shù)名稱 | 參數(shù)描述 |
|---|---|
| rowCount | 表示行數(shù)。 |
Since:
5
getRowCount
public int getRowCount()
獲取表中的行數(shù)。
返回:
返回行數(shù)。
Since:
5
當(dāng)前文章:創(chuàng)新互聯(lián)鴻蒙OS教程:鴻蒙OSTableLayoutManager
文章路徑:http://fisionsoft.com.cn/article/cdeepji.html


咨詢
建站咨詢
