Latest messages

33 topics, 101 messages
Kuix bug report » Menu item, Tooltip , Dropdown or Choice items truncation at the end

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.

Kuix bug report » ScrollPane in or after Container issure

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">
    <screenTopBar class="mainHeader">
        <picture src="logo.png" class="headerLogo" />
        <container style="layout:inlinelayout(true,fill);" class="headerText">
            <text class="red" style="align:center;">@{klass} </text>
            <text class="red" style="align:center;">%CLASS%</text>
        </container>
    </screenTopBar>
    <container style="layout:inlinelayout(false,fill);align:fill-top">
        <container class="titlebar" style="layout:gridlayout(2,1);align:fill-top">
            <text class="whiteTitle" style="align:left;font-size:small;">%SCHEDULE%</text>
            <text class="whiteTitle" style="align:right;font-size:small;">@{fullname}</text>
        </container>
          
        <scrollPane>
            <list>
                <_renderer>
                    <![CDATA[
                        <listItem class="listItems" onAction="goToSchedule">
                            <_onfocus>weekItemFocus(${id},${name},${date})</_onfocus>
                            <text class="listText">${date} - ${name}</text>
                            <picture class="listArrow" src="arrow.png" />
                        </listItem>
                    ]]>
                </_renderer>
                <_items>@{dayList}</_items>
            </list>
        </scrollPane>
    </container>

   
       
   
    <screenFirstMenu  onAction="goToSchedule">%SELECT%</screenFirstMenu>
    <screenSecondMenu  onAction="backToMenu">%BACK%</screenSecondMenu>

</screen>

 

Kuix bug report » White screen after server request

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!!

Kuix bug report » ListItem bug when Screen Transaction!

Thank Ramez,  it is runing  now ;)...

Kuix bug report » ListItem bug when Screen Transaction!

Thank ramezs,

 

I will try  now..

Kuix bug report » ListItem bug when Screen Transaction!

Sorry I forgot the follwoing:

In KuixCanvas.java add the following function:

public boolean isTransitionRunning(){

        return transitionRunning;

}

 

Kuix bug report » ListItem bug when Screen Transaction!

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()) {

if (textX < minOffset || textX > maxOffset) {

slideTextIncrement *= -1;

}

textX += slideTextIncrement;

invalidateAppearance();

}

 

Kuix bug report » ListItem bug when Screen Transaction!

Hi,

Thank for reply , I will try your solution.

Kuix bug report » ListItem bug when Screen Transaction!

   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(){
        return transitionRunning;
}

 

  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

 

Kuix bug report » ListItem bug when Screen Transaction!

Hi all,

 

I think there is a bug about transition animation of screen, which is in  both fading and sliding.

If there is ticker text on the screen like a listitem, the transition doesn’t accoured properly, all the ui compents are okey but about tickering listitem is not okey.   

 

Kuix bug report » Scrollpane issues

http://www.kalmeo.org/forum/topic/650/scrollpane-in-or-after-container-issure/1

Kuix bug report » Time lagging to display more number of listitems on the screen

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?

Kuix bug report » ScrollPane in or after Container issure

Is's a bug,I u like to fix it easily,modi scrollpane.java and set needToAutoScroll default value to true.

Kuix bug report » ScrollPane in or after Container issure

up

Kuix bug report » ScrollPane in or after Container issure

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.

Modify the xml again and put the scrollpane in a container, the scrollpane is back, but if the listitems are more enough and go outside the screen, the scrollpane can not scroll with press the DOWN_KEY, but the listitems outside screen can be selected.