When running my Android APP on Android 7.x GUI Elements are disappearing

  

My Android APP runs fine on Android Version 5.0.2. But if i run the same APP on serveral Devices with Android 7.x The App works finde on first start but after restarting the APP some GUI Elements are disappearing. In my case 2 Images in my Listview Layout. Does anyone have a clue why this could happen?

The images are stored in an ImageList.

I use Rad Studio 10.2 with all released Hotfixes for Android.

This is the Code i use to assign the images:

case TmpProfile.Status of
Connected:
begin
//TListItemImage(ListView1.Items[I].Objects.FindDrawable(‘Image3’)).Bitmap := ImageList1.Bitmap(TSizeF.Create(128,128), 0);
TListItemImage(ListView1.Items[I].Objects.FindDrawable(‘Image3’)).Bitmap := ImageList1.Bitmap(RectListViewImage3, 0);
StatusStr := ‘Connected’;
end;
Disconnected:
begin
//TListItemImage(ListView1.Items[I].Objects.FindDrawable(‘Image3’)).Bitmap := ImageList1.Bitmap(TSizeF.Create(128,128), 1);
TListItemImage(ListView1.Items[I].Objects.FindDrawable(‘Image3’)).Bitmap := ImageList1.Bitmap(RectListViewImage3, 1);
StatusStr := ‘Disconnected’;
end;
Connecting:
begin
//TListItemImage(ListView1.Items[I].Objects.FindDrawable(‘Image3’)).Bitmap := ImageList1.Bitmap(TSizeF.Create(128,128), 2);
TListItemImage(ListView1.Items[I].Objects.FindDrawable(‘Image3’)).Bitmap := ImageList1.Bitmap(RectListViewImage3, 2);
StatusStr := ‘Connecting’;
end;
else
begin
//TListItemImage(ListView1.Items[I].Objects.FindDrawable(‘Image3’)).Bitmap := ImageList1.Bitmap(TSizeF.Create(128,128), 3);
TListItemImage(ListView1.Items[I].Objects.FindDrawable(‘Image3’)).Bitmap := ImageList1.Bitmap(RectListViewImage3, 3);
StatusStr := GetErrorMessage(TmpProfile.Status);
end;
end;

Is there someone with similar problems?

Comments are closed.