This file contains hidden or 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
| public class LoginActivity extends AppCompatActivity { | |
| private TextInputEditText mobile; | |
| private MaterialButton loginBtn; | |
| private MaterialButton signupBtn; | |
| private ProgressBar progressBar; | |
| @Override | |
| protected void onCreate(Bundle savedInstanceState) { |
This file contains hidden or 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
| public class ConversationsActivity extends AppCompatActivity { | |
| @Override | |
| protected void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| setContentView(R.layout.activity_conversations); | |
| } | |
| } |
This file contains hidden or 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
| <fragment | |
| android:id="@+id/conversationList" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| class="com.cometchat.pro.uikit.ui_components.chats.CometChatConversationList" /> |
This file contains hidden or 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
| public void newChatTapped(View view) { | |
| startActivity(new Intent(ConversationsActivity.this, SelectContactActivity.class)); | |
| } |
This file contains hidden or 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
| public class SelectContactActivity extends AppCompatActivity { | |
| @Override | |
| protected void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| setContentView(R.layout.activity_select_contact); | |
| } | |
| } |
This file contains hidden or 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
| <fragment | |
| android:id="@+id/userList" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| class="com.cometchat.pro.uikit.ui_components.users.user_list.CometChatUserList" /> |
This file contains hidden or 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
| CometChatConversationList.setItemClickListener(new OnItemClickListener<Conversation>() { | |
| @Override | |
| public void OnItemClick(Conversation var, int position) { | |
| User user = (User)var.getConversationWith(); | |
| Intent intent = new Intent(ConversationsActivity.this, CometChatMessageListActivity.class); | |
| intent.putExtra(UIKitConstants.IntentStrings.UID, user.getUid()); | |
| intent.putExtra(UIKitConstants.IntentStrings.AVATAR, user.getAvatar()); | |
| intent.putExtra(UIKitConstants.IntentStrings.STATUS, user.getStatus()); | |
| intent.putExtra(UIKitConstants.IntentStrings.NAME, user.getName()); |
This file contains hidden or 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
| CometChatUserList.setItemClickListener(new OnItemClickListener<User>() { | |
| @Override | |
| public void OnItemClick(User user, int position) { | |
| Intent intent = new Intent(SelectContactActivity.this, CometChatMessageListActivity.class); | |
| intent.putExtra(UIKitConstants.IntentStrings.UID, user.getUid()); | |
| intent.putExtra(UIKitConstants.IntentStrings.AVATAR, user.getAvatar()); | |
| intent.putExtra(UIKitConstants.IntentStrings.STATUS, user.getStatus()); | |
| intent.putExtra(UIKitConstants.IntentStrings.NAME, user.getName()); |
This file contains hidden or 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
| import { enableProdMode } from '@angular/core'; | |
| import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; | |
| import { AppModule } from './app/app.module'; | |
| import { environment } from './environments/environment'; | |
| import { CometChat } from "@cometchat-pro/chat"; | |
| import { COMETCHAT_CONSTANTS } from "./CONSTS"; | |
| if (environment.production) { |
OlderNewer