-
Notifications
You must be signed in to change notification settings - Fork 418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Footer view with match_parent width stretching under one cell not entire screen. #5
Comments
Can you paste a screen snapshot with layout bounds? |
Thank you for your response. Don't understand what do you mean. To paste footer layout preview screenshot? |
Can you wrap the footer by a ViewGroup, for example:
|
It seems like that the footer does not stretch to the full width. Can you push your project or a demo to github, I need more information to solve this issue. |
By the way, what is the API level? Android 2.3.7? |
No it's api 14 level. |
I checked out your project and tried very hard to make it run in intellij idea... In
In Now it looks like: |
Thank you! Deleting this line solved the problem! |
Here is my code:
goodsGridView = (GridViewWithHeaderAndFooter) rootView.findViewById(R.id.goods_grid);
LayoutInflater layoutInflater = LayoutInflater.from(getActivity());
goodsFooterView = layoutInflater.inflate(R.layout.good_grid_footer, null);
goodsFooterView.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT));
goodsGridView.addFooterView(goodsFooterView);
The text was updated successfully, but these errors were encountered: