Created
June 28, 2020 18:29
-
-
Save gsrathoreniks/8efafef8f4444651ebe3f94f81fc4c4e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GOTO---> searchFragment----> onBindViewHolder | |
//------------------------------------------------------------------------------------- | |
@Override | |
protected void onBindViewHolder(@NonNull final UsersViewHolder holder, final int position, @NonNull final SearchItem model) { | |
holder.setDetails(getActivity(), model.getName(), model.getUsername(), model.getProfile_pic()); | |
holder.mView.setOnClickListener(new View.OnClickListener() { | |
@Override | |
public void onClick(View view) { | |
Toast.makeText(getActivity(), ""+position, Toast.LENGTH_SHORT).show(); | |
Intent intent = new Intent(getActivity(), SplashScreen.class); | |
// intent.putExtra("name",model.getName()); | |
// intent.putExtra("email",model.getEmail()); | |
// intent.putExtra("uid",model.getUid()); | |
startActivity(intent); | |
} | |
}); | |
} | |
//-------------------------------------------------------------- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment