ChatMessageView

DonManfred

Expert
Licensed User
Longtime User

Carlos marin

Active Member
Licensed User
Longtime User
This has nothing to do with the "ChatMessage" view, this is an activity setting.
View attachment 70319
Set "IncludeTitle:" to false on the "main" page.
Hi experts, thanks for answer;
I know this very well, but when I use this library he puts the forced title. I see that only affects the initial module, make a test and see what I say
 

Attachments

  • main.png
    main.png
    25.8 KB · Views: 365
  • main1.png
    main1.png
    46.4 KB · Views: 368
  • WhatsApp Image 2018-07-24 at 6.40.39 PM.jpeg
    WhatsApp Image 2018-07-24 at 6.40.39 PM.jpeg
    39.2 KB · Views: 391
  • WhatsApp Image 2018-07-24 at 6.40.39 PM.jpeg
    WhatsApp Image 2018-07-24 at 6.40.39 PM.jpeg
    76 KB · Views: 362
Last edited:

Carlos marin

Active Member
Licensed User
Longtime User
please install this example library and check what I say, I do not know why it happens but I would like to know if there is a way to solve it. I also try to use msgview (MessageView) to retrieve messages from a database and I miss an error
 

DonManfred

Expert
Licensed User
Longtime User
As isaid in the other thead. ALWAYS Create a new THREAD for your issues. Posting to existing thrads is the wrong way!

Welcome on my ignorelist.

The lib depends on the fact that you need to use appcompat.
Make your app appcompat compatible an add a Actionbar.
The title can not be hidden
 
Last edited:

Carlos marin

Active Member
Licensed User
Longtime User
As isaid in the other thead. ALWAYS Create a new THREAD for your issues. Posting to existing thrads is the wrong way!

Welcome on my ignorelist.

The lib depends on the fact that you need to use appcompat.
Make your app appcompat compatible an add a Actionbar.
The title can not be hidden

Hi, I just wanted to know that. If the title can not be hidden, this library does not help me. pity. and thanks for the reply
 

trueboss323

Active Member
Licensed User
Longtime User
Hi @DonManfred
when you have time, could you please update this library?

Also, I had some problems trying to get the send button to work, I followed Marco's advice. But i would still appreciate if there was an example code how to properly send a chat message.
 

trueboss323

Active Member
Licensed User
Longtime User
The Githubproject was rewritten (this time in Kotlin); if i would want to update i have to completely rewrite the library. I don´t think this will happen.
Oh I see :( , well thanks for your library anyway. Maybe there is someone else that would like to contribute?
 

TimN

Member
Licensed User
Longtime User
Trying out your example. Any idea?

B4X:
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
Error occurred on line: 37 (Main)
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:170)
    at anywheresoftware.b4a.objects.ActivityWrapper.LoadLayout(ActivityWrapper.java:209)
    at b4a.example.main._activity_create(main.java:387)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:351)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
    at b4a.example.main.afterFirstLayout(main.java:104)
    at b4a.example.main.access$000(main.java:17)
    at b4a.example.main$WaitForLayout.run(main.java:82)
    at android.os.Handler.handleCallback(Handler.java:873)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:214)
    at android.app.ActivityThread.main(ActivityThread.java:7073)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:965)
Caused by: java.lang.reflect.InvocationTargetException
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.objects.CustomViewWrapper.AfterDesignerScript(CustomViewWrapper.java:64)
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:162)
    ... 18 more
Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/content/ContextCompat;
    at jp.bassaer.chatmessageview.views.ChatView.<init>(ChatView.java:32)
    at de.donmanfred.ChatViewWrapper._initialize(ChatViewWrapper.java:67)
    ... 21 more
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.content.ContextCompat" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/b4a.example-fIwR5Dxv_Y8r14ydbJAOAA==/base.apk"],nativeLibraryDirectories=[/data/app/b4a.example-fIwR5Dxv_Y8r14ydbJAOAA==/lib/arm64, /system/lib64, /system/vendor/lib64]]
    at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
    ... 23 more
** Activity (main) Resume **
 
Top