B4A Library [Library] B4aGridView v3.80

lonleystar

Well-Known Member
Licensed User
Longtime User

Hi Marco, I've to Thank U for the donation.
 

Douglas Farias

Expert
Licensed User
Longtime User
@lonleystar
i have try your lib 3.5 and here is the logs

- The image now is showing perfect and fast, tested on many devices and all works

- GridView.VerticalSpacing is not working, if i add verticalspacing this add to horizontal and not vertical.
(GridView.VerticalSpacing = GridView.HorizontalSpacing)

- GridView.ScaleType = GridView3.ScaleType.Center_Crop and GridView.ScaleType = GridView3.ScaleType.Center dont work
here is the log if help u

- its possible to add GridView.Clear = delete all images, id, values etc? really to clean all grid?
- its possible to add GridView.Size = all images size? for use on for for i = 0 to GridView.Size
- its possible know whenn all images from web is loaded? for example i have a for with 100 images, i get this from my server, this take 2 - 3 seconds, i want to show a progressdialog("loading..."), later all images is on gridview i put hideprogressdialog
?

thx man i m using this on a big project, a social app, its not done, when i get this perfect working i go make u a donation and later publish at google play, i m sending you this all bugs because i like realy of this lib, and it is the most important part of my app, thx man again
 
Last edited:

lonleystar

Well-Known Member
Licensed User
Longtime User
Hi, U right I'll fix soon.
 

Shahid Saeed

Active Member
Licensed User
Longtime User
@lonleystar the work you have done so far is tremendous; I have a question and maybe it can make the Library more healthy. Is there any possibility if we can add a small social share button alongside the text.

An example from B4A forum post by Erel:

B4X:
Dim i AsIntent
i.Initialize(i.ACTION_SEND, "")
i.SetType("text/plain")
i.PutExtra("android.intent.extra.TEXT", "some text")
i.WrapAsIntentChooser("title")
StartActivity(i)

Here are some code examples from android developers page:

B4X:
'Share some text
Intent sendIntent =newIntent();
sendIntent.setAction(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_TEXT,"This is my text to send.");
sendIntent.setType("text/plain");
startActivity(Intent.createChooser(sendIntent, getResources().getText(R.string.send_to)));


'Share Image File
Intent shareIntent =newIntent();
shareIntent.setAction(Intent.ACTION_SEND);
shareIntent.putExtra(Intent.EXTRA_STREAM, uriToImage);
shareIntent.setType("image/jpeg");
startActivity(Intent.createChooser(shareIntent, getResources().getText(R.string.send_to)));


'Sharing Multiple Contents
ArrayList<Uri> imageUris =newArrayList<Uri>();
imageUris.add(imageUri1);// Add your image URIs here
imageUris.add(imageUri2);Intent shareIntent =newIntent();
shareIntent.setAction(Intent.ACTION_SEND_MULTIPLE);
shareIntent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, imageUris);
shareIntent.setType("image/*");
startActivity(Intent.createChooser(shareIntent,"Share images to.."));
 
Last edited:

lonleystar

Well-Known Member
Licensed User
Longtime User
Hi, I'll try.
 

Rajesh kannan MJ

Member
Licensed User
Longtime User
Hi,

I downloaded your latest zip file. But I do not see any sample projects. May I know which file I should download for samples,

Thank you,
 

lonleystar

Well-Known Member
Licensed User
Longtime User
I am sorry about your health, I am sure you are taking a good care of you; nothing is important than health. Get well soon!

Hi, Thanks, I got (Pleurisy) because I go run every day on the mountain and one day was raining so much that I couldn't protect me anywhere. but now I'm ok and I'll fix the library as you asked me, I wish you a nice weekend.
 

Sub7

Active Member
Licensed User
Longtime User
Hello @lonleystar i am trying to use your lib but i have some problems:
gridview.clearcache, ClearMemoryCache, ClearMemoryCache does not seems to do anything, for example:

I populate the grid from a json > i load the gridview > i modify the json by removing an image > i reload the gridview (after calling clearmemory) > the image is still there, it correct only on app restart.

B4X:
GridView.CompressFormat = GridView.CompressFormat.Compress_Format_JPG
GridView.CompressQuality = 100  'Setting 1 or 100 nothing change


Thank you
 

Davin

Member
Licensed User
Longtime User
i try your lib. this is something that i want. but can i use custom layout for each image i load ?
 

lonleystar

Well-Known Member
Licensed User
Longtime User


Hi, I'll check it soon.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…