Reputation: 25
private void bindButterKnife() { ButterKnife.bind(this); }
private void setUserRecyclerView() { mUsersChatAdapter = new UsersChatAdapter(this, new ArrayList<User>()); mUsersRecyclerView.setLayoutManager(new LinearLayoutManager(this)); mUsersRecyclerView.setHasFixedSize(true); mUsersRecyclerView.setAdapter(mUsersChatAdapter); }
someone help me pls
Upvotes: 0
Views: 67
Reputation: 157487
onViewCreated
and use ButterKnife as ButterKnife.bind(this, view)
Use getActivity()
instead of this
@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
ButterKnife.bind(this, view);
}
Upvotes: 1