I have a search bar, and then an image button right beside it in a StackLayout with Horizontal Orientation, like this:
<StackLayout Orientation="Horizontal"> <SearchBar Placeholder="Search" FontSize="Medium" HeightRequest="50"/> <ImageButton Source="image.png"></ImageButton> </StackLayout>
Now the image.png is a 48x48 image, and if my stacklayout isn't perfect, the image gets either stretched or squished sideways, depending on what the width of the searchbar is, and if I don't set the width to anything, the search bar just pushes the image off the screen. What can I do to make it so that the image takes up the amount of space it needs to, and then the search bar can come in?
edit: I forgot to mention an issue! The iOS image is 22x22, but the android image is 48x48 ******* So I don't know what I should do in this case.