ListView中的android:transcriptMode属性
16lz
2022-06-09
ListView或者其它显示大量Items的控件实时跟踪或者查看信息,并且希望最新的条目可以自动滚动到可视范围内。通过设置控件transcriptMode属性可以将Android平台的控件(支持ScrollBar)自动滑动到最底部。
源代码:
android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:stackFromBottom="true"
android:transcriptMode="alwaysScroll"
源代码:
android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:stackFromBottom="true"
android:transcriptMode="alwaysScroll"
更多相关文章
- 安卓入门.RelativeLayout相对布局2
- Android(安卓)Layout XML属性
- Cocos2d-x3.3RC0加载Android的WebView
- 【Android(安卓)界面效果6】Android(安卓)控件之ImageSwitcher图
- android 开发之旅 R.java 常见问题
- Android-Charts,Android图形图表控件
- Android报表控件achartengine介绍(二)
- Android下面的MD5加密
- Android如何代码混淆