Skip to content

Instantly share code, notes, and snippets.

@Sunilkumarr
Last active October 7, 2017 11:04
Show Gist options
  • Save Sunilkumarr/54e3b01610ec6fd7b16f2cc843633977 to your computer and use it in GitHub Desktop.
Save Sunilkumarr/54e3b01610ec6fd7b16f2cc843633977 to your computer and use it in GitHub Desktop.
image click on individual Conversation screen
1)Go to this line in your project file DetailedConversationAdapter.java
https://github.com/AppLozic/Applozic-Android-SDK/blob/master/mobicomkitui/src/main/java/com/applozic/mobicomkit/uiwidgets/conversation/adapter/DetailedConversationAdapter.java#L799
2)
//Paste this code it will give you string userId in your activity intent based on that you can get and display your user profile screen
if (contactImage != null) {
contactImage.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
try {
Class profileActivity = Class.forName("com.jiojiome.activity.UserProfileActivity");
if (profileActivity != null) {
Intent intent = new Intent(context, profileActivity);
intent.putExtra(ConversationUIService.USER_ID, message.getContactIds());
context.startActivity(intent);
}
} catch (ClassNotFoundException e) {
e.printStackTrace();
}
}
});
alphabeticTextView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
try {
Class profileActivity = Class.forName("com.jiojiome.activity.UserProfileActivity");
if (profileActivity != null) {
Intent intent = new Intent(context, profileActivity);
intent.putExtra(ConversationUIService.USER_ID, message.getContactIds());
context.startActivity(intent);
}
} catch (ClassNotFoundException e) {
e.printStackTrace();
}
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment