Dim ph As Phone
Dim bd As BitmapDrawable
bd = ph.GetResourceDrawable(17301555)
Activity.AddMenuItem2 ("Add Round", "AddRound", bd.Bitmap )
bd = ph.GetResourceDrawable(17301564)
Activity.AddMenuItem2 ("Delete Round", "DelRound", bd.Bitmap )
bd = ph.GetResourceDrawable(17301566)
Activity.AddMenuItem2 ("Edit Round", "EditRound", bd.Bitmap )
bd = ph.GetResourceDrawable(17301577)
Activity.AddMenuItem2 ("Preferences", "Prefs", bd.Bitmap )
bd = ph.GetResourceDrawable(17301568)
Activity.AddMenuItem2 ("Help", "Help", bd.Bitmap )
To quote the developers thread:Google guidelines does not advice this because these resource ID's can change between versions. I would always include the PNG's.
They're defined in the Android SDK ,so they're guaranteed to stay.
Most unlikely. The name compiles to the integer value in the final code so if the API changed the integer values then existing compiled apps would break. It won't happen!... the integer behind it can change in the future?
In its documentation Google says the values can change. Anyway, was just a remark and something I came across.
Always your own decision
I do not see these two values in the constants list: R.drawable | Android Developers
A nice list here : Android Drawables
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?