zen*_*ttu 4 android listview listactivity fading
在我的ListActivity上,当在Android 2.2虚拟设备上运行时,我得到了淡化边缘效果.但是,当我使用三星GIO与Android 2.2.1运行完全相同的应用程序时,我没有得到ListView边缘淡入淡出.可能是什么原因?下面是ListActivity中ListView的XML:
<ListView
android:id="@+id/@android:list"
android:fadingEdge="vertical"
android:fadingEdgeLength="3mm"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/showMixHeader"/>
Run Code Online (Sandbox Code Playgroud)
小智 8
如果我以编程方式为listview启用淡入淡出,我会看到三星Galaxy Tab上的淡入淡出:
listView.setVerticalFadingEdgeEnabled(true); // Make sure that fading is displayed on samsung devices
Run Code Online (Sandbox Code Playgroud)
也许三星在Android版本上默认禁用它.(经过固件版本2.2,三星Galaxy Tab 7测试)
| 归档时间: |
|
| 查看次数: |
1665 次 |
| 最近记录: |