Views not interactive inside ViewPager android -


i have fragment a,

then did 2 things :

  1. i attached fragment inside viewpager.
  2. i attached fragment alone on activity.

observations :

a. when attached inside viewpager: fab button have inside fragment interactive , when press button data change in layout supposed change.

b. when attached inside activity directly: fab button not iterative , data did not change in layout

p.s. -> same fragment.java file attaching in both cases.

so can reason behind 2 anomalous behavior ? in advance :)


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -