How does clicking an ImageView not interfere with the application? [closed]

0

I have Linear Layout

               <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:id="@+id/linear"
                android:orientation="horizontal"
                android:onClick="onClickAcao">

               </LinearLayout>

      public void image(ImageView image,int rid,LinearLayout linear )
    {
        image.setBackgroundResource(rid);

        linear.addView(image);
    }

And in this Linear layout goes a ImagemView created via code, with imagemView created in Linear Layout as image that takes all Linear Layout when clicking it does not perform action of linear Layout, You can do ImagemView does not interfere with the action ?.

    
asked by anonymous 17.03.2016 / 14:51

1 answer

0

Actually ImagemView did not bother to call the function onClickAcao of Linear Layout

    
17.03.2016 / 17:00