I am trying to create a UI like above. I saw a couple of Badger class/libraries here but they do not display like the above layout. Is such a library/class available? I don't need the 3D embossed wraparound kind of look seen above. Just need a corner text on a specific background colour.
I am trying to create a UI like above. I saw a couple of Badger class/libraries here but they do not display like the above layout. Is such a library/class available? I don't need the 3D embossed wraparound kind of look seen above. Just need a corner text on a specific background colour.
You could create an image in Photoshop, set the height + width quality example :
Image created in photoshop :
width : 200px
height : 200px
then :
B4X:
sub Create_Panel
Dim cls As ColorDrawable
cls.Initialize2(Colors.White,0,1dip,Colors.RGB(100,100,100))
Dim p As Panel
p.Initialize("")
Activity.AddView(p,25%x,25%y,50%x,50%x)
p.Background = cls
p.BringToFront
Dim img As ImageView
img.Initialize("")
Activity.AddView(img,25%x,25%y,50%x,50%x)
img.Bitmap = LoadBitmap(File.DirAssets,"Badge.png")
img.Gravity = Gravity.FILL
img.BringToFront
end sub
Thanks sfsameer. Yes that is possible. I was hoping for more of a generic library with which I can set the color and size dynamically. Sort of like the Badger XUI and ViewBadger library.
Thanks sfsameer. Yes that is possible. I was hoping for more of a generic library with which I can set the color and size dynamically. Sort of like the Badger XUI and ViewBadger library.