B
B
BitNeBolt2020-02-15 10:03:52
Android
BitNeBolt, 2020-02-15 10:03:52

How do you know that the View was found and that the findViewById() method worked correctly?

How to find out what's working next. lines:

image0 = (ImageView) root_view.findViewById(R.id.image0);

that a value was actually added to the image0 variable, and is there any field on ImageVIew to understand that the variable is not empty?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Zagaevsky, 2020-02-15
@BitNeBolt

if(image0 == null)//not found

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question