Drag Drop Android

0

Galera,

I wonder if I can control what goes into my layout (DROP) For the image view below I would like only the "imgu" could enter my layout, the rest will not:

findViewById(R.id.imga).setOnLongClickListener(new MyOnLongClickListener());
    findViewById(R.id.imge).setOnLongClickListener(new MyOnLongClickListener());
    findViewById(R.id.imgi).setOnLongClickListener(new MyOnLongClickListener());
    findViewById(R.id.imgo).setOnLongClickListener(new MyOnLongClickListener());
    findViewById(R.id.imgu).setOnLongClickListener(new MyOnLongClickListener());

    findViewById(R.id.layoutrecebe).setOnDragListener( new MyOnDragListener(1));
    
asked by anonymous 11.06.2018 / 22:57

0 answers