Android Question How to use new material Icons width code

Roberto P.

Well-Known Member
Licensed User
Longtime User
Hi All

I want to use the new material icons for use in various objects, like LoadBitmap, It's possibile? how to?

thanks
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

tufanv

Expert
Licensed User
Longtime User
1. Create an invisible label named lblMaterial with the designer and set its Typeface to Material Icons.
2. Use this label to set the typeface of other views:
B4X:
MyButton.Typeface = lblMaterial.Typeface

You can use the code editor icon picker to add icons in your code.
I tried to copy the ttf to files tab and than set the typeface to b4x_material.ttf ( not sure of the name ) and it worked
Hi Manfred
i would like to use, via code, the new icons shown in this thread: https://www.b4x.com/android/forum/threads/b4a-change-log-versions-history.19332/#content

thanks

. You can avoid using the designer if you like
 
Upvote 0
Top