Skip to content

Cannot put the CamearaBarcodeReaderView in a Border in Android 11 (Api 34) #285

@alberk8

Description

@alberk8

The xaml works in Android 14 and 15 but on 11 the camera view does not appear (the screen flicker and that's it) if it is in a Border.

.Net Maui 9

<Grid RowDefinitions="Auto,1*" >
        <Border Grid.Row="0"  HeightRequest="400"  
                Padding="0" Margin="0,0,0,0"
                Stroke="#333333"
                StrokeThickness="1">
                <zxing:CameraBarcodeReaderView  Grid.Row="0"
                    HorizontalOptions="Fill" VerticalOptions="Fill"
                    x:Name="cameraBarcodeReaderView"
                    BarcodesDetected="BarcodesDetected" />
        </Border>

        <GraphicsView Grid.Row="0" x:Name="QrGraphicView" Margin="0,30,0,40" 
              HeightRequest="220" WidthRequest="220"
              HorizontalOptions="Center" VerticalOptions="Center" />
        
	<Label Grid.Row="1"
            Text="{Binding CodeText}"
            VerticalOptions="Center" 
            HorizontalOptions="Center" />
</Grid>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions