ScaleGestureDetector用于整个视图

时间:2015-07-20 11:51:13

标签: android gesture

我尝试将execute' from /home/ruby/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/application/routes_reloader.rb:27:in实施到整个execute_if_updated' from /home/ruby/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/application/finisher.rb:69:in时失败了。

我有instance_exec' from /home/ruby/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/initializable.rb:30:in填充整个屏幕。最重要的是,我有不同的小图像。现在我想实现block in run_initializers' from /home/ruby/.rbenv/versions/2.2.2/lib/ruby/2.2.0/tsort.rb:226:in来缩放整个视图而不仅仅是block (2 levels) in each_strongly_connected_component' from /home/ruby/.rbenv/versions/2.2.2/lib/ruby/2.2.0/tsort.rb:429:in

我的代码:

block in each_strongly_connected_component'
    from /home/ruby/.rbenv/versions/2.2.2/lib/ruby/2.2.0/tsort.rb:345:in

但这不起作用。我做错了什么?

1 个答案:

答案 0 :(得分:1)

您的活动已实施OnScaleGestureListener 所以你可以创建一个这样的探测器:

scaleGestureDetector = new ScaleGestureDetector( this, this );