問題タブ [long-press]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
1937 参照

windows-phone-8 - Windows Phone 8で操作イベントを使用して長押しを実装する方法は?

は廃止されたため、 、、 のGestureListener3 つのイベントが残っています。ManipulationStartedManipulationDeltaManipulationCompleted

私のカスタム リストボックスでは、リストボックス アイテムを左右にスワイプして特定の機能を実行できます。操作イベントを使用してリストボックス項目の長押しを検出するにはどうすればよいですか? 左右のスワイプが途切れないように長押しを実装したいです。

どんな手がかり/アイデアも大いに役立ちます!

0 投票する
1 に答える
2518 参照

android - How to add my app to long press on home button?

This is what happens when I long press on the home button on my Android device. As you can see, except Google Now, there are two other apps...

I need to add my own App to this menu, yet I am unable to find anywhere how to go about coding it.

Answers I've found on StackOverflow, such as this one are saying, that it's not possible, I have to be rooted, etc. However, my phone is not rooted and these two other apps were able to do it. How?

I'll pay in beer and gold :)

Screenshot

enter image description here

0 投票する
2 に答える
3665 参照

ios - ボタンを長押ししてからドラッグしてUIViewを移動するには?

このビュー内のボタンでいくつかの UIView を移動したい。そのようにして、私はそれをすることができます:

.

そのボタンをロングプレスした場合、どうすれば移動できますか?

0 投票する
3 に答える
3558 参照

android - タイプ View のメソッド setOnLongClickListener(View.OnLongClickListener) は、引数 (new OnLongClickListener(){}) には適用されません。

長押しに応答したい ImageView があります。

このメソッドを別のアプリケーションに問題なく実装しましたが、コードをコピーして別のアプリケーションに貼り付けたところ、次の構文エラーが発生しました。

コードブロックは次のとおりです。

このビュー メソッドは API レベル 1 以降で使用できるため、何が間違っているのかわかりません。