Skip to content

Commit

Permalink
V1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfusheng committed Nov 27, 2016
1 parent c1fb129 commit 5b810b0
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,12 +253,11 @@ public void onItemClick(AdapterView<?> parent, View view, int position, long id)

// 动画显示
public void show(int position) {
if (isShowing && lastFilterPosition == position) return;
resetFilterStatus();
if (lastFilterPosition != position) {
rotateArrowDown(lastFilterPosition);
lastFilterPosition = position;
}
rotateArrowUp(position);
rotateArrowDown(lastFilterPosition);
lastFilterPosition = position;

switch (position) {
case POSITION_CATEGORY:
Expand Down Expand Up @@ -298,6 +297,8 @@ public void hide() {
resetFilterStatus();
rotateArrowDown(filterPosition);
rotateArrowDown(lastFilterPosition);
filterPosition = -1;
lastFilterPosition = -1;
viewMaskBg.setVisibility(View.GONE);
ObjectAnimator.ofFloat(llContentListView, "translationY", 0, -panelHeight).setDuration(200).start();
}
Expand Down

0 comments on commit 5b810b0

Please sign in to comment.