Skip to content

Commit

Permalink
修复Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfusheng committed Jun 24, 2016
1 parent 175742c commit 4a8c14b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ private void initData() {
}

private void initView() {
fvTopFilter.setVisibility(View.INVISIBLE);
fvTopFilter.setVisibility(View.GONE);

// 设置筛选数据
fvTopFilter.setFilterData(mActivity, filterData);
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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"/>
</LinearLayout>

</FrameLayout>
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
}

Expand Down

0 comments on commit 4a8c14b

Please sign in to comment.