Library and example of how to display a grid view with a header and/or footer using a normal list view, ti also supports background images
More details on: http://www.plattysoft.com/2013/07/22/displaying-items-in-a-grid-with-a-header/
Library and example of how to display a grid view with a header using a normal list view
Library and example of how to display a grid view with a header and/or footer using a normal list view, ti also supports background images
More details on: http://www.plattysoft.com/2013/07/22/displaying-items-in-a-grid-with-a-header/
If you inflate the view using the parent view (and false), and you have not enough rows to require scroll, the last view is not properly displayed (0 height)
It does not happen if you inflate the view with a null parent.
Im experiencing the issue described at this link when Im using your library
applidium/HeaderListView#11
Hi,
I am getting a NullpointerException when I remove the data. I am avoiding it in this way:
@Override
protected View getItemView(int position, View convertView, ViewGroup parent) {
// ... code
if (holder != null) {
Picasso.with(context)
.load(photo.getUrl())
.placeholder(R.drawable.placeholder)
.error(R.drawable.error)
.into(holder.picture);
}
}
It mitigates the problem, but it shows a strange list with empty items, like below (assuming three columns) :
X X X
X X
X
X X X
X X X
X is the grid item ( a picture, in this case ) and there is blank space.
It occurs when I show the gridview in a fragment, and then go to other fragments and remove data. When I come back to fragment that showed the grid view, the Exception is called. The gridView and the adapter are always instantiated in onCreateView():
....
photoList = new ArrayList<Photo>(profile.getPhotoList());
adapter = new ProfileGridAdapter(getActivity(), photoList);
adapter.setNumColumns(3);
photosListView.setAdapter(adapter);
....
Apparently there is no reason for this to occur.
Thank you for your attention.
Regards,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.