开发者

Getting button appear after ListView has been set to invisible

开发者 https://www.devze.com 2023-01-29 03:23 出处:网络
Thanks to some help from a user here I was able to hide my ListView when a button 开发者_StackOverflow社区is pressed. What I want to happen is once I\'ve pressed the button and it\'s hidden my ListVie

Thanks to some help from a user here I was able to hide my ListView when a button 开发者_StackOverflow社区is pressed. What I want to happen is once I've pressed the button and it's hidden my ListView then the button outside the ListView tags to replace the space where the listview was.

Code below:

<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>

Any help, once again is very much appreciated.


use View.INVISIBLE instead of View.GONE

0

精彩评论

暂无评论...
验证码 换一张
取 消