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

IllegalArgumentException in 2.3 #4

Closed
29jitender opened this issue Nov 20, 2014 · 8 comments
Closed

IllegalArgumentException in 2.3 #4

29jitender opened this issue Nov 20, 2014 · 8 comments
Assignees

Comments

@29jitender
Copy link

Getting IllegalArgumentException in android 2.3.
"java.lang.IllegalArgumentException: Number of columns must be 1 or more" line number 345

liaohuqiu added a commit that referenced this issue Nov 21, 2014
@liaohuqiu liaohuqiu self-assigned this Nov 21, 2014
@29jitender
Copy link
Author

In 2.3 i am getting a weird margin at the top of header but its working perfectly fine in 4.4

@liaohuqiu
Copy link
Owner

Can you paste a screen snapshot?

@29jitender
Copy link
Author

Theme is "Theme.Sherlock.Light.DarkActionBar"
Using GenyMotion with nexus S android 2.3.7
screen shot 2014-11-21 at 7 20 51 pm

@liaohuqiu
Copy link
Owner

Do you mean the margin below the top header abount 10px height? May a have a look at your xml?

@29jitender
Copy link
Author

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<com.example.android.GridViewWithHeaderAndFooter
    android:id="@+id/grid_view"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:cacheColorHint="#00000000"
    android:divider="@null"
    android:dividerHeight="0dp"
    android:fadingEdge="none"
    android:footerDividersEnabled="false"
    android:numColumns="2"
    android:scrollbars="none" />
</FrameLayout>

I copied your GridViewWithHeaderAndFooter in my project and then i am adding a header

@liaohuqiu
Copy link
Owner

Why there is a ListView, Can you push a demo project to github. I will check it out.

@29jitender
Copy link
Author

I have updated the comment and will push demo project in a while.

@liaohuqiu
Copy link
Owner

Aha. the layout seems no problem. I need more information to fix this. Can you push a simple project to demonstrate this issue?

liaohuqiu added a commit that referenced this issue Dec 19, 2014
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