Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

findview by id in android

This is because findViewById() searches in the activity_main layout, while the button is located in the fragment's layout fragment_main.
 
PREVIOUS NEXT
Tagged: #findview #id #android
ADD COMMENT
Topic
Name
4+1 =