M Mike1970 Well-Known Member Licensed User Longtime User Feb 2, 2023 #1 Hi everyone, I'm trying to achieve this result for a button I tried by using ButtonAttributeText and MaterialIcons but the result is this arrow and text should be horizontally aligned... (bigger is the MaterialIcon character, and more evident the offset became) So I tried using an image in the attributetext using this script by @Erel but this is the result still not horizontally centered, and also blurry (I used LoadBitmapResize) What should I do in this case to achieve that result? Thanks in advance
Hi everyone, I'm trying to achieve this result for a button I tried by using ButtonAttributeText and MaterialIcons but the result is this arrow and text should be horizontally aligned... (bigger is the MaterialIcon character, and more evident the offset became) So I tried using an image in the attributetext using this script by @Erel but this is the result still not horizontally centered, and also blurry (I used LoadBitmapResize) What should I do in this case to achieve that result? Thanks in advance
Erel B4X founder Staff member Licensed User Longtime User Feb 3, 2023 #2 I would have used a panel with two labels. Upvote 0
M Mike1970 Well-Known Member Licensed User Longtime User Feb 3, 2023 #3 Erel said: I would have used a panel with two labels. Click to expand... ouh ok, i was using a button so I’ve to manage less objects (I will need to code the press animation using a panel right?) Upvote 0
Erel said: I would have used a panel with two labels. Click to expand... ouh ok, i was using a button so I’ve to manage less objects (I will need to code the press animation using a panel right?)
Erel B4X founder Staff member Licensed User Longtime User Feb 5, 2023 #4 It might be best to implement it as a custom view. It is simpler than it sounds and will allow you to reuse it easily. The animation can be done quite easily with something like: Code: mBase.SetVisibleAnimated(100, False) Sleep(100) mBase.SetVisibleAnimated(50, True) Upvote 0
It might be best to implement it as a custom view. It is simpler than it sounds and will allow you to reuse it easily. The animation can be done quite easily with something like: Code: mBase.SetVisibleAnimated(100, False) Sleep(100) mBase.SetVisibleAnimated(50, True)
M Mike1970 Well-Known Member Licensed User Longtime User Feb 5, 2023 #5 Erel said: It might be best to implement it as a custom view. Click to expand... yes maybe it is the case. Thanks Upvote 0
Erel said: It might be best to implement it as a custom view. Click to expand... yes maybe it is the case. Thanks