Skip to content Skip to sidebar Skip to footer

Why Custom Image View 's Findviewbyid Returns Null

Using this i can drag and zoom the imageview with in the screen by giving zoominglimits and boundaruy limits.But i want it for multiple images.For that i used the customview in the

Solution 1:

you should call setContentView at begining of your application in "onCreate"

Solution 2:

You are calling

findViewById()

before the

setContentView( R.layout.main );

Solution 3:

Solution 4:

The setContentView(R.layout.main) should always be called after

super.onCreate( savedInstanceState );

in onCreate method.

Post a Comment for "Why Custom Image View 's Findviewbyid Returns Null"