0
感谢来自用户的一些帮助,我可以在按下按钮时隐藏我的ListView。我想要发生的事情是,一旦我按下了按钮,它隐藏了我的ListView,然后隐藏了ListView标签之外的按钮,以替换列表视图所在的空间。下面ListView设置为不可见后获得按钮出现
代码:
<ListView android:id="@android:id/list" android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:scrollbarAlwaysDrawVerticalTrack="true" android:fadingEdge="none">
</ListView>
<Button android:text="Arsenal" android:id="@+id/arsenal" android:layout_width="wrap_content" android:layout_height="wrap_content"> </Button>
任何帮助,再次是非常赞赏。
谢谢您的回答 - 什么我做的是使用VIEW.Invisible代替VIEW.Gone这正是我需要使用 - 我认为你写的错误的方式,但感谢一堆它帮助我解决了这个问题。 – Andrew 2010-12-05 17:37:14