Sergey_New Well-Known Member Licensed User Longtime User Feb 2, 2023 #1 I read on the forum that there is no simple solution. In one of the old releases of the application, I found that this was done without any tricks. For a new application for this purpose I tried to use the old activity and surprisingly found that the ImageView are visible on top of the Button. What is the reason is not clear. Maybe one of the forum members can explain? Attached is a test project. And the file test.b4a can be renamed, the content can be changed. Attachments test.zip test.zip 6.5 KB · Views: 394 Last edited: Feb 2, 2023
I read on the forum that there is no simple solution. In one of the old releases of the application, I found that this was done without any tricks. For a new application for this purpose I tried to use the old activity and surprisingly found that the ImageView are visible on top of the Button. What is the reason is not clear. Maybe one of the forum members can explain? Attached is a test project. And the file test.b4a can be renamed, the content can be changed.
Erel B4X founder Staff member Licensed User Longtime User Feb 3, 2023 #2 Sergey_New said: Maybe one of the forum members can explain Click to expand... True. In the material theme buttons have an elevation of 2dip. Put the ImageView inside a panel and set its elevation to 3dip+. Upvote 0
Sergey_New said: Maybe one of the forum members can explain Click to expand... True. In the material theme buttons have an elevation of 2dip. Put the ImageView inside a panel and set its elevation to 3dip+.
teddybear Well-Known Member Licensed User Feb 3, 2023 #3 Sergey_New said: surprisingly found that the ImageView are visible on top of the Button. What is the reason is not clear. Maybe one of the forum members can explain? Attached is a test project. Click to expand... It's a pure coincidence, the ImageView is just right placed on top layer which is over the button, they are individual. you can place the ImageView anywhere even under the button Upvote 0
Sergey_New said: surprisingly found that the ImageView are visible on top of the Button. What is the reason is not clear. Maybe one of the forum members can explain? Attached is a test project. Click to expand... It's a pure coincidence, the ImageView is just right placed on top layer which is over the button, they are individual. you can place the ImageView anywhere even under the button
Sergey_New Well-Known Member Licensed User Longtime User Feb 3, 2023 #4 Erel said: Put the ImageView inside a panel and set its elevation to 3dip+. Click to expand... In my example, ImageView can be placed anywhere in the button without respecting the size of the indents, and the panel is also not needed. Last edited: Feb 3, 2023 Upvote 0
Erel said: Put the ImageView inside a panel and set its elevation to 3dip+. Click to expand... In my example, ImageView can be placed anywhere in the button without respecting the size of the indents, and the panel is also not needed.
Sergey_New Well-Known Member Licensed User Longtime User Feb 3, 2023 #5 teddybear said: you can place the ImageView anywhere even under the button Click to expand... And you try to do that. I could not get. Upvote 0
teddybear said: you can place the ImageView anywhere even under the button Click to expand... And you try to do that. I could not get.
teddybear Well-Known Member Licensed User Feb 3, 2023 #6 Sergey_New said: And you try to do that. I could not get. Click to expand... You can change the order of imgNote on View Tree of windows in Designer, put it upper or lower layer of btnNote. Upvote 0
Sergey_New said: And you try to do that. I could not get. Click to expand... You can change the order of imgNote on View Tree of windows in Designer, put it upper or lower layer of btnNote.
Sergey_New Well-Known Member Licensed User Longtime User Feb 3, 2023 #7 teddybear said: put it upper or lower layer of btnNote. Click to expand... Wrote above - in my example, you do not need to pay attention to the button layer. Upvote 0
teddybear said: put it upper or lower layer of btnNote. Click to expand... Wrote above - in my example, you do not need to pay attention to the button layer.
teddybear Well-Known Member Licensed User Feb 3, 2023 #8 You said 'surprisingly found that the ImageView are visible on top of the Button. What is the reason is not clear'. is it a question? Upvote 0
You said 'surprisingly found that the ImageView are visible on top of the Button. What is the reason is not clear'. is it a question?
Sergey_New Well-Known Member Licensed User Longtime User Feb 3, 2023 #9 teddybear said: is it a question? Click to expand... No, this is a statement. I am writing with google translator. Upvote 0
teddybear said: is it a question? Click to expand... No, this is a statement. I am writing with google translator.