maurycyw / headergridview Goto Github PK
View Code? Open in Web Editor NEWA GridView with the ability to have multiple headers
A GridView with the ability to have multiple headers
When I scroll a gridview the header moves half of the screen only and half of the header is seen in the screen. It doesn't working like listview's header view.
At HeaderGridView.java line 96.
"v.measure(MeasureSpec.makeMeasureSpec(mDisplayWidth, MeasureSpec.AT_MOST), MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED));" In setupView(View view).
It's always throw nullPointException.
why????
it's fixed headerview not like the listview addHeaderView() ? how to solve it ?
there's some button,after i set onclicklistener ,it doesn't work
i've added HeaderGridView to my project successfully but the problem is i cannot remove headerview or update it. because the below if statement (info.view == v) is always false :
private boolean removeFixedViewInfo(View v, ArrayList<FixedViewInfo> where) {
int len = where.size();
int count = 0;
for (int i = 0; i < len; ++i) {
FixedViewInfo info = where.get(i);
if (info.view == v) {
this.setPadding(this.getPaddingLeft(), getPaddingTop()-v.getMeasuredHeight(), this.getPaddingRight(), this.getPaddingBottom());
where.remove(i);
count++;
break;
}
}
return count > 0;
}
can you help me with this and explain me why this happens? v is a global View which i've used to add header view before.
I'd appreciate if it you'd add addFooterView, since this is much more useful for me than a HeaderView.
I used this control, is a good solution to add header view to gridview. But how to set header view center horizontal?
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.