I\'m having a trouble with findViewByid but I can\'t find where the problem is.
findViewByid
Here\'s my FirstFragment class code:
FirstFragment
import and
This is how you can solve the problem:
toggleButton1=(ToggleButton)findViewById(R.id.toggleButton1); toggleButton2=(ToggleButton)findViewById(R.id.toggleButton2);