Slide container view and Landscape/potrait repainting

18 views
Skip to first unread message

wicky...@gmail.com

unread,
May 29, 2014, 3:47:15 AM5/29/14
to codenameone...@googlegroups.com
Hi,

As i am developing an app with the tab as being the main menu.

I was wondering if i can incorporate a container which just slides in, replacing the list in the first tab? Like what iOS has as a slideview ...

And also, when the user switch between landscape/potrait view, can the list be repainted and the thumbnail be re-scaled?

Regards,
Wick

Shai Almog

unread,
May 29, 2014, 11:41:21 AM5/29/14
to codenameone...@googlegroups.com, wicky...@gmail.com
Hi,
the entire UI rearranges on rotation so everything is repainted. If you want to shrink/change UI elements for that case you can create your own renderer.

What do you mean by slides in? Like a sidemenu?

Wick S

unread,
May 29, 2014, 11:58:26 AM5/29/14
to Shai Almog, codenameone...@googlegroups.com

I do have my own renderer.
Calculating width and height according to the screen size. Guess its already repainting then.

The other thing, i found out its in the form of container.replaceComponent. Thats really cool and does the job.

Thankz for the spontaneous reply.
Regards
Wick

Reply all
Reply to author
Forward
0 new messages