偏斜列表视图以及没有剪切的滚动条

时间:2017-07-24 13:36:08

标签: android listview android-canvas matrix-inverse skew

我试图通过在customListview的ondraw方法中添加以下代码行来扭曲listview。

  canvas.skew(0.08f, 0.0f);

当我这样做时,我得到以下结果。

enter image description here

如果我不歪曲listview,就像下面的

enter image description here

所以,当我向下滚动偏斜的列表视图时,它就像下面的

enter image description here

我再也无法查看滚动条拇指了。即使列表视图偏斜,我如何确保listview或其滚动条拇指的任何部分都不会被剪裁。有没有机会通过矩阵操作来实现它?请帮助或指导我能为此做些什么。

0 个答案:

没有答案