Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
Posts: 15
Registered: ‎03-03-2009
My Device: Storm

BBM SDK Full Screen chatField

Hi,

 

How can i do chatField to full screen with untoggle fields (like bbm chat screen).

I override to chatfield createAllFieldsManager, createMessageListAndReplyFieldManager,createMessageListManager and createReplyFieldManager methods and no success. chatfield size still half of screen and fields toggleable(messagelist and replyfield).

 

Thank you for  your answers.

Contributor
Posts: 15
Registered: ‎03-03-2009
My Device: Storm

Re: BBM SDK Full Screen chatField

anyone?

Contributor
Posts: 15
Registered: ‎03-03-2009
My Device: Storm

Re: BBM SDK Full Screen chatField

up

Contributor
Posts: 39
Registered: ‎09-28-2010
My Device: Not Specified

Re: BBM SDK Full Screen chatField

I have exactly the same doubt!!!

 

Nobody is going to help us to develop in this new platform?

 

 

 

Regular Visitor
Posts: 1
Registered: ‎07-27-2011
My Device: Torch

Re: BBM SDK Full Screen chatField

UP

 

I'm really interesting in this!!

 

Any solution please?

 

 

New Contributor
Posts: 2
Registered: ‎07-19-2011
My Device: Torch

Re: BBM SDK Full Screen chatField

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!

 

Contributor
Posts: 35
Registered: ‎07-15-2010
My Device: 8300

Re: BBM SDK Full Screen chatField

I need the same...
New Contributor
Posts: 2
Registered: ‎07-19-2011
My Device: Torch

Re: BBM SDK Full Screen chatField

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

Contributor
Posts: 35
Registered: ‎07-15-2010
My Device: 8300

Re: BBM SDK Full Screen chatField

I would mark david's post as the solution,

Thanks man

Developer
Posts: 94
Registered: ‎07-08-2011
My Device: Many

Re: BBM SDK Full Screen chatField

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);
   }
  };
 }
}

 

 


Feel free to press the like button on the right side to thank the user that helped you.
Please mark posts as solved if you found a solution.

Juanma 

@juanmab