简体   繁体   中英

Set rowSpan programmatically

I have an ImageView in my TableRow that needs to have a rowSpan. However, I only found tutorials to do this with XML.

Like this one here:

android table layout rowspan

Is it even possible to do rowspan with TableLayout or do I have to use GridLayout ?

您可以使用ImageView.setLayoutParams(LayoutParams)方法更改ImageView的高度和宽度等。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM