From 4a8c14b9155b7896de982f4c49c1f72cf71e1a99 Mon Sep 17 00:00:00 2001 From: sfsheng0322 Date: Fri, 24 Jun 2016 16:52:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DBug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/sunfusheng/StickyHeaderListView/ui/MainActivity.java | 4 ++-- app/src/main/res/layout/activity_main.xml | 2 +- build.gradle | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/sunfusheng/StickyHeaderListView/ui/MainActivity.java b/app/src/main/java/com/sunfusheng/StickyHeaderListView/ui/MainActivity.java index c882ac4..0e04f48 100644 --- a/app/src/main/java/com/sunfusheng/StickyHeaderListView/ui/MainActivity.java +++ b/app/src/main/java/com/sunfusheng/StickyHeaderListView/ui/MainActivity.java @@ -134,7 +134,7 @@ private void initData() { } private void initView() { - fvTopFilter.setVisibility(View.INVISIBLE); + fvTopFilter.setVisibility(View.GONE); // 设置筛选数据 fvTopFilter.setFilterData(mActivity, filterData); @@ -259,7 +259,7 @@ public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCoun // 处理筛选是否吸附在顶部 if (filterViewTopSpace > titleViewHeight) { isStickyTop = false; // 没有吸附在顶部 - fvTopFilter.setVisibility(View.INVISIBLE); + fvTopFilter.setVisibility(View.GONE); } else { isStickyTop = true; // 吸附在顶部 fvTopFilter.setVisibility(View.VISIBLE); diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml index db366b3..afbf655 100644 --- a/app/src/main/res/layout/activity_main.xml +++ b/app/src/main/res/layout/activity_main.xml @@ -76,7 +76,7 @@ android:id="@+id/fv_top_filter" android:layout_width="match_parent" android:layout_height="wrap_content" - android:visibility="invisible"/> + android:visibility="gone"/> \ No newline at end of file diff --git a/build.gradle b/build.gradle index edf5113..6d7ef37 100644 --- a/build.gradle +++ b/build.gradle @@ -4,7 +4,7 @@ buildscript { jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:2.1.0' + classpath 'com.android.tools.build:gradle:2.1.2' } }