implementing OnClickListener for a fragment on android

前端 未结 4 1077
忘了有多久
忘了有多久 2021-01-05 10:18

I have a sliding menu project and inside home layout another layout is called as a fragment :

this is the HomeFragment.java :

package info.androidhiv         


        
4条回答
  •  庸人自扰
    2021-01-05 11:08

    You can use

    rootView.findViewById(...)
    

    in your code, because your class doesn't inherit/implement this method

提交回复
热议问题