Android Example AppCompat with ToolBar - minimal example

Status
Not open for further replies.

Cassie

Member
Licensed User
Longtime 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

Well-Known Member
Licensed User
Longtime 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
Longtime 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.

 

Drago Bratko

Active Member
Licensed User
Longtime 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

  • Screenshot_20171012-094004.png
    23.5 KB · Views: 708

Drago Bratko

Active Member
Licensed User
Longtime User
Thank you Erel very much for your great support. It works like you suggested. Solved.
 

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

  • Error.png
    101.5 KB · Views: 628

M.LAZ

Active Member
Licensed User
Longtime 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
Longtime 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.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…