direction

Detecting the scrolling direction in the adapter (up/down)

南楼画角 提交于 2019-11-26 12:05:45
问题 I am trying to mimic the Google Plus application in my project, as it seems to be the reference now. The listview effect when scrolling is really nice and I would like to do something similar. I have started with the LayoutAnimationController http://android-er.blogspot.be/2009/10/listview-and-listactivity-layout.html LayoutAnimationController controller = AnimationUtils.loadLayoutAnimation( this, R.anim.list_layout_controller); getListView().setLayoutAnimation(controller); and that seems bad,

How to recognize swipe in all 4 directions

孤街醉人 提交于 2019-11-26 04:30:36
问题 I need to use swipe to recognize swipe gesture down and then right. But on swift UISwipeGestureRecognizer has predeterminate Right direction.. And I don\'t know how make this for use other directions.. 回答1: You need to have one UISwipeGestureRecognizer for each direction. It's a little weird because the UISwipeGestureRecognizer.direction property is an options-style bit mask, but each recognizer can only handle one direction. You can send them all to the same handler if you want, and sort it

H3C S5560交换机风扇反转告警

我的未来我决定 提交于 2019-11-26 04:26:58
时间: 2016-09-25 工程: 新疆农七师锦龙电力调度自动化升级项目 现场人员: 张健 问题描述: 现场所有的S5560系列交换机风扇信号灯黄灯闪烁,前面板SYS信号灯红色常亮。 现场环境: 检查交换机风扇配置信息发现交换机风扇的实际气流方向为:Airflow Direction: Port-to-power;而配置用户下看到风扇模块的优选气流方向为:Prefer Airflow Direction: Power-to-port,两者不一致(交换机风扇反转),导致交换机风扇状态为:FanDirectionFault,风扇信号灯告警,交换机SYS信号灯告警。 处理方法: 因为风扇模块的实际气流方向是无法改变的,只能去改变风扇模块的优选气流方向和风扇实际气流方向一致,操作步骤如下: [QIANZHI-B] [QIANZHI-B]dis fan Slot 1: Fan 1: State : FanDirectionFault //工作状态报错 Airflow Direction: Port-to-power //实际气流方向 Prefer Airflow Direction: Power-to-port //优选气流方向 Fan 2: State : FanDirectionFault Airflow Direction: Port-to-power Prefer Airflow