Recent

Author Topic: LAMW -jActionBarTab error  (Read 952 times)

marcos-ebm

  • Jr. Member
  • **
  • Posts: 51
LAMW -jActionBarTab error
« on: January 09, 2024, 11:22:06 pm »
[using the translator]

Hello everyone, has anyone had the same problem?

The jActionBarTab component does not work in the APPCOMPAT theme, only in the DEVICE theme

The program compiles normally, but when the program runs, it stops, precisely in this code

Code: Pascal  [Select][+][-]
  1. procedure TAndroidModule1.AndroidModule1JNIPrompt(Sender: TObject);
  2. begin
  3.    ActionBarTab1.Add('test', Panel1.View); // problem
  4. end;

the same code normally works in the DEVICE theme


lamw = 0.8.6.3
lazarus 2.2.2
theme: APPCOMPAT
GRADLE 8.5
JDK 11
NDK: 21e
Windows 10 and 11
Lazarus 3.0 / LAMW 0.8.6.4 - Gradle 8.5 - Jdk 21 - Ndk 21e - Windows 11

jmpessoa

  • Hero Member
  • *****
  • Posts: 2330
Re: LAMW -jActionBarTab error
« Reply #1 on: January 10, 2024, 02:31:58 am »
Quote
The jActionBarTab component does not work in the APPCOMPAT theme....

Yes, APPCOMPAT theme use another component set to replace jActionBarTabe....
see  palette  "Android Bridges AppCompat"   end some  AppCompat "demos"....

P.S.: Use the old "DEVICE theme" only for simple tests ....
« Last Edit: January 10, 2024, 02:34:38 am by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

marcos-ebm

  • Jr. Member
  • **
  • Posts: 51
Re: LAMW -jActionBarTab error
« Reply #2 on: January 10, 2024, 02:36:45 am »
tanks
Lazarus 3.0 / LAMW 0.8.6.4 - Gradle 8.5 - Jdk 21 - Ndk 21e - Windows 11

 

TinyPortal © 2005-2018