Android Tutorial Material Design 4 - Modifyable and advanced Menu

shashkiranr

Active Member
Licensed User
Longtime User
Hi All,

I want to enable the Contextual ActionBar for a listview long click. Anyone know how to do that ?

Regards,
SK

Edit : I got it but i am facing one more issue....

I am getting an error that prepare signature is wrong

B4X:
java.lang.Exception: Sub mode_prepared signature does not match expected signature.

What is the proper signature of ACActionMode prepared,created,ItemClicked and closed .

Edit1 : I corrected it. Thank you
 
Last edited:

shashkiranr

Active Member
Licensed User
Longtime User
Hi All,

I want to change the color of the title of ACActionMode. How do you go about doing that ??

Regards,
SK
 

corwin42

Expert
Licensed User
Longtime User

corwin42

Expert
Licensed User
Longtime User
Can you connect your device via USB and try it again? Or try an Emulator like Genymotion. I think the B4A Bridge does not show the unfiltered logs completely.
 

corwin42

Expert
Licensed User
Longtime User
Without an error message I can't do much. Another question? Which device and Android Version do you use? There are some Samsung (and other) devices with a conflicting built in support library.
 

corwin42

Expert
Licensed User
Longtime User
No, the faulty Samsung Android version was a 4.2.2 one. Your problem is another one.
 

jayel

Active Member
Licensed User
Longtime User
ok found it

B4X:
ABHelper.Initialize ' ABHelper was dimmed as ACActionBar
    ABHelper.ShowUpIndicator = True '

how about the click event ?
Somebody?
 

corwin42

Expert
Licensed User
Longtime User

shashkiranr

Active Member
Licensed User
Longtime User
Hi @corwin42 and All,

Is is possible to add spinner in the actionbar. I want to add an action menu and when clicked a spinner should appear below.

Regard,
SK
 

corwin42

Expert
Licensed User
Longtime User
Hi @corwin42Is is possible to add spinner in the actionbar. I want to add an action menu and when clicked a spinner should appear below.

Not in the Actionbar but you can use a Toolbar for this.
 

corwin42

Expert
Licensed User
Longtime User
I have completely rewritten this tutorial and updated the example project.

It now uses the inline Java code feature and it is not anymore a "hack" with side effects. Much simpler to use than the solution before.

Still it depends on the AppCompat library.

Enjoy it.
 
Last edited:

andre.astafieff

Member
Licensed User
Longtime User


Managed to find the problem? The same is happening in my tests using a Galaxy E5 or Motorola Razr D1 ...
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…