开发者

Getting button appear after ListView has been set to invisible

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜