我尝试将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
但这不起作用。我做错了什么?
答案 0 :(得分:1)
您的活动已实施OnScaleGestureListener
所以你可以创建一个这样的探测器:
scaleGestureDetector = new ScaleGestureDetector( this, this );