Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
GridView にボタンの数を表示しています。モバイルでボタンをタッチしてスクロールすると、ボタンが移動します。ボタンのスクロールを無効にしたいです。しかし、エミュレータではスクロールしていません。
アイデアをください....
Gridviewでスクロールするボタンを無効にするのを手伝ってください.....
スクロールが無効になっている GridView に setOnTouchListener を使用します。
gridView.setOnTouchListener(new OnTouchListener(){
@Override public boolean onTouch(View v, MotionEvent event) { if(event.getAction() == MotionEvent.ACTION_MOVE){ return true; } return false; } });