Jan 3, 2013 Replies: 40 [Class/Library] ModularMenu I created a simple alternative to the standard menu similar to the one used by many apps. Requires the library AnimationPlus V2!. Events: - Click Methods: - AddMenuItem - AddMenuItemAt - OpenMenu - CloseMenu - IsOpen - RenameItem - RemoveAt - RemoveAll - MenuLock - MenuUnlock - KeyMenuPress - Size [ UPDATE 1.10 ] - Added the method AddMenuItemAt to add an item at a specific position. [ UPDATE 1.20 ] - Added the method RemoveAll. - Now the events are generated in different activity from the Main. [ UPDATE 1.32 ] - Inserted also Library version in Zip Class. - Adding methods LoadItem and SaveItem to use the same menu with any Activity. I have included an example Multi-Activity in the Zip (use the library for this). - Small improvements. [ UPDATE 1.33 ] - Minor bugfix. [ UPDATE 1.34 ] - Fixed bug with RemoveAll method. - Fixed the forced closure devices with ICS. [ UPDATE 1.36 ] - Added the method RenameItem and IsOpen. - Modified slightly the animation menu. [ UPDATE 1.37 ] - Fixed some bugs. IMPORTANT For most fluidity add this code to the Manifest: Code: SetActivityAttribute(Main, android:hardwareAccelerated, "true") For suggestions and bug reports please do not hesitate to post it here. Attachments 2013.01.03-09.33.03.png 37.6 KB · Views: 3,019 ModulaMenu_1.37.zip ModulaMenu_1.37.zip 57 KB · Views: 1,083 Last edited: May 7, 2014 Click to expand...
[Class/Library] ModularMenu I created a simple alternative to the standard menu similar to the one used by many apps. Requires the library AnimationPlus V2!. Events: - Click Methods: - AddMenuItem - AddMenuItemAt - OpenMenu - CloseMenu - IsOpen - RenameItem - RemoveAt - RemoveAll - MenuLock - MenuUnlock - KeyMenuPress - Size [ UPDATE 1.10 ] - Added the method AddMenuItemAt to add an item at a specific position. [ UPDATE 1.20 ] - Added the method RemoveAll. - Now the events are generated in different activity from the Main. [ UPDATE 1.32 ] - Inserted also Library version in Zip Class. - Adding methods LoadItem and SaveItem to use the same menu with any Activity. I have included an example Multi-Activity in the Zip (use the library for this). - Small improvements. [ UPDATE 1.33 ] - Minor bugfix. [ UPDATE 1.34 ] - Fixed bug with RemoveAll method. - Fixed the forced closure devices with ICS. [ UPDATE 1.36 ] - Added the method RenameItem and IsOpen. - Modified slightly the animation menu. [ UPDATE 1.37 ] - Fixed some bugs. IMPORTANT For most fluidity add this code to the Manifest: Code: SetActivityAttribute(Main, android:hardwareAccelerated, "true") For suggestions and bug reports please do not hesitate to post it here.
barx Well-Known Member Licensed User Longtime User Feb 10, 2013 #21 Indeed, it does now work. Awesome work! What was the deal?
Dominex Active Member Licensed User Longtime User Feb 11, 2013 #22 barx said: Indeed, it does now work. Awesome work! What was the deal? Click to expand... In truth I found a solution without understanding the problem. What is certain and that alone the class works well, and works well on all devices and OS that I tried, but combined with your app, which is a set of other classes, verifca a problem, but only on ICS , so I can say it is a problem of interaction between all these things. The specific part that created the problem was the removal of a panel with RemoveView, insiegabile thing, but it happened. I solved the problem by removing the command that fortunately was not indispensable. Luckily I had a device that created the same problem, otherwise I would not be able to find the solution.
barx said: Indeed, it does now work. Awesome work! What was the deal? Click to expand... In truth I found a solution without understanding the problem. What is certain and that alone the class works well, and works well on all devices and OS that I tried, but combined with your app, which is a set of other classes, verifca a problem, but only on ICS , so I can say it is a problem of interaction between all these things. The specific part that created the problem was the removal of a panel with RemoveView, insiegabile thing, but it happened. I solved the problem by removing the command that fortunately was not indispensable. Luckily I had a device that created the same problem, otherwise I would not be able to find the solution.
barx Well-Known Member Licensed User Longtime User Feb 11, 2013 #23 Strange behaviour indeed, well done for finding it. I don't think i would even know how to diagnose that...
Strange behaviour indeed, well done for finding it. I don't think i would even know how to diagnose that...
NFOBoy Active Member Licensed User Longtime User Mar 15, 2013 #24 Had to use <uses-sdk android:minSdkVersion="4" android:targetSdkVersion="10"/> as well, in order to get the menu button to show on the Action Bar of one of my Honeycomb tablet. (actually, 12 would've been ok, but I realize that some may still have 10) Just wondering, does anyone know if this affects any other devices negatively? (the rest of my devices are phones with a menu key, and they work as expected... ) Ross
Had to use <uses-sdk android:minSdkVersion="4" android:targetSdkVersion="10"/> as well, in order to get the menu button to show on the Action Bar of one of my Honeycomb tablet. (actually, 12 would've been ok, but I realize that some may still have 10) Just wondering, does anyone know if this affects any other devices negatively? (the rest of my devices are phones with a menu key, and they work as expected... ) Ross
Erel B4X founder Staff member Licensed User Longtime User Mar 16, 2013 #25 Settings the targetSdkVersion will not affect older phones.
desof Well-Known Member Licensed User Longtime User Apr 23, 2013 #27 AnimationSet not inlcudes? Parsing code. Error Error parsing program. Error description: Unknown type: animationset Are you missing a library reference? Occurred on line: 70 Dim AnimSet As AnimationSet
AnimationSet not inlcudes? Parsing code. Error Error parsing program. Error description: Unknown type: animationset Are you missing a library reference? Occurred on line: 70 Dim AnimSet As AnimationSet
Dominex Active Member Licensed User Longtime User Apr 23, 2013 #28 desof said: Parsing code. Error Error parsing program. Error description: Unknown type: animationset Are you missing a library reference? Occurred on line: 70 Dim AnimSet As AnimationSet Click to expand... Requires the library AnimationPlus 2.
desof said: Parsing code. Error Error parsing program. Error description: Unknown type: animationset Are you missing a library reference? Occurred on line: 70 Dim AnimSet As AnimationSet Click to expand... Requires the library AnimationPlus 2.
ivanomonti Expert Licensed User Longtime User May 23, 2013 #29 Una correzione che andrebbe fatta e che su un tablet tipo Note 10 il menu non è accessibile in quanto non ha il tasto home mmmm ho forse non ho capito come fare. A correction that should be done on a tablet, and type notes 10 the menu is not accessible because it does not have the home button mmmm maybe I did not understand how to do.
Una correzione che andrebbe fatta e che su un tablet tipo Note 10 il menu non è accessibile in quanto non ha il tasto home mmmm ho forse non ho capito come fare. A correction that should be done on a tablet, and type notes 10 the menu is not accessible because it does not have the home button mmmm maybe I did not understand how to do.
Dominex Active Member Licensed User Longtime User May 24, 2013 #30 ivanomonti said: Una correzione che andrebbe fatta e che su un tablet tipo Note 10 il menu non è accessibile in quanto non ha il tasto home mmmm ho forse non ho capito come fare. Click to expand... Il problema Ivano è legato all'OS, in particolare credo che da ICS (4.0) in poi non ci sia più il tasto Menù soft se non utilizzi appositamente della API più vecchie. Ne abbiamo parlato anche qualche post più su. Al momento non conosco un sistema per far apparire forzatamente il tasto Menu soft.
ivanomonti said: Una correzione che andrebbe fatta e che su un tablet tipo Note 10 il menu non è accessibile in quanto non ha il tasto home mmmm ho forse non ho capito come fare. Click to expand... Il problema Ivano è legato all'OS, in particolare credo che da ICS (4.0) in poi non ci sia più il tasto Menù soft se non utilizzi appositamente della API più vecchie. Ne abbiamo parlato anche qualche post più su. Al momento non conosco un sistema per far apparire forzatamente il tasto Menu soft.
C CidTek Active Member Licensed User Longtime User Sep 24, 2013 #31 Really nice stuff Dominex! Two questions... Where did you get that icon collection? How can I raise the bottom position of the menu? I need it to clear a custom action menu that is across the bottom of my activity.
Really nice stuff Dominex! Two questions... Where did you get that icon collection? How can I raise the bottom position of the menu? I need it to clear a custom action menu that is across the bottom of my activity.
Dominex Active Member Licensed User Longtime User Oct 6, 2013 #32 CidTek said: Really nice stuff Dominex! Two questions... Where did you get that icon collection? How can I raise the bottom position of the menu? I need it to clear a custom action menu that is across the bottom of my activity. Click to expand... Tnx! The icons are in different folders within the "android-sdk". You can change t the Y position of the menu to the line 218. Code: 218 PosY = 100%y-Height+5
CidTek said: Really nice stuff Dominex! Two questions... Where did you get that icon collection? How can I raise the bottom position of the menu? I need it to clear a custom action menu that is across the bottom of my activity. Click to expand... Tnx! The icons are in different folders within the "android-sdk". You can change t the Y position of the menu to the line 218. Code: 218 PosY = 100%y-Height+5
Dominex Active Member Licensed User Longtime User Dec 8, 2013 #33 [ UPDATE 1.36 ] - Added the method RenameItem and IsOpen. - Modified slightly the animation menu.
Dominex Active Member Licensed User Longtime User Dec 11, 2013 #34 ivanomonti said: Una correzione che andrebbe fatta e che su un tablet tipo Note 10 il menu non è accessibile in quanto non ha il tasto home mmmm ho forse non ho capito come fare. A correction that should be done on a tablet, and type notes 10 the menu is not accessible because it does not have the home button mmmm maybe I did not understand how to do. Click to expand... Ho risolto modificando il Manifest sostituendo la parte di codice che riguarda l'SDK, chiaramente impone dei limiti al tipo di SDK che puoi usare. I solved it by changing the Manifest replacing the piece of code that relates to the SDK, clearly imposes limits on the type of the SDK that you can use. Code: <uses-sdk android:minSdkVersion="4" android:targetSdkVersion="10"/>
ivanomonti said: Una correzione che andrebbe fatta e che su un tablet tipo Note 10 il menu non è accessibile in quanto non ha il tasto home mmmm ho forse non ho capito come fare. A correction that should be done on a tablet, and type notes 10 the menu is not accessible because it does not have the home button mmmm maybe I did not understand how to do. Click to expand... Ho risolto modificando il Manifest sostituendo la parte di codice che riguarda l'SDK, chiaramente impone dei limiti al tipo di SDK che puoi usare. I solved it by changing the Manifest replacing the piece of code that relates to the SDK, clearly imposes limits on the type of the SDK that you can use. Code: <uses-sdk android:minSdkVersion="4" android:targetSdkVersion="10"/>
Dominex Active Member Licensed User Longtime User May 7, 2014 #35 Download the demo again with the class and the library, I would have solved the problem.
Dominex Active Member Licensed User Longtime User May 8, 2014 #36 My mistake, I uploaded the wrong file, it should now be fine. Sorry.
D Dey Active Member Licensed User Longtime User Nov 19, 2014 #37 Ciao Dominex, sto provando la tua classe e riscontro problemi in una activity dove ho la libreria ULV Ultimate List View, sai per caso se ci sono incompatibilità? Saluti
Ciao Dominex, sto provando la tua classe e riscontro problemi in una activity dove ho la libreria ULV Ultimate List View, sai per caso se ci sono incompatibilità? Saluti
Dominex Active Member Licensed User Longtime User Nov 20, 2014 #38 Ciao Dey, così su due piedi mi viene da dire di no, che tipo di problemi hai?
D Dey Active Member Licensed User Longtime User Nov 20, 2014 #39 Ciao, ho fatto alcuni test e sembrerebbe che il panel trasparente colorandolo rimane caricato... ho tolto completamente le animazioni e funziona... bho... grazie
Ciao, ho fatto alcuni test e sembrerebbe che il panel trasparente colorandolo rimane caricato... ho tolto completamente le animazioni e funziona... bho... grazie
H henrywood Active Member Licensed User Longtime User Mar 22, 2015 #40 How can I change the typeface / font, font size, text color and background color of the menu ? Thx