Recent

Author Topic: jDrawingView bug: when jDrawingView1 becomes visible, the “status bar” hides  (Read 4193 times)

neuro

  • Jr. Member
  • **
  • Posts: 62
The description of jDrawingView bug.
Create new Android GUI project and add jDrawingView and jButton with the following program code.

Code: Pascal  [Select][+][-]
  1. procedure TAndroidModule1.jButton1Click(Sender: TObject);
  2. begin
  3.  jDrawingView1.Visible := not jDrawingView1.Visible;
  4. 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?
« Last Edit: June 17, 2021, 03:46:06 am by neuro »

jmpessoa

  • Hero Member
  • *****
  • Posts: 2296


Can you put here a simple project? So,  I can try test, find and fix this bug...
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

neuro

  • Jr. Member
  • **
  • Posts: 62
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.
« Last Edit: June 17, 2021, 03:46:36 am by neuro »

jmpessoa

  • Hero Member
  • *****
  • Posts: 2296

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

Yes!

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

Quote
    PosRelativeToParent = [rpTop]
    LayoutParamWidth = lpMatchParent
    LayoutParamHeight = lpHalfOfParent
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

jmpessoa

  • Hero Member
  • *****
  • Posts: 2296
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!
« Last Edit: June 17, 2021, 05:47:06 am by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

rsu333

  • Full Member
  • ***
  • Posts: 110
Thanks JMPessoa ;Always great Job and helpful nature .

 

TinyPortal © 2005-2018