[android-developers] Re: Gallery default item selected is in center

2011-03-24 Thread umakantpatil


Thanks everyone for the reply.

1. On click of item it should be selected but should not come to center.

2. And the First elements left side is empty, Dont want that.


I don't think there is any library for this. :(
 

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Gallery default item selected is in center

2011-03-24 Thread jotobjects
For a start there are probably non-public methods and fields in other
classes that Gallery uses from the widget package.  SO just copy that
one class is not going to be sufficient.

The bigger problem is that Gallery does provide the hooks needed to
accomplish what you want (which is unfortunate I agree).

On Mar 24, 9:20 am, Justin Anderson magouyaw...@gmail.com wrote:
 * If the android its own source has errors then how I can go ahead ?*
 Obviously the android source does not have compile errors or it would not be
 working for everyone...  The errors were introduced when you copied the
 Gallery Widget class to your app.

 Thanks,
 Justin Anderson
 MagouyaWare Developerhttp://sites.google.com/site/magouyaware

 On Thu, Mar 24, 2011 at 6:46 AM, umakantpatil umakantpat...@gmail.comwrote:





  I copied the Gallery Widget Class to app, But it gives me lots of errors.
  Few of them I solved but there are still many unresolvable
  e.g.

  mRecycler cannot be resolved.
  FLAG_USE_CHILD_DRAWING_ORDER cannot be resolved
  mGroupFlags cannot be resolved
  FLAG_SUPPORT_STATIC_TRANSFORMATIONS cannot be resolved

  If the android its own source has errors then how I can go ahead ?

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: Gallery default item selected is in center

2011-03-23 Thread jotobjects
Seems like this comes up a lot - many people want an non-center-locked
horizontal scrolling list.  There are lots of posts here and on
StackOverflow about this.  Some of the suggested workarounds are
partly effective, but I have not found a fully working
HorizontalListView yet.  Gallery is great, if you want what it does.
The two non-Gallery features that keep being requested are -

- non centered locked so the item you click doesn't jump to the center
- left and right flush so it does not scroll item one beyond the left
edge, and it doesn't scroll the last item beyond the right edge

Does such a widget exist publicly out there anywhere?

On Mar 23, 4:06 pm, Justin Anderson magouyaw...@gmail.com wrote:
 * I'm using Gallery view within my app. Now when I run the code. Gallery
 has default selected item is no 1 which is in center and left side is blank.
 *
 *Instead I want no 1 item should be at left and selected.*

 From the description of Gallery:
 A view that shows items in a *center-locked*, horizontally scrolling list.

 http://developer.android.com/reference/android/widget/Gallery.html

 * Also clicking on the any gallery item should not bring that item in the
 center.*
 What should it do?  When you click something it is selected, is it not?  And
 as mentioned above, it shows items in a center-locked... list You can try
 changing the behavior by subclassing it and overriding its various touch
 events.

 Thanks,
 Justin Anderson
 MagouyaWare Developerhttp://sites.google.com/site/magouyaware

 On Wed, Mar 23, 2011 at 5:11 AM, umakantpatil umakantpat...@gmail.comwrote:



  Hi All,

  I'm using Gallery view within my app. Now when I run the code. Gallery has
  default selected item is no 1 which is in center and left side is blank.
  Instead I want no 1 item should be at left and selected.
  Also clicking on the any gallery item should not bring that item in the
  center.

  I tired hunting it lot on the groups but not found any solution. Is this
  possible or not ?
  If yes then how come?

  Thanks

   --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en