Last active
October 7, 2017 11:04
-
-
Save Sunilkumarr/54e3b01610ec6fd7b16f2cc843633977 to your computer and use it in GitHub Desktop.
image click on individual Conversation screen
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
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