Now we have an utility the place we need to show numerous pictures (greater than 30). Since every picture has some distinctive options, we carried out a group view utilizing a customized management.
The gathering view permits customers to regulate the variety of columns from one to a few. This gives the pliability to both deal with particular person pictures or view a broader overview of all the images.
Every picture just isn’t saved as a hyperlink on the gadget; as a substitute, it’s saved as a byte[] in a SQLite database.
Picture Management:
The difficulty with this implementation is that if we’ve got numerous pictures (greater than 30), the applying lags. Moreover, when importing pictures utilizing the “MPowerKit.MediaPlugin” and the quantity exceeds 10, the applying crashes with the next error:
android
Exception – This occasion
error
02:59:52.000 PM
RuntimeException: Canvas: attempting to make use of a recycled bitmap android.graphics.Bitmap@446f22f
Community Occasion
data
02:59:51.623 PM
{
motion: NETWORK_CAPABILITIES_CHANGED,
download_bandwidth: 28154,
network_type: mobile,
upload_bandwidth: 20245,
vpn_active: false
}
Exception
deadly
02:59:51.513 PM
Canvas: attempting to make use of a recycled bitmap android.graphics.Bitmap@446f22f
Microsoft.Maui.Controls.Xaml.Diagnostics.BindingDiagnostics
warning
02:59:50.832 PM
Mismatch between the desired x:DataType (Someawesome.nampespace.Options.Actions.Attachment) and the present binding context (Someawesome.nampespace.UI.Controls.ImageControl).
Microsoft.Maui.Controls.Xaml.Diagnostics.BindingDiagnostics
warning
02:59:50.823 PM
Mismatch between the desired x:DataType (Someawesome.nampespace.Options.Actions.Attachment) and the present binding context (Someawesome.nampespace.UI.Controls.ImageControl).
Microsoft.Maui.Controls.Xaml.Diagnostics.BindingDiagnostics
warning
02:59:50.819 PM
Mismatch between the desired x:DataType (Someawesome.nampespace.Options.Actions.Attachment) and the present binding context (Someawesome.nampespace.UI.Controls.ImageControl).
Microsoft.Maui.Controls.Xaml.Diagnostics.BindingDiagnostics
warning
02:59:50.811 PM
Mismatch between the desired x:DataType (Someawesome.nampespace.Options.Actions.Attachment) and the present binding context (Someawesome.nampespace.UI.Controls.ImageControl).
Microsoft.Maui.Controls.Xaml.Diagnostics.BindingDiagnostics
warning
02:59:50.805 PM
Mismatch between the desired x:DataType (Someawesome.nampespace.Options.Actions.Attachment) and the present binding context (Someawesome.nampespace.UI.Controls.ImageControl).
Microsoft.Maui.Controls.Xaml.Diagnostics.BindingDiagnostics
warning
02:59:50.797 PM
Mismatch between the desired x:DataType (Someawesome.nampespace.Options.Actions.Attachment) and the present binding context (Someawesome.nampespace.UI.Controls.ImageControl).
ios
WatchdogTermination: The OS watchdog terminated your app, probably as a result of it overused RAM.
It appears we face points displaying the newly added knowledge. Is there an environment friendly option to deal with numerous pictures in a group view?
thx in your assist! <3