0

I want apply the footer below the list view. The footer is a textview, When list is empty it show the footer, but data searchable then below the list footer is not shown, help me, It is linear layout for android.

Thanks, Nitin

4

1 回答 1

1

使用此属性在所需的位置添加 textview

能见度:不见了

并且在您的活动中,当您确实从搜索中获得任何数据时

text1.setVisibility(View.GONE);

但如果您的搜索返回任何数据,则设置

对 textview 可见的可见性

text1.setVisibility(View.VISIBLE);

于 2013-10-14T21:26:12.053 回答