[Solved] How insert Floating Action Button inside extends fragment
[ad_1] fab_twitte=(FloatingActionButton)findViewById(fab_twitte); you setting fab_twitte here ,but adding a listener with fab_twi.setOnClickListener where did fab_twi should be fab_twitte. the main problem is the way you are creating the views for the fragment. I sure you read about the life cycle of fragments where the fragments are attach and detach from their corresponding activity. Do not … Read more