B4A Library SD: Panel Extra (Slide Swap Scroll)

Almora

Active Member
Licensed User
hi..

I get this error when compiling..
.jar file and .xml file names are not the same

B4X:
javac 1.8.0_91
src\b4a\example\main.java:329: error: cannot find symbol
public b4a.example.panelnavigator _panelnavigator1 = null;
                  ^
  symbol:   class panelnavigator
  location: package b4a.example
Note: src\b4a\example\starter.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
 

Star-Dust

Expert
Licensed User
hi..

I get this error when compiling..
.jar file and .xml file names are not the same

B4X:
javac 1.8.0_91
src\b4a\example\main.java:329: error: cannot find symbol
public b4a.example.panelnavigator _panelnavigator1 = null;
                  ^
  symbol:   class panelnavigator
  location: package b4a.example
Note: src\b4a\example\starter.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
Simply the library that I attached was another, so it does not find the class.

Download the library again and now it will work
 

Carlos marin

Active Member
Licensed User
Hi Star-Dust, in SlidePanel there is an event that detects the open panel, to be able to close it to the presional button
KEYCODE_BACK
 

Star-Dust

Expert
Licensed User
Hi Star-Dust, in SlidePanel there is an event that detects the open panel, to be able to close it to the presional button
KEYCODE_BACK
Each time the panel is opened or closed, an Open or Close can be raised and you can manage the event or store the status of the panel in a boolean variable.
Also in version 0.11 you find the variable IsOpen (type boolean) that indicates the status of the panel.
 

PassionDEV

Active Member
Licensed User
there is a width and high issue on different phones screen and tablet

on some phones the width shows correctly but on note and tablets the width shows smaller than it should be


B4X:
SlidePanel1.GetBase.Elevation=20dip
SlidePanel1.SlidePanelWidth = 295dip
 

Star-Dust

Expert
Licensed User
there is a width and high issue on different phones screen and tablet

on some phones the width shows correctly but on note and tablets the width shows smaller than it should be


B4X:
SlidePanel1.GetBase.Elevation=20dip
SlidePanel1.SlidePanelWidth = 295dip
It depends what you want to get.

The Vista must cover the entire screen.
B4X:
SlidePanel1.GetBase.SetLayout(0,0,100%x,100%y)
The horizontally scrolling panel size is set with:
SlidePanel1.SlidePanelWidth
If Scroll vertically with:
SlidePanel1.SlidePanelHeight

But to give further help I should see the images. Are you using version 0.11?
 

Star-Dust

Expert
Licensed User
the proportions between a tablet and a smartphone are different So instead of using a fixed measure use a proportion such as 66%x

It is not a problem related to the library, which actually only opens a panel in the dimensions that you establish. each device obviously with different sizes The display will be different.
There are many methods that are used to make the same graphics appear on different devices but that is your choice that you have to do as a developer and not the library
 

Star-Dust

Expert
Licensed User
Vista ManagerPanel is free and works without time limits even in the DEMO version.
All other views are limited to 7 days.

Contact me in private to get the full version.
 

joilso oliveira da silva

Member
Licensed User
First: Congratulations on your project! I'm simply amazed. The hundreds of applications we can give it ... I can not even think !!

Second: Would I have some way, when using SwipePanel, to open SwipePanel only when I want? I made an adaptation of it to my project, but then start the project SwipePanel is already open ... Have some command for it Do not open in the beginning?

Ps: I use google translator, sorry for the quality of English, and I hope you understand what I mean.
 

Star-Dust

Expert
Licensed User
First: Congratulations on your project! I'm simply amazed. The hundreds of applications we can give it ... I can not even think !!

Second: Would I have some way, when using SwipePanel, to open SwipePanel only when I want? I made an adaptation of it to my project, but then start the project SwipePanel is already open ... Have some command for it Do not open in the beginning?

Ps: I use google translator, sorry for the quality of English, and I hope you understand what I mean.
You can use the OpenSlidePanel command immediately after loading the Layout.

PS. Also I use Google Traslate
 

Star-Dust

Expert
Licensed User

joilso oliveira da silva

Member
Licensed User
Olá de novo.
Você teria algum tipo de painel deslizante ? Eu quero fazer um painel com vários rótulos e edittextos, mas eles são mais do que um painel comum suporta, e eu quero fazer um painel que deslize para cima e para baixo.
Você teria algo assim?
 

Star-Dust

Expert
Licensed User
yes
 

Ganso

Member
Licensed User
I'm using PanelNavigator for the next version of my Pictorario app.

I've put a progress bar on top of the Panel Navigator (between "Cerrar visualización" and "Jugar", in the attached picture), but I'd like to put it exactly between the icon line and the panel (between A and B in the picture). How can I calc that vertical position?

picto.png

Thanks in advance.
 

Star-Dust

Expert
Licensed User
I'm using PanelNavigator for the next version of my Pictorario app.

I've put a progress bar on top of the Panel Navigator (between "Cerrar visualización" and "Jugar", in the attached picture), but I'd like to put it exactly between the icon line and the panel (between A and B in the picture). How can I calc that vertical position?

View attachment 78165

Thanks in advance.
I hope I have understood the question well.
The bottom menu has a fixed height of 50dips.
If you use the page title, consider that it is always 40dip.

upload_2019-3-9_7-3-33.png
 
Top