Hi, I`m using B4XLocalizator perfectly on Android, but when using the code from the demo in by B4i app; when the 'RootPanel.Remove..." & "RootPanel.Load..." they screw up the layout. I`m using Designer scripts which work ok without the two calls.
It also shows panels that were previously hidden, very confused by this behavior.
(I`m a B4i newbie, so apologies if its something stupid)
Erel,
Here you go (its a very chopped down version of the app, but still has the problem), I`m running it in the Simulator; but as your demo works I`m guessing that isn`t a problem.
2. I don't recommend using TableView especially if you are building cross platform solutions. Use xCustomListView.
3. All the views except of TableView should be declared as B4XView.
4. The layout is not built correctly. It will be much simpler to split it into several layout files. This will allow you to use anchors and remove the designer script code.
Yes, language changing works, but then extra panels appear when you close the language panel (the About panel), and also the orange rectangle on the main page. This is what I was saying, I don`t understand why these appear...
Here are the steps I go through and see the problem
Run app - compiles and run in Simulator
Click MENU - burger at bottom right
Click LANGUAGE
Click any language option
App refreshes with new language (correct...)
BUT...
When you click CLOSE on the Language panel, the About Panel is visible; close that...and the System_msg panel (orange outline) is also visible. Neither of these were turned to visible before opening the Language panel?
I told you about 8 more important things that you need to change
If you want it to be invisible after the layout is loaded then you should uncheck the Visible property.
Erel,
Yes, I am aware of the other items you mentioned. I`m working on changing those, but having difficulties...
I don`t understand how to load multiple layout files in B4i, it doesn`t seem as intuative as B4a.