Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Contributor
mustafakemal
Posts: 15
Registered: 03-03-2009
My Carrier: BB Developer

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.

Please use plain text.
Contributor
mustafakemal
Posts: 15
Registered: 03-03-2009
My Carrier: BB Developer

Re: BBM SDK Full Screen chatField

anyone?

Please use plain text.
Contributor
mustafakemal
Posts: 15
Registered: 03-03-2009
My Carrier: BB Developer

Re: BBM SDK Full Screen chatField

up

Please use plain text.
Contributor
icaro90302
Posts: 39
Registered: 09-28-2010

Re: BBM SDK Full Screen chatField

I have exactly the same doubt!!!

 

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

 

 

 

Please use plain text.
Regular Visitor
amm18
Posts: 1
Registered: 07-27-2011
My Carrier: BB Developer

Re: BBM SDK Full Screen chatField

UP

 

I'm really interesting in this!!

 

Any solution please?

 

 

Please use plain text.
New Contributor
dcf82
Posts: 2
Registered: 07-19-2011
My Carrier: Software Engineer

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!

 

Please use plain text.
Contributor
BBSuperApps
Posts: 27
Registered: 07-15-2010
My Carrier: movistar

Re: BBM SDK Full Screen chatField

I need the same...
Please use plain text.
New Contributor
dcf82
Posts: 2
Registered: 07-19-2011
My Carrier: Software Engineer

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

Please use plain text.
Contributor
BBSuperApps
Posts: 27
Registered: 07-15-2010
My Carrier: movistar

Re: BBM SDK Full Screen chatField

I would mark david's post as the solution,

Thanks man

Please use plain text.
Developer
juanmab
Posts: 94
Registered: 07-08-2011

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

Please use plain text.