Android Question How to Assign Material design icon from google material design fonts

JNG

Member
Licensed User
Pl suggest how to load icons from google material design fonts list as Tab host icon

regards
jng
 

JNG

Member
Licensed User
I am unable to load icon from the Google Material design font list in the TabHost icon doing something here is the method pl. suggest.

TabLayout.SetViewPager(ViewPg)

'Do the magic stuff for the custom tabs.
' - First we load an XML Layout file from the resources folder.
' - Then set the text and the icon drawable in this xml layout.


For i = 0 To 2
Dim v As View
v = XmlViewEx.InflateXmlLayout("tab_icon")
TabLayout.SetTabCustomView(i, v)
XmlViewEx.SetXmlViewText(XmlViewEx.FindView(v, "tabText"), titles(i).ToUpperCase)
XmlViewEx.SetXmlViewImage(XmlViewEx.FindView(v, "tabIcon"), xml.GetDrawable(icons(i)))

Next

How to load material icon in the above example
 
Upvote 0
Top