虚拟列表居中放大

官方案例是三个item  我只显示两个多点 怎么让其居中呢
IUG7E%ZBOIJYWAN2}F(]D.png
已邀请:

xiatianjin

赞同来自:

需要的就是类似这样的效果
https://blog.csdn.net/nicepain ... 27774

谷主

赞同来自:

自己改变item的大小

clime

赞同来自:

Item居中 能自己改scrollPane的位置吗?

fengjing

赞同来自:

this.list.ScrollToView(index, false, true);
this.list.selectedIndex = index;
this.list.scrollPane.SetPosX(this.list.scrollPane.posX - 组件宽 / 2 - 列距一半, false);
我是直接改了posX位置

要回复问题请先登录注册