A AntoDroid Member Licensed User Longtime User Sep 30, 2015 #1 Hi , I'm trying to use custom themes inside my application and to use resource icons. To do that I'm using a theme, a custom toolbar and icons generated by http://romannurik.github.io/AndroidAssetStudio/index.html tools After copying the generated files in the corresponfing folder under Objects/res and after changing manifest opportunely there are two mai issues i am not able to solve: 1) How can I change tab selector colours ( it use alway the default colour ) ? 2) How can I load images (icon) stored in the drawable-xxxx folders to use them as bitmap in menu or other view ? I tried to look at documentation but I could't be able to find any precise information about that matter. I'll appreciate any help.
Hi , I'm trying to use custom themes inside my application and to use resource icons. To do that I'm using a theme, a custom toolbar and icons generated by http://romannurik.github.io/AndroidAssetStudio/index.html tools After copying the generated files in the corresponfing folder under Objects/res and after changing manifest opportunely there are two mai issues i am not able to solve: 1) How can I change tab selector colours ( it use alway the default colour ) ? 2) How can I load images (icon) stored in the drawable-xxxx folders to use them as bitmap in menu or other view ? I tried to look at documentation but I could't be able to find any precise information about that matter. I'll appreciate any help.
ArminKH Well-Known Member Oct 1, 2015 #2 AntoDroid said: How can I load images (icon) stored in the drawable-xxxx folders to use them as bitmap in menu or other view ? Click to expand... Code: dim xml as XmlLayoutBuilder imageview1.Background = xml.GetDrawable("your img name") Upvote 0
AntoDroid said: How can I load images (icon) stored in the drawable-xxxx folders to use them as bitmap in menu or other view ? Click to expand... Code: dim xml as XmlLayoutBuilder imageview1.Background = xml.GetDrawable("your img name")
A AntoDroid Member Licensed User Longtime User Oct 1, 2015 #3 Thank you ArminKH !! There is also some way to get the bitmap to use, for example, in a addMenuItem2 statement ? es: Activity.AddMenuItem2("menuVoice","MnuEvt",[Bitmap from resource]) Upvote 0
Thank you ArminKH !! There is also some way to get the bitmap to use, for example, in a addMenuItem2 statement ? es: Activity.AddMenuItem2("menuVoice","MnuEvt",[Bitmap from resource])