Forum > Android

jDrawingView bug: when jDrawingView1 becomes visible, the “status bar” hides

(1/2) > >>

neuro:
The description of jDrawingView bug.
Create new Android GUI project and add jDrawingView and jButton with the following program code.


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---procedure TAndroidModule1.jButton1Click(Sender: TObject);begin jDrawingView1.Visible := not jDrawingView1.Visible;end;
Then click jButton1 multiple times – with every click DrawingView1 switches between being visible and invisible.
When jDrawingView1 becomes visible, the “status bar” hides.
When jDrawingView1 becomes invisible, the “status bar” becomes visible.
This is a bug of jDrawingView. The visibility of jDrawingView should not change visibility of “status bar”.
How to fix this bug of jDrawingView?

jmpessoa:


Can you put here a simple project? So,  I can try test, find and fix this bug...

neuro:
You can create such new project just in one minute. Just create new empty Android GUI project and add jDrawingView and jButton.
Bug testing project is attached.

jmpessoa:


--- Quote ---You can create such new project just in one minute.

--- End quote ---

Yes!

But, now I can see how you configured this parameters...


--- Quote ---    PosRelativeToParent = [rpTop]
    LayoutParamWidth = lpMatchParent
    LayoutParamHeight = lpHalfOfParent

--- End quote ---

jmpessoa:
A simple solution:

Go to LAMW folder   "..............\android_wizard\smartdesigner\java" ,   open  the

file "jDrawingView.java" and comment the line 102 (?):

        //this.setSystemUiVisibility(View.SYSTEM_UI_FLAG_FULLSCREEN);


[I will improve the code, so this can be optional......]


Thank you!

Navigation

[0] Message Index

[#] Next page

Go to full version