Android Example AppCompat with ToolBar - minimal example

Status
Not open for further replies.

AscySoft

Active Member
Licensed User
Is there a way to show the overflow menu from code? [as simulating a click event]
 
Last edited:

Cassie

Member
Licensed User
Talking about B4A you are right. But Erel said that the issue is related to the installed Build-Tools. It should be a NEWER one than you are using.


Install the newer 25.0.3.
DEINSTALL all versions <25
Follow your information and now it is working.. Thanks guys..
 

fishwolf

Active Member
Licensed User
A new example that shows how to update or add menu items at runtime.

i have try to set
B4X:
        <item name="android:colorBackground">#4CFF00</item>
or 
        <item name="android:textColorPrimary">#4CFF00</item>
but toolbar menu color don't change
work fine if change
B4X:
 <style name="MyAppTheme" parent="Theme.AppCompat.Light.NoActionBar">
        <item name="colorPrimary">#4CFF00</item>
 

so27

Active Member
Licensed User
Why work created apps with me only from Android 5? As soon as I install the app on Android 4.x, it crashes directly.

2017-09-22_07h42_56.png
 

Drago Bratko

Member
Licensed User
I have issue with running it. :-(
Compile&Run is finished well, and no log entries loged in IDE. Then, apk is transfered well to B4A-Bridge, and is asking me to allow installation. And after that I got following screen which says that "App is not installed, as it's assumed that package is damaged". Any ideas ?
I have latest Android SDK build tools and latest jdk version.
 

Attachments

Ramon Bustamante

Member
Licensed User
Hi guys, I tried to execute AppCompat and I obtain the errors:
Organizing libraries. Error
Maven artifact not found: com.android.support/appcompat-v7
 

Attachments

lazreg

Active Member
Licensed User
how to display the slide menu in the right side ? i try to change it by
B4X:
sm.Mode = sm.RIGHT ' LEFT
but the hamburger icon still in the left side...
 

David Elkington

Active Member
Licensed User
This looks just what I need. I ran the demo fine, but when I tried to plug this onto my main menu on my app, it compiles ok, but it gives the following error, any ideas?

java.lang.RuntimeException: java.lang.ClassCastException: b4a.riskassessment.mainmenu cannot be cast to android.support.v7.app.AppCompatActivity
 
Status
Not open for further replies.
Top