Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 获取ListView项目显示百分比_Android_Listview_Scroll_Row Height - Fatal编程技术网

Android 获取ListView项目显示百分比

Android 获取ListView项目显示百分比,android,listview,scroll,row-height,Android,Listview,Scroll,Row Height,我正在编写一个应用程序,需要获取Listview中某个特定项的显示量。这样: 所以,当在这里滚动时,俯视图项目只显示其大小的40%,中间一个显示完全,下部一个只显示其大小的20%。这里有什么建议吗 你是如何计算百分比的?这就是我的问题…我不知道如何计算…列表视图项的显示百分比。假设它的实际大小是200dp,那么它显示的是多少。

我正在编写一个应用程序,需要获取Listview中某个特定项的显示量。这样:


所以,当在这里滚动时,俯视图项目只显示其大小的40%,中间一个显示完全,下部一个只显示其大小的20%。这里有什么建议吗

你是如何计算百分比的?这就是我的问题…我不知道如何计算…列表视图项的显示百分比。假设它的实际大小是200dp,那么它显示的是多少。