LoginSignup
1
0

More than 5 years have passed since last update.

RadioButtonのフォーカス、タッチ無効化

Last updated at Posted at 2017-04-18

RadioGroupがわからなかった為、
カスタムViewにRadioButton形式の選択項目とわかるようにRadioButtonを設置した
RadioButtonだけをタッチされた時、RadioButtonのアニメーションが起きてしまう(選択される
RadioGroupではないので解除が出来なくなる
困る
→RadioButtonに対してのタッチを無効化しよう

参考
http://qiita.com/_meki/items/3a1769382bdd9d4d5ab7

focsable=false
focusbleInTouchMode=false
→特に効果なしフォーカスではないようだった

clickable=false
→選択されない。アニメーションされない
setOnClickListener にオブジェクトが登録されていると動作しないらしい

enabled=false
→選択されない。表示がdisabledの状態になるため使えない

1
0
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
0