LoginSignup
1
2

More than 1 year has passed since last update.

【kotlin】同時タップでアプリが強制終了しない様にする

Last updated at Posted at 2021-08-03

状況

Androidではデフォルトでボタンの同時押しを許容する設定になっており、設定を変更したい

解決方法

全画面に同時タップを出来ない様に反映するにはAndroidManifest.xmlのテーマに下記スタイルを適用する
画面毎ボタンの同時押し禁止を実装するには、下記を各widgetに適用すればOK

<item name="android:windowEnableSplitTouch">false</item>
<item name="android:splitMotionEvents">false</item>

参考URL

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2