是否有可能使从下一个ListView填充? [英] Is it possible to make a ListView populate from the bottom?

查看:105
本文介绍了是否有可能使从下一个ListView填充?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个简单的应用程序,基本上由线的按钮和物品的一个ListView的要被选择和操作。有可能只有一个在列表中或者几个项目。不过,我想preFER如果该列表将填充从ListView控件的底部,因为大多数人持自己的手机的方式可以更容易地选择项目更接近屏幕的底部。这可能吗?

I have a simple application which basically consists of a line of buttons and a ListView of items to be selected and manipulated. There might be only one item in the list or a few. However, I would prefer if the list would populate from the bottom of the ListView, since the way most people hold their phones makes it easier to select items closer to the bottom of the screen. Is this possible?

推荐答案

可以有的ListView 使用一个简单的XML属性下往上叠加的物品 在XML下 -

You can have the ListView stack its items from the bottom up using a simple XML property under the xml -

<ListView 
    android:stackFromBottom="true"
...
></ListView>

请阅读@The贝尔加答案,否则将无法正常工作。

Please read @The Berga answer to otherwise this won't work.

这篇关于是否有可能使从下一个ListView填充?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆