Skip to content Skip to sidebar Skip to footer

Android Run Time Exception While Using Gestureimageview And Viewgroup

Hi i am new to Android application. I want to add zooming effect to my image. I took a sample tutorial from [https://github.com/jasonpolites/gesture-imageview][1] and copied sample

Solution 1:

ViewGroup lout = (ViewGroup) findViewById(R.id.gestureImageView);

Your gestureImageView is not a ViewGroup. Which Class does it extend from? Is it View? if yes, use

View lout = (View) findViewById(R.id.gestureImageView);

Post a Comment for "Android Run Time Exception While Using Gestureimageview And Viewgroup"