Nullpointerexception With Self-implemented Onclicklistener
Sorry, but it seems like I'm just all over the place with having various OnClickListener stuff not working for the past few days... I have a ListView of fixed various variables/dat
Solution 1:
You can't use a View
such as a TextView
or Button
from a Layout
that hasn't been inflated using setContentView()
or a layoutInflater
. This seems to be your problem unless I missed where you did that. Put the Views
in the Layout
that you want to use and then you can change the attributes programaticaly if you need to for further formatting
Post a Comment for "Nullpointerexception With Self-implemented Onclicklistener"