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:
Solution 3:
you should first call setContentView method, and then try to find specified View by calling findViewById
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"