desof Well-Known Member Licensed User Longtime User Apr 13, 2013 #1 Hello, I have this piece of code that loads: B4X: Dim ph As Phone Dim bd As BitmapDrawable bd = ph.GetResourceDrawable(17301555) Activity.AddMenuItem2 ("Acerca de..","Button3", bd.Bitmap) 17301555 ???? and shows me an icon (+) but not understand where that resource goes by that I do not add it. As I can upload a custom icon in my menu? Last edited: Apr 13, 2013
Hello, I have this piece of code that loads: B4X: Dim ph As Phone Dim bd As BitmapDrawable bd = ph.GetResourceDrawable(17301555) Activity.AddMenuItem2 ("Acerca de..","Button3", bd.Bitmap) 17301555 ???? and shows me an icon (+) but not understand where that resource goes by that I do not add it. As I can upload a custom icon in my menu?
NJDude Expert Licensed User Longtime User Apr 13, 2013 #2 Those numbers are CONSTANTS, and yes, you can use custom icons on your menu. Upvote 0
desof Well-Known Member Licensed User Longtime User Apr 13, 2013 #3 NJDude said: Those numbers are CONSTANTS, and yes, you can use custom icons on your menu. Click to expand... ok! but as I see that image corresponds to each value? Upvote 0
NJDude said: Those numbers are CONSTANTS, and yes, you can use custom icons on your menu. Click to expand... ok! but as I see that image corresponds to each value?
Erel B4X founder Staff member Licensed User Longtime User Apr 13, 2013 #4 See this site: Android Drawables Upvote 0
desof Well-Known Member Licensed User Longtime User Apr 13, 2013 #5 Erel said: See this site: Android Drawables Click to expand... GENIO!!!!! EREL Muchas TAnk!!!!!! Upvote 0