I ibraheam Member Licensed User Jun 2, 2017 #1 hi all plz how to shows icon in activity title ? best regard
R ronell Well-Known Member Licensed User Longtime User Jun 2, 2017 #2 this will show the app icon Code: Copy #IncludeTitle: True or set it to false and create your own activity title using diff. views(panel, imageviews etc.) Upvote 0
this will show the app icon Code: Copy #IncludeTitle: True or set it to false and create your own activity title using diff. views(panel, imageviews etc.)
lemonisdead Well-Known Member Licensed User Longtime User Jun 2, 2017 #3 Hello @ibraheam, this should do the trick https://www.b4x.com/android/forum/threads/appcompat-with-toolbar-minimal-example.79896/ Upvote 0
Hello @ibraheam, this should do the trick https://www.b4x.com/android/forum/threads/appcompat-with-toolbar-minimal-example.79896/
M Mahares Expert Licensed User Longtime User Jun 2, 2017 #4 Another option to @lemonisdead link, is the CSBuilder tutorial if you are using B4A 6.80 and up: https://www.b4x.com/android/forum/threads/charsequence-csbuilder-tutorial.76226/#content Here is an excerpt from that tutorial: Code: Copy Dim cs As CSBuilder cs.Initialize.Size(30).Typeface(Typeface.MONOSPACE) cs.Append("B4A: ").Image(LoadBitmap(File.DirAssets, "b4a.png"), 40dip, 40dip, False).Append(CRLF) cs.PopAll Activity.Title = cs Last edited: Jun 2, 2017 Upvote 0
Another option to @lemonisdead link, is the CSBuilder tutorial if you are using B4A 6.80 and up: https://www.b4x.com/android/forum/threads/charsequence-csbuilder-tutorial.76226/#content Here is an excerpt from that tutorial: Code: Copy Dim cs As CSBuilder cs.Initialize.Size(30).Typeface(Typeface.MONOSPACE) cs.Append("B4A: ").Image(LoadBitmap(File.DirAssets, "b4a.png"), 40dip, 40dip, False).Append(CRLF) cs.PopAll Activity.Title = cs
I ibraheam Member Licensed User Jun 3, 2017 #5 @ronell i went show (icon) in activity title bar not show/hide title bar. @lemonisdead unfortunately i received this error (Error Maven artifact not found: com.android.support/appcompat-v7) when i start project @Mahares thank you your code is work for me thank you all best regard Upvote 0
@ronell i went show (icon) in activity title bar not show/hide title bar. @lemonisdead unfortunately i received this error (Error Maven artifact not found: com.android.support/appcompat-v7) when i start project @Mahares thank you your code is work for me thank you all best regard