J Juzer Hussain Active Member Licensed User Longtime User Dec 14, 2018 #1 Hi, I am trying to add icons to Tabstripviewpager but dont see any option.Also the material icon is not coming by adding iconpicker generated code. I have set all Tabstrip labels to FontAwesome in the loop. Code: Copy For Each lbl As Label In GetAllTabLabels(TS) lbl.Typeface = Typeface.FONTAWESOME Next TS.LoadLayout("LO_SearchItem", "Search "&Chr(0xF002)) Pls give some clue. Juzer
Hi, I am trying to add icons to Tabstripviewpager but dont see any option.Also the material icon is not coming by adding iconpicker generated code. I have set all Tabstrip labels to FontAwesome in the loop. Code: Copy For Each lbl As Label In GetAllTabLabels(TS) lbl.Typeface = Typeface.FONTAWESOME Next TS.LoadLayout("LO_SearchItem", "Search "&Chr(0xF002)) Pls give some clue. Juzer
mcqueccu Expert Licensed User Longtime User Dec 14, 2018 #2 Check this thread https://www.b4x.com/android/forum/threads/tabstripviewpager-with-fontawesome-material-icons.73885/ Upvote 0
Check this thread https://www.b4x.com/android/forum/threads/tabstripviewpager-with-fontawesome-material-icons.73885/
J Juzer Hussain Active Member Licensed User Longtime User Dec 14, 2018 #3 Hi mcqueccu, I have on Tabstrip, with 3 tabs.Added one label named it lblFontAwesome and made it visible=false in designer and set its typeface to FontAwesome. Added following code in Activity Create Code: Copy For Each lbl As Label In GetAllTabLabels(TS) lbl.Typeface = Typeface.FONTAWESOME Next TS.LoadLayout("LO_SearchItem", "Search "&Chr(0xF002)) I saw that thread, Still some strange character (as postscript) is coming instead of correct search icon. Am I missing something. Juzer Upvote 0
Hi mcqueccu, I have on Tabstrip, with 3 tabs.Added one label named it lblFontAwesome and made it visible=false in designer and set its typeface to FontAwesome. Added following code in Activity Create Code: Copy For Each lbl As Label In GetAllTabLabels(TS) lbl.Typeface = Typeface.FONTAWESOME Next TS.LoadLayout("LO_SearchItem", "Search "&Chr(0xF002)) I saw that thread, Still some strange character (as postscript) is coming instead of correct search icon. Am I missing something. Juzer
mcqueccu Expert Licensed User Longtime User Dec 14, 2018 #4 Put the load layout first Code: Copy TS.LoadLayout("LO_SearchItem", "Search "&Chr(0xF002)) For Each lbl As Label In GetAllTabLabels(TS) lbl.Typeface = Typeface.FONTAWESOME Next Upvote 0
Put the load layout first Code: Copy TS.LoadLayout("LO_SearchItem", "Search "&Chr(0xF002)) For Each lbl As Label In GetAllTabLabels(TS) lbl.Typeface = Typeface.FONTAWESOME Next
J Juzer Hussain Active Member Licensed User Longtime User Dec 14, 2018 #5 Thanks mcqueccu got it now. Upvote 0