06-17-2011 04:27 AM
Hi,
How can i do chatField to full screen with untoggle fields (like bbm chat screen).
I override to chatfield createAllFieldsManager, createMessageLi
Thank you for your answers.
06-18-2011 03:38 AM
anyone?
06-22-2011 08:31 AM
up
06-30-2011 05:28 PM
I have exactly the same doubt!!!
Nobody is going to help us to develop in this new platform?
07-27-2011 07:18 AM
UP
I'm really interesting in this!!
Any solution please?
07-28-2011 09:32 PM
Hey,
Yes, I'm facing exactly the same issue, I could not find why I'm not able to make ChatField to use whatever amount of height that I want,I mean to extend the amount of height where the posted messages are.
I really need support on this!
Thanks you very much!
08-02-2011 11:29 AM
08-02-2011 01:44 PM
U might want to make a try by extending the ChatField class, something like:
public class SizableChatField extends ChatField {
int w, h;
public SizableChatField(int width, int height) {
super();
w = width;
h = height;
}
public SizableChatField(long displayStyle, int borderStyle, int width, int height) {
super(displayStyle, borderStyle);
w = width;
h = height;
}
protected ToggleFieldProvider createMessageListManager(long displayStyle, int borderStyle) {
return new BasicMessageListManager(Manager.USE_ALL_WIDTH | Manager.USE_ALL_WIDTH, displayStyle, borderStyle) {
public void sublayout(int maxWidth, int maxHeight) {
super.sublayout(w, h);
}
};
}
}
hope it helps
David
08-02-2011 02:04 PM
I would mark david's post as the solution,
Thanks man
08-02-2011 02:10 PM
Hi David
Please, when posting code, use the code option in the tool bar. Is the icon with the "C" on the right.
It will look better and it's easier to read.
Thanks
public class SizableChatField extends ChatField {
int w, h;
public SizableChatField(int width, int height) {
super();
w = width;
h = height;
}
public SizableChatField(long displayStyle, int borderStyle, int width, int height) {
super(displayStyle, borderStyle);
w = width;
h = height;
}
protected ToggleFieldProvider createMessageListManager(long displayStyle, int borderStyle) {
return new BasicMessageListManager(Manager.USE_ALL_WIDTH | Manager.USE_ALL_WIDTH, displayStyle, borderStyle) {
public void sublayout(int maxWidth, int maxHeight) {
super.sublayout(w, h);
}
};
}
}
Juanma