Jan 5, 2017 Replies: 69 hi b4x.com this is a simple lib i wrote (no wrapper). Its a Popup Menu in Spotlight look. this is NOT the feature Spotlight that is available on Android 7, it is a just a PopUp Menu in Spotlight look. if you like it i would really appreciate a small donation Please tell me if you find any issues or bugs. I am including the lib files + an example. take a look at it, it should be very simple to understand. if you have any question don't hesitate to ask me EDIT: v1.01 support for Fontawesome/Materialdesign Icons (see post #4) EDIT: v1.02 bug fixed + Example updated EDIT: v1.03 bug fixed+ Example updated + option to change background color for each item EDIT: v1.04 bug fixed EDIT: Source file available! Attachments IL_SpotLightMenuv1.01.zip IL_SpotLightMenuv1.01.zip 7.6 KB · Views: 1,053 IL_SpotLightMenuv1.02.zip IL_SpotLightMenuv1.02.zip 7.8 KB · Views: 1,020 IL_SpotLightMenuv1.03.zip IL_SpotLightMenuv1.03.zip 8.1 KB · Views: 1,113 Example.zip Example.zip 37 KB · Views: 1,448 IL_SpotLightMenuv1.04.zip IL_SpotLightMenuv1.04.zip 8.1 KB · Views: 1,457 Source.zip Source.zip 39.9 KB · Views: 1,263 Last edited: May 24, 2017 Click to expand...
hi b4x.com this is a simple lib i wrote (no wrapper). Its a Popup Menu in Spotlight look. this is NOT the feature Spotlight that is available on Android 7, it is a just a PopUp Menu in Spotlight look. if you like it i would really appreciate a small donation Please tell me if you find any issues or bugs. I am including the lib files + an example. take a look at it, it should be very simple to understand. if you have any question don't hesitate to ask me EDIT: v1.01 support for Fontawesome/Materialdesign Icons (see post #4) EDIT: v1.02 bug fixed + Example updated EDIT: v1.03 bug fixed+ Example updated + option to change background color for each item EDIT: v1.04 bug fixed EDIT: Source file available!
ilan Expert Licensed User Longtime User Apr 5, 2017 #21 metrick said: Ilan: just donate beer for you. thanks for the update. Will try it when I get home. Click to expand... Thanx a lot
metrick said: Ilan: just donate beer for you. thanks for the update. Will try it when I get home. Click to expand... Thanx a lot
metrick Active Member Licensed User Longtime User Apr 6, 2017 #22 Popup menu still block the button with version 1.03. Another option would be to set popup position when initialize? Thanks.
Popup menu still block the button with version 1.03. Another option would be to set popup position when initialize? Thanks.
DonManfred Expert Licensed User Longtime User Apr 6, 2017 #23 metrick said: Another option would be to set popup position when initialize? Click to expand... Based on the answer earlier in the thread i dont think it will help. ilan said: The spotlight is on a panel. i create a panel that covers the whole screen and all menuitems are added to it. Click to expand... So,even if the popup raises on top of the activity the hole activity is still blocked by the fullscreenpanel.
metrick said: Another option would be to set popup position when initialize? Click to expand... Based on the answer earlier in the thread i dont think it will help. ilan said: The spotlight is on a panel. i create a panel that covers the whole screen and all menuitems are added to it. Click to expand... So,even if the popup raises on top of the activity the hole activity is still blocked by the fullscreenpanel.
ilan Expert Licensed User Longtime User Apr 6, 2017 #24 metrick said: Popup menu still block the button with version 1.03. Another option would be to set popup position when initialize? Thanks. Click to expand... Sorry but i am not sure that i understand the problem. When you show the popupmenu then you have 2 options or click on one of the menu items or click where ever u want on the screen and hide the menu. You can also click on the back button to hide the menu. So it is the normal behavior that when the menu is shown you cannot click on anything else. Every popup menu behave like this. There was a problem that other views where on front when the popup menu was shown. That happened when you used a material theme but that should be fixed now.
metrick said: Popup menu still block the button with version 1.03. Another option would be to set popup position when initialize? Thanks. Click to expand... Sorry but i am not sure that i understand the problem. When you show the popupmenu then you have 2 options or click on one of the menu items or click where ever u want on the screen and hide the menu. You can also click on the back button to hide the menu. So it is the normal behavior that when the menu is shown you cannot click on anything else. Every popup menu behave like this. There was a problem that other views where on front when the popup menu was shown. That happened when you used a material theme but that should be fixed now.
metrick Active Member Licensed User Longtime User Apr 6, 2017 #25 The popup menu is blocking the button where it should be above it. Like shown on #1 post.
ilan Expert Licensed User Longtime User Apr 6, 2017 #26 metrick said: The popup menu is blocking the button where it should be above it. Like shown on #1 post. Click to expand... the popup menu is behind the buttons?
metrick said: The popup menu is blocking the button where it should be above it. Like shown on #1 post. Click to expand... the popup menu is behind the buttons?
ilan Expert Licensed User Longtime User Apr 6, 2017 #27 metrick said: The popup menu is blocking the button where it should be above it. Like shown on #1 post. Click to expand... i have uploaded v1.04. i think it should be ok now. dont forget to click on right mouse button and "Refresh" on the lib tab in your project.
metrick said: The popup menu is blocking the button where it should be above it. Like shown on #1 post. Click to expand... i have uploaded v1.04. i think it should be ok now. dont forget to click on right mouse button and "Refresh" on the lib tab in your project.
metrick Active Member Licensed User Longtime User Apr 6, 2017 #28 ilan said: the popup menu is behind the buttons? Click to expand... The popup menu is in front of the button.
ilan said: the popup menu is behind the buttons? Click to expand... The popup menu is in front of the button.
ilan Expert Licensed User Longtime User Apr 6, 2017 #29 metrick said: The popup menu is in front of the button. Click to expand... But it shoud be in front of the button. Can you make a screenshot so i will understand whats the problem. Thank you
metrick said: The popup menu is in front of the button. Click to expand... But it shoud be in front of the button. Can you make a screenshot so i will understand whats the problem. Thank you
fredo Well-Known Member Licensed User Longtime User May 14, 2017 #30 Runs fine on device with API 25 (7.1.2) with targetSDK=22 Is it possible to remove the "=" on the right? Thanks for your contribution. I've sent you a beer....
Runs fine on device with API 25 (7.1.2) with targetSDK=22 Is it possible to remove the "=" on the right? Thanks for your contribution. I've sent you a beer....
ilan Expert Licensed User Longtime User May 15, 2017 #31 fredo said: Runs fine on device with API 25 (7.1.2) with targetSDK=22 Is it possible to remove the "=" on the right? View attachment 55729 Thanks for your contribution. I've sent you a beer.... Click to expand... Thanx a lot for your donation. Yes it should be possible but i am now at work so i will post later how you can do it. Thank you, ilan
fredo said: Runs fine on device with API 25 (7.1.2) with targetSDK=22 Is it possible to remove the "=" on the right? View attachment 55729 Thanks for your contribution. I've sent you a beer.... Click to expand... Thanx a lot for your donation. Yes it should be possible but i am now at work so i will post later how you can do it. Thank you, ilan
ilan Expert Licensed User Longtime User May 16, 2017 #32 fredo said: Is it possible to remove the "=" on the right? Click to expand... sorry for the late response, i was yesterday almost the whole day in hospital with my wife. She gave birth to our fourth child ok so if you want to remove the "=" character its very simple every menuitem is build of 4 views.: 1 panel that holds 2 lables and 1 button the "=" is a separate label so we can just say something like this: Code: Copy Dim p As Panel = Spotlightmenu.ItemPanel(0) Dim lbl As Label = p.GetView(2) lbl.Text = "" this will remove the "=" from menu item in position 0. you can put any character you like instead of "=". regards, ilan Last edited: May 16, 2017
fredo said: Is it possible to remove the "=" on the right? Click to expand... sorry for the late response, i was yesterday almost the whole day in hospital with my wife. She gave birth to our fourth child ok so if you want to remove the "=" character its very simple every menuitem is build of 4 views.: 1 panel that holds 2 lables and 1 button the "=" is a separate label so we can just say something like this: Code: Copy Dim p As Panel = Spotlightmenu.ItemPanel(0) Dim lbl As Label = p.GetView(2) lbl.Text = "" this will remove the "=" from menu item in position 0. you can put any character you like instead of "=". regards, ilan
JordiCP Expert Licensed User Longtime User May 16, 2017 #33 ilan said: She gave birth to our fourth child Click to expand... sorry to hijack the thread but....Congratulations!!!!
ilan said: She gave birth to our fourth child Click to expand... sorry to hijack the thread but....Congratulations!!!!
ilan Expert Licensed User Longtime User May 16, 2017 #34 JordiCP said: sorry to hijack the thread but....Congratulations!!!! Click to expand... thank you btw its a boy
JordiCP said: sorry to hijack the thread but....Congratulations!!!! Click to expand... thank you btw its a boy
moster67 Expert Licensed User Longtime User May 16, 2017 #36 Congratulations to you @ilan and your wife.
ilan Expert Licensed User Longtime User May 16, 2017 #38 Erel said: Mazal Tov! Click to expand... Thank you very much
fredo Well-Known Member Licensed User Longtime User May 16, 2017 #39 Herzlichen Glückwunsch an Deine Familie! Thanks for the extra effort to answer here when you had your heart full of so many thoughts.
Herzlichen Glückwunsch an Deine Familie! Thanks for the extra effort to answer here when you had your heart full of so many thoughts.
ilan Expert Licensed User Longtime User May 16, 2017 #40 fredo said: Herzlichen Glückwunsch an Deine Familie! Thanks for the extra effort to answer here when you had your heart full of so many thoughts. Click to expand... Vielen Dank Ps. Im Screenshot sind die Tage auf Deutsch geschrieben aber Sonntag scheint auf english zu sein. War das Absicht? (Mo, Di, Mi, Do aber Sonntag mit Sun??)
fredo said: Herzlichen Glückwunsch an Deine Familie! Thanks for the extra effort to answer here when you had your heart full of so many thoughts. Click to expand... Vielen Dank Ps. Im Screenshot sind die Tage auf Deutsch geschrieben aber Sonntag scheint auf english zu sein. War das Absicht? (Mo, Di, Mi, Do aber Sonntag mit Sun??)