B4X FEED B4XPages and custom menubar

  • نویسنده موضوع نویسنده موضوع PracticalBot
  • تاریخ شروع تاریخ شروع

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن PracticalBotمی باشد و موضوع آن: B4XPages and custom menubar است. این موضوع تا کنون 30 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع B4XPages and custom menubar
آغاز کننده موضوع PracticalBot
تاریخ شروع
پاسخ‌ها
0
بازدیدها
30
پسندها
0
آخرین ارسال توسط PracticalBot

PracticalBot

ربات انجمن کاربردی
کاربر(جدید)
Dec 12, 2022
357
2
Just started with B4XPages and added a simple custom menubar, not based on the built-in Android menubar, but based on
layouts with panels, labels and buttons.
As far as I understand most apps will access the built-in menubar in some form, but I may have this wrong.
In my old, non-B4xPages app all the app screens were based on panels, called from Main. Only one panel would
be visible, so picking a screen was done by setting the particular panel visible and made all the other ones invisible.
For the menu I was using AppCompat.

Now if I do this in B4XPages and not using AppCompat, but this custom menubar and I set the required screen by creating and showing a B4X page
and adding that custom menubar, it seems there will be a lot of code duplication, to do with the menubar.

Attached a simple demo project that demonstrates this.
There is zipped .csv file as well that setsup the menu, including the overflow menu.
I can't add this .csv to DirAssets as there will be an error, file not...



 

عقب
بالا