Menu item, Tooltip , Dropdown or Choice items truncation at the end.
In Samsung jet model, the above object values are truncated while displaying in handset.
I request your help.
|
Basavaraj 1 message 2010-10-07 |
|
|
JamUzb 6 messages 2010-08-28 |
shappy1978 I changed needToAutoScroll value to true, but scrollpane still can not scroll if the listitems are more enough and go outside the screen. Following is my xml source: <screen class="main" style="layout:borderlayout;align:center;padding:15 0 0 0;" shortcuts="right=goToSchedule|left=backToMenu" focusloop="true">
|
|
sheelss200 1 message 2010-07-23 |
Getting a white screen instead of a result screen after sending a request to the server. The result, which in string format and also lengthy, is displayed only after a key is pressed which forcefully repaints the screen. I guess it is a thread issue.. Also getting out of memory exception sometimes after few hits!!!! Please help!! |
|
kadir950 10 messages 2010-07-19 |
|
|
kadir950 10 messages 2010-07-18 |
|
|
ramezs 15 messages 2010-07-16 |
|
|
kadir950 10 messages 2010-07-16 |
Hi ramezs again,
I can not find this function > Kuix.getCanvas().isTransitionRunning()
I think your solution will be a good solution if I find this function
if (isVisible()&& !Kuix.getCanvas().isTransitionRunning()) {
|
|
kadir950 10 messages 2010-07-16 |
|
|
ramezs 15 messages 2010-07-15 |
Fixing Bug: displaying a new screen, with transition effect, that has an initial focus on a Text doing slide animation causes the screen to not be rendered correctly:Cause:While the transition between the two screens is rendered the slideTextWorkerTask of the Text widget will shrink the repaint area of the canvas to the size of the Text widget, this happens as following: slideTextWorkerTask -> invalidateAppearance() -> Widget. invalidateAppearanceRegion(0, 0, width, height) -> Desktop.invalidateAppearanceRegion(..) -> canvas. repaintNextFrame(x, y, width, height) Solution:Disable the function of slideTextWorkerTask while rendering transition between screens In Text.java:
if (isVisible()&& !Kuix.getCanvas().isTransitionRunning()) { if (textX < minOffset || textX > maxOffset) { slideTextIncrement *= -1; } textX += slideTextIncrement; invalidateAppearance(); } In KuixCanvas.java add the following function: public boolean isTransitionRunning(){
Fixing Bug: Displaying an old (was displayed before) screen that has an initial focus on a TextWidget (that has slide animation) doesn’t trigger the slide animation of that TextWidget:Cause:While slideTextWorkerTask will be terminated when the container screen is not the current screen, this termination is cause by the following line of code in the task: return !isInWidgetTree(); The task is not called again because the doLayout() is called only for the first time when creating the screen and adding widgets to it. Solution:When displaying a screen trigger all focused child Text widgets inside the screen, to start the slideTextWorkerTask.
In Desktop.java: if (screen != null) { super.add(screen); //By Wamsoft: triger text slid animation should be called here triggerSlideAnimation(this); }
void triggerSlideAnimation(Widget widget) { for (widget = widget.getChild(); widget != null; widget = widget.next) { if (widget instanceof Text && widget.isFocusWidgetChild()){ ((Text)widget).triggerSlideAnimation(); } if (widget instanceof Ticker) // Ticker is a custom widget ((Ticker)widget).triggerSlideAnimation(); if (widget.getChild()!=null) triggerSlideAnimation(widget); } }
In Text.java: public void triggerSlideAnimation(){ if (slideTextWorkerTask != null) { Worker.instance.removeTask(slideTextWorkerTask); textX = originalTextX; slideTextIncrement = 1; Worker.instance.pushTask(slideTextWorkerTask); } }
ramezs@gmail.com
|
|
kadir950 10 messages 2010-05-27 |
|
|
shappy1978 33 messages 2010-05-21 |
|
|
shappy1978 33 messages 2010-05-21 |
Showing too meny Widget that out of screen if not a good idea,that will make the java vm work slowly.but I also has a xml ,it show page 1 to 500 page,it will take long time to send vml from wireless to my device,but cost less than 30 second.After that I modi the source code of radiogroup and add "from","to" property for it to reduce the xml size,the xml show up quickly.So I think the problem may be u add too many widget in listitem,or your network is slow? |
|
shappy1978 33 messages 2010-05-21 |
|
|
jiangyubao 4 messages 2010-02-21 |
|
|
Lorreyan 2 messages 2010-01-11 |
Use the official demo, modify widgets.xml and add a container before the scrollpane like this: <tabitem label="List" style="layout:borderlayout;"> <_enabled>@{bList}</_enabled> <container><text>testtext-1<text><text>testtext-2</text></container> <scrollPane> <list> <listitem> <text>Stone</text> <picture>stone.png</picture> </listitem> <listitem> <text>Leaf</text> </listitem> <listitem> <picture>scissors.png</picture> <text>Scissors</text> </listitem> <listitem> <textarea>A paragraph long enough to take up two lines</textarea> </listitem> </list> </scrollPane> </tabitem> Run it. Only container part display and the scrollpane lost, in debug mode, the scrollpane is initialized but the doLayout method not invoked. |