I have listbox with pictures
I have listbox with pictures
var
Item:TlistBoxItem;
F:TBitmap;
for s in FolderList{Bilder} do
begin
Item:=TlistBoxItem.Create(nil);
Item.StyleLookup:='listboxitemnodetail';
Item.Width:=90;
Item.Height:=200;
Item.Margins.Rect:=rectF(0,5,5,0);
F:=TBitmap.Create;
f.LoadFromFile(s);
Item.ItemData.Bitmap:=(f); << I want to resize to full squer 90x200
Tried
// Item.ItemData.Bitmap.Resize(60,60);
//Canvas.DrawBitmap(f, Rect(0, 0, sib.Width, sib.Width), ib);//
f.Free;
Pictures are too small on android. do i resize after loading ? but then it will be to slaw.
any other list box component that i can inflate the picture to full item square ?
Is this the fastest solution and best stackoverflow.com - How to stretch image in Firemonkey?
ReplyDeleteOn Android it dose not draw entire squer
ReplyDeleteWhy you didn't try to change the custom style of the item and increase the image size in the style editor?
ReplyDeleteChristoph Schneider see plus.google.com - Sorry Embarcadero you are great with WINDOW but on Android.. I Started invest...
ReplyDeleteI give up. I will move to Android Studio
Android is not Windows. A TListView can also contain images. community.embarcadero.com - Variable Item Height with TListView in 10.1 Berlin
ReplyDelete