IMbeeUI
Installation
Add maven arguments to gradle.properties
m_contextUrl=...
m_user=...
m_password=...Add maven repository to the application level build.gradle
allprojects {
repositories {
jcenter()
maven {
url "${m_contextUrl}/libs-release"
credentials {
username = "${m_user}"
password = "${m_password}"
}
}
}
}Apply the realm-android plugin to the top of the application level build.gradle
Add the class path dependency to the project level build.gradle (Module:app)
Configuration
ChatFragment is the principal UI element which contains a chat list and message sending banner. In onCreate(), you must initialize:
In the activity_main.xml resource, you should add a FrameLayout like this:
UI Customization
Customize the ChatFragment, changing colors, radius ...
Icons customization
Connection Change
To receive connection change, you need to register a BroadcastReceiver. First, create a receiver:
Then, to register:
And don't forget to unregister it when you finish
Last updated