B4A Library [Library] B4aGridView v3.80

Douglas Farias

Expert
Licensed User
Longtime User
as reported in post 158 in July:

add 2 gridviews to two different panels, both are initialized with 2 different names

use SetText and it changes the text to the same in both gridviews

also there for 2 different activities

the lib its working fine but this problem really have

for example i have 3 gridview on my app
when i use
GridView1.ScaleType.Fit_CenterCenter
my anothers gridview go have this config too

if i set noimage png for gridview1
all my gridviews go have noimage = gridview1

the config of gridview1 is = to grid2 +

all what u made on gridview1 go set for another grids


and have erros with GridView.ScaleType too

but lib its good working total fast, when i get money i go make my donation, i m waiting my payment xD
 

Ionut Indigo

Member
Licensed User
Longtime User
Ok, so i've figured out the problem with SetImageOnLoading / SetImageOnFail, and got them to work. SetImageOnLoading / SetImageOnFail must be called before initializing the GridView. Done!
 

lonleystar

Well-Known Member
Licensed User
Longtime User
as reported in post 158 in July:

add 2 gridviews to two different panels, both are initialized with 2 different names

use SetText and it changes the text to the same in both gridviews

also there for 2 different activities
Hi, U R right but the problem is that it use 1 array that's why.

P.S.

I'm working on it to find the way.
 

lonleystar

Well-Known Member
Licensed User
Longtime User
Hi, B4AGridView is updated to v3.45 what's new:

Changed:

SetText no index require - SetText("Pippo")

Added:

SetText2 u should use an index and string - SetText2 (1,"pippo")

ShowMessageError by default hide


It Show and Hide the error while loading the images.

Fix:

ShowText now with 2 activities show different text not in the same activity

P.S.

I'm still working on it to fix definitely this issue.
 

lonleystar

Well-Known Member
Licensed User
Longtime User

Douglas Farias

Expert
Licensed User
Longtime User
Hi, about the post 245 it work fine about this give me some time to upload the fixed library.
images dont load, this dont work fine
the GridView.SetImageOnLoading = "no_photo.png"
i have fixed *-*

but you last lib still dont showing images

i m using
B4AGridView v3.40_New_Fix.zip
because
B4AGridView v3.45.zip
dont work in my moto g, i dont see the images
 

lonleystar

Well-Known Member
Licensed User
Longtime User

Douglas Farias

Expert
Licensed User
Longtime User

MarcoRome

Expert
Licensed User
Longtime User

MarcoRome

Expert
Licensed User
Longtime User
Hi Giuseppe. If i utilize library 3.45 i have this result:



I use your demo BasicGridView_3.20.
If i use library B4AGridView v3.40_New_Fix.zip all work.

Thank you very much Giuseppe
 

MarcoRome

Expert
Licensed User
Longtime User
Hi Giuseppe, thank you for this great library. Tomorrow i'll do an example to better explain and share any errors that occurred. In any case, by Tomorrow i will also donate to this excellent library.
Ciao
Marco
 

lonleystar

Well-Known Member
Licensed User
Longtime User
Hi Giuseppe, thank you for this great library. Tomorrow i'll do an example to better explain and share any errors that occurred. In any case, by Tomorrow i will also donate to this excellent library.
Ciao
Marco
Hi, till tomorrow I'll upload the fix.
 

MarcoRome

Expert
Licensed User
Longtime User
I checked the libraries and works well ( also 4.5 you can see image: GridView.SetImageOnLoading = "no_photo.png" - look movie: )


Maybe i made a mistake earlier. I made a donation to this great library.
Thanks again Giuseppe
 

Douglas Farias

Expert
Licensed User
Longtime User
i have tested the last lib and dont work on moto g, e, x, i think the problem is on all kitkat
dont show images really, only to report to u @lonleystar
i have tested on this 3 devices motorola

the lib B4AGridView v3.40_New_Fix.zip its working on this 3 devices
only B4AGridView v3.45.zip dont work (dont show images)

another bug is the crop center and center crop dont work too!
B4X:
GridView.ScaleType = GridView.ScaleType.Center_Crop
B4X:
GridView.ScaleType = GridView.ScaleType.Center

if i try to use only
B4X:
GridView.ScaleType.Center
i cant compile

Parsing code. 0.11
Compiling code. Error
Error compiling program.
Error description: '=' expected.
Occurred on line: 198
GridView.ScaleType.Center
Word: center


3 fix need
- (Remove Input/output error toast)
ps: for example on my s3 device i have 5000 pictures, i have (200) images with (Input/output error), i see the toast 200x and i see black images where i have this error on grid, one good option its remove this images, and remove this toast 200x xD
Question: why this error happens? its images from drive? i only see black images when i have this error

-(Fix the imageshow on kitkat)
make a fix same the version 3.4_new_fix on your last lib for all motorola or kitkat devices

-(Fix the GridView.ScaleType.Center , GridView.ScaleType.Center_Crop)


and its done, i think i reported the all bugs i find, i think dont have any other bug, the lib is fast, and good.
thx again for u work man.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…