Android Question Theme and resource

AntoDroid

Member
Licensed User
Longtime User
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
How can I load images (icon) stored in the drawable-xxxx folders to use them as bitmap in menu or other view ?
B4X:
dim xml as XmlLayoutBuilder
imageview1.Background = xml.GetDrawable("your img name")
 
Upvote 0

AntoDroid

Member
Licensed User
Longtime User
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

Similar Threads

  • Article
Android Code Snippet Full Screen Theme
Replies
1
Views
10K
  • Article
Android Code Snippet Theme Colors
Replies
3
Views
30K
  • Article
Android Code Snippet Version safe themes
Replies
4
Views
12K
Cookies are required to use this site. You must accept them to continue using the site. Learn more…