Skip to content
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

GridViewWithHeaderAndFooter's padding not worked on FooterView #6

Closed
liushuai42 opened this issue Dec 16, 2014 · 3 comments
Closed

Comments

@liushuai42
Copy link

Defined GridViewWithHeaderAndFooter in layout.xml with padding which give space for scrollbar.
But the padding doesn't worked for FooterView which caused by FooterView not centered in GridView.

@liaohuqiu
Copy link
Owner

Would you paste your xml code here? :)

@liushuai42
Copy link
Author

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical" >

    <com.dianxinos.ls.demo.GridViewWithHeaderAndFooter
        android:id="@+id/grid"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:numColumns="3"
        android:overScrollMode="never"
        android:paddingLeft="8dp" <!-- line caused the FooterView not centered -->
        android:paddingRight="8dp" <!-- line caused the FooterView not centered -->
        android:requiresFadingEdge="vertical"
        android:verticalSpacing="5dp" />

</LinearLayout>

@liaohuqiu
Copy link
Owner

@iceliushuai , This issue has been fixed. https://github.com/liaohuqiu/android-GridViewWithHeaderAndFooter/releases/tag/1.0.9. Thank you for your feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants