Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
a bug of GridView
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Kyara11  
View profile  
 More options Jan 23 2008, 6:53 pm
From: Kyara11 <kyara5...@gmail.com>
Date: Wed, 23 Jan 2008 15:53:49 -0800 (PST)
Local: Wed, Jan 23 2008 6:53 pm
Subject: a bug of GridView
Dear Android,

There seems a bug in GridView class. Let me put it with this example:
I put a "Select All" button above a photo GridView in a LinearLayout.
When this layout is displayed on screen, the focus is by default with
the button. As I press DOWN pad to move the focus to the grid, Android
cries with this:

E/AndroidRuntime(1057): Uncaught handler: thread Main exiting due to
uncaught exception
E/AndroidRuntime(1057): java.lang.NullPointerException
E/AndroidRuntime(1057):     at
android.widget.GridView.moveSelection(GridView.java:509)
E/AndroidRuntime(1057):     at
android.widget.GridView.layout(GridView.java:723)
E/AndroidRuntime(1057):     at
android.widget.AbsListView.onLayout(AbsListView.java:330)
E/AndroidRuntime(1057):     at android.view.View.layout(View.java:
3833)
E/AndroidRuntime(1057):     at
android.widget.LinearLayout.setChildFrame(LinearLayout.java:939)
E/AndroidRuntime(1057):     at
android.widget.LinearLayout.layOutVertical(LinearLayout.java:836)
E/AndroidRuntime(1057):     at
android.widget.LinearLayout.onLayout(LinearLayout.java:765)
E/AndroidRuntime(1057):     at android.view.View.layout(View.java:
3833)
E/AndroidRuntime(1057):     at
android.widget.FrameLayout.onLayout(FrameLayout.java:176)
E/AndroidRuntime(1057):     at android.view.View.layout(View.java:
3833)
E/AndroidRuntime(1057):     at
android.widget.LinearLayout.setChildFrame(LinearLayout.java:939)
E/AndroidRuntime(1057):     at
android.widget.LinearLayout.layOutVertical(LinearLayout.java:836)
E/AndroidRuntime(1057):     at
android.widget.LinearLayout.onLayout(LinearLayout.java:765)
E/AndroidRuntime(1057):     at android.view.View.layout(View.java:
3833)
E/AndroidRuntime(1057):     at
android.widget.FrameLayout.onLayout(FrameLayout.java:176)
E/AndroidRuntime(1057):     at android.view.View.layout(View.java:
3833)
E/AndroidRuntime(1057):     at
android.widget.FrameLayout.onLayout(FrameLayout.java:176)
E/AndroidRuntime(1057):     at android.view.View.layout(View.java:
3833)
E/AndroidRuntime(1057):     at
android.view.ViewRoot.performTraversals(ViewRoot.java:342)
E/AndroidRuntime(1057):     at
android.view.ViewRoot.handleMessage(ViewRoot.java:547)
E/AndroidRuntime(1057):     at
android.os.Handler.dispatchMessage(Handler.java:80)
E/AndroidRuntime(1057):     at android.os.Looper.loop(Looper.java:71)
E/AndroidRuntime(1057):     at
android.app.ActivityThread.main(ActivityThread.java:2506)
E/AndroidRuntime(1057):     at
java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(1057):     at
java.lang.reflect.Method.invoke(Method.java:380)
E/AndroidRuntime(1057):     at android.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:1170)
E/AndroidRuntime(1057):     at
android.os.ZygoteInit.main(ZygoteInit.java:1121)
E/AndroidRuntime(1057):     at android.dalvik.NativeStart.main(Native
Method)

Looking like GridView always expects there HAS BEEN a selected item in
itself before it gets focus so that it gets null pointer trying to
"moveSelection" ...

Please tell me I am wrong!!

Thanks.

Kyara


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
plusminus  
View profile  
 More options Feb 2 2008, 1:42 pm
From: plusminus <stoeps...@gmx.de>
Date: Sat, 2 Feb 2008 10:42:30 -0800 (PST)
Local: Sat, Feb 2 2008 1:42 pm
Subject: Re: a bug of GridView
Hello Kyara,

I'm receiving the same exception with a very similar setup.

Did you find a solution for it ??

Regards, plusminus
http://anddev.org
#  Worlds largest Android Development Community / Tutorials

On Jan 24, 12:53 am, Kyara11 <kyara5...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Romain Guy  
View profile  
 More options Feb 2 2008, 2:29 pm
From: "Romain Guy" <romain...@google.com>
Date: Sat, 2 Feb 2008 11:29:58 -0800
Local: Sat, Feb 2 2008 2:29 pm
Subject: Re: [android-developers] Re: a bug of GridView

This is a known bug in M3 that we fixed a while ago and the fix will be
available in the next version of the SDK.

On Feb 2, 2008 10:42 AM, plusminus <stoeps...@gmx.de> wrote:

--
Romain Guy
www.curious-creature.org

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
plusminus  
View profile  
 More options Feb 3 2008, 1:19 pm
From: plusminus <stoeps...@gmx.de>
Date: Sun, 3 Feb 2008 10:19:13 -0800 (PST)
Local: Sun, Feb 3 2008 1:19 pm
Subject: Re: a bug of GridView
Thx for that information.
So you perhaps can tell us hungry developers when the next update will
be release :)

[Edit]
Found workarounds for this bug:
http://www.anddev.org/viewtopic.php?p=3187#3187

And the "GridView-Disapperas on click" bug:
http://www.anddev.org/viewtopic.php?p=3182#3182

Best Regards, plusminus
http://anddev.org
#  Worlds largest Android Development Community / Tutorials

On Feb 2, 8:29 pm, "Romain Guy" <romain...@google.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Romain Guy  
View profile  
 More options Feb 3 2008, 1:57 pm
From: "Romain Guy" <romain...@google.com>
Date: Sun, 3 Feb 2008 10:57:35 -0800
Local: Sun, Feb 3 2008 1:57 pm
Subject: Re: [android-developers] Re: a bug of GridView

Please refrain from using such workarounds. I know these bugs are annoying
but it might be bad for your application (performance-wise) to reset the
adapter on every click.

On Feb 3, 2008 10:19 AM, plusminus <stoeps...@gmx.de> wrote:

--
Romain Guy
www.curious-creature.org

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kyara11  
View profile  
 More options Feb 15 2008, 12:06 pm
From: Kyara11 <kyara5...@gmail.com>
Date: Fri, 15 Feb 2008 09:06:47 -0800 (PST)
Local: Fri, Feb 15 2008 12:06 pm
Subject: Re: a bug of GridView
hi plusminus, sorry to reply u late. i've been sick and lying on bed
for >1 week :-(

finding no solution for it, i could not but move the button BELOW the
gridview and temporarily avoid the exception.

On Feb 2, 10:42 am, plusminus <stoeps...@gmx.de> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »