B4J Question Image with border

micro

Well-Known Member
Licensed User
Longtime User
Hi to all
this is my problem with internal designer.
The object place in layout is an Image, in Propieters Extra CSS i have add this code:
B4X:
border-style: solid;
border-color: "red";
but the border has never show.
Why?

Thanks
 

stevel05

Expert
Licensed User
Longtime User
Have you set the width of the border? Try:
B4X:
border-style: 2px solid;
border-color: "red";

Edit: see below
 
Last edited:
Upvote 0

Daestrum

Expert
Licensed User
Longtime User
I think you need to wrap the imageview in a pane or anchorpane as imageview does not have a css border attribute, only regions have them.
 
Upvote 0

stevel05

Expert
Licensed User
Longtime User
See Daestrum's comment, you need to wrap the image view in a pane of some description and apply the border to that. Otherwise you will have to draw the border directly to the image view in code.
 
Upvote 0
Top