Finally i understood the problem !

It is because of inflater which is unable to call methods through
fragment xml ….