remove title on form

6,139 views
Skip to first unread message

Sam Ace

unread,
May 11, 2014, 7:28:20 AM5/11/14
to codenameone...@googlegroups.com
hi i have a hand coded form and i want to remove its title cos its blank and i dont intend to use it... how can u remove this title from my form???

Shai Almog

unread,
May 11, 2014, 2:17:10 PM5/11/14
to codenameone...@googlegroups.com
form.setTitle("");

Sam Ace

unread,
May 12, 2014, 10:36:37 AM5/12/14
to codenameone...@googlegroups.com
tried it. its still d same. i need to remove the title area

Shai Almog

unread,
May 12, 2014, 1:21:30 PM5/12/14
to codenameone...@googlegroups.com
Can you post a screenshot of what you see and explain what you are trying to remove?

Sam Ace

unread,
May 12, 2014, 1:58:19 PM5/12/14
to codenameone...@googlegroups.com
here it is
http://prntscr.com/3ilcfn
notice the white title area??? am tryin to remove it

ad...@java-tuts.com

unread,
May 12, 2014, 2:10:47 PM5/12/14
to codenameone...@googlegroups.com
Hi Sam,

I have recently developed an application were I wanted to remove the title area as well.
My solution was to set the prefered height of the title area to 0, then the title area will disappear.

Code{
form.getTitlearea.setPreferedH(0);

ad...@java-tuts.com

unread,
May 12, 2014, 2:13:43 PM5/12/14
to codenameone...@googlegroups.com, ad...@java-tuts.com
From inside a code editor it will look like this:

Form hi = new Form("");
hi.getTitleArea().setPreferredH(0);

Shai Almog

unread,
May 13, 2014, 1:16:06 AM5/13/14
to codenameone...@googlegroups.com, ad...@java-tuts.com
Customize the StatusBar UIID style.
Setting the TitleArea to 0 height is wrong since this will remove the padding you need for iOS 7 devices and the time/battery life of your application will effectively be on top of your application UI. You won't see this in the simulator but you will see this on the device.

Thomas Chatfield

unread,
May 13, 2014, 5:55:38 AM5/13/14
to codenameone...@googlegroups.com
He means in the theme section of the designer tool add a UIID/Style called StatusBar (or modify if already exists).

Sam Ace

unread,
May 13, 2014, 10:02:16 AM5/13/14
to codenameone...@googlegroups.com
i made Status padding and margin 0 and this is what i get
white line is still there but this time slimmer...

 http://prntscr.com/3iu12k

Shai Almog

unread,
May 13, 2014, 12:12:29 PM5/13/14
to codenameone...@googlegroups.com
Set the TitleAreay UIID transparency to 0.

Sam Ace

unread,
May 14, 2014, 5:32:22 AM5/14/14
to codenameone...@googlegroups.com
thanks . works fine now

Sam Ace

unread,
May 13, 2014, 4:56:51 AM5/13/14
to codenameone...@googlegroups.com
customize statusbar??? dont get that please . hw do u mean???please explain better to me cos i dont see any way to edit status bar on codename one. i did this but yet no effect
loginForm.getTitleComponent().setUIID("dontTitle");
      loginForm.getTitleComponent().setText(null);
...


On Tue, May 13, 2014 at 1:16 AM, Shai Almog <shai....@gmail.com> wrote:
Customize the StatusBar UIID style.
Setting the TitleArea to 0 height is wrong since this will remove the padding you need for iOS 7 devices and the time/battery life of your application will effectively be on top of your application UI. You won't see this in the simulator but you will see this on the device.

--
You received this message because you are subscribed to a topic in the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/codenameone-discussions/2sgVfNYU9rk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to codenameone-discu...@googlegroups.com.
Visit this group at http://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/4b5414a6-73f0-4ae3-91c6-c589accf7c89%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages