[android-developers] Re: ListSelector on GridView

2010-10-09 Thread Buddy
Hi,

Did you get a solution ?

I have the same problem...


Thanks,
Antoine

On 25 août, 05:42, fr4gus  wrote:
> Hi all,
>
> I'm trying to use a custom listSelector on aGridView. When I use the
> default listSelector, I see that it modifies the size of my items so
> the listSelector display correctly. The listSelectoris bigger than
> my items:
>
> See how when using the default selecto, it make grid items to be
> resized. Above thegridviewI have a LinearLayout with 4 of the same
> images(ImageView) theGridViewcontains.
>
> http://twitpic.com/2hxkjh
>
> I wanted a custom listSelector, not as bigger as the default (that
> makes my items smaller), but bigger enough to simulate a border on
> them without overlap my items content.
> I'm, not sure if this is an expected behavior, but when I set the
> listSelector with my own image, I see theselectorbeing fit to my
> items size. At least my items won't get resized
>
> http://twitpic.com/2hxlni
>
> Any ideas of how to set aselectorthat doesn't get resized?

-- 
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] Get source Code on Microsoft Windows

2010-03-23 Thread Buddy
Hello,

I try this plugin "http://www.eclipse.org/egit/"; to get the source
code of Android.

My parameters :
-URI : http://android.git.kernel.org/platform/manifest.git
- Protocol : Http or Https

I obtained the branches but can not get an access to the source
code...

Any idea ?

Thanks,
Antoine

-- 
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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.


[android-developers] Re: Touch or Click event...with a listView containing a gridView

2009-11-30 Thread Buddy
Ok finally, I found the solution...

It is very strange :

1. when you create a "gridView" and that no adapter is linked, the
"isfocusableIntouchmode" and "isfocusable" are set to false.
2. when you link the gridView to an adapter, the
"isfocusableIntouchmode" and "isfocusable" are changed to "true".

So to conclude : When I create, the gridView, I set :
   gridView.setClickable(false);
   gridView.setEnabled(false);

And in the method "getView" of the adapter, I need :
GridView grid =3D (GridView)parent;
grid.setFocusable(false);
grid.setFocusableInTouchMode(false);

Ok, If someone has to face with the same problem
thanks to me



On Nov 26, 5:50 pm, Buddy  wrote:
> Hi,
>
> I am always searching for a solution...after several tests, I can
> conclude that it is when I add an adapter to myGridViewthat the
> problem arises.
>
> The method "onItemClick" of my ListView is never called anymore after
> this instruction : "gridView.setAdapter(imageAdapter);"
> And it works fine if mygridviewhas no adapter...
>
> Very strange...any help ?
>
> Thanks,
> Antoine
>
> On Nov 26, 11:00 am, Buddy  wrote:
>
> > Hi,
>
> > In fact, to sumarize my problem : my ListView contains rows with a
> > grid View (each row has agridView). I add an "ItemClickListener" on
> > my ListView. But when I click on a row, and in particular on theGridView, 
> > nothing is done...
>
> > If you can help...
>
> > Thanks,
> > Antoine

-- 
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: Touch or Click event...with a listView containing a gridView

2009-11-30 Thread Buddy
Ok finally, I found the solution...

It is very strange :

1. when you create a "gridView" and that no adapter is linked, the
"isfocusableIntouchmode" and "isfocusable" are set to false.
2. when you link the gridView to an adapter, the
"isfocusableIntouchmode" and "isfocusable" are changed set to true.

So to conclude : When I create, the gridView, I set :
   gridView.setClickable(false);
   gridView.setEnabled(false);

And in the method "getView" of the adapter, I need :
GridView grid = (GridView)parent;
grid.setFocusable(false);
grid.setFocusableInTouchMode(false);

Ok, If someone has to face with the same problem
thanks to me


On Nov 26, 5:50 pm, Buddy  wrote:
> Hi,
>
> I am always searching for a solution...after several tests, I can
> conclude that it is when I add an adapter to myGridViewthat the
> problem arises.
>
> The method "onItemClick" of my ListView is never called anymore after
> this instruction : "gridView.setAdapter(imageAdapter);"
> And it works fine if mygridviewhas no adapter...
>
> Very strange...any help ?
>
> Thanks,
> Antoine
>
> On Nov 26, 11:00 am, Buddy  wrote:
>
> > Hi,
>
> > In fact, to sumarize my problem : my ListView contains rows with a
> > grid View (each row has agridView). I add an "ItemClickListener" on
> > my ListView. But when I click on a row, and in particular on theGridView, 
> > nothing is done...
>
> > If you can help...
>
> > Thanks,
> > Antoine

-- 
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: Touch or Click event...with a listView containing a gridView

2009-11-26 Thread Buddy
Hi,

I am always searching for a solution...after several tests, I can
conclude that it is when I add an adapter to my GridView that the
problem arises.

The method "onItemClick" of my ListView is never called anymore after
this instruction : "gridView.setAdapter(imageAdapter);"
And it works fine if my gridview has no adapter...

Very strange...any help ?

Thanks,
Antoine

On Nov 26, 11:00 am, Buddy  wrote:
> Hi,
>
> In fact, to sumarize my problem : my ListView contains rows with a
> grid View (each row has agridView). I add an "ItemClickListener" on
> my ListView. But when I click on a row, and in particular on theGridView, 
> nothing is done...
>
> If you can help...
>
> Thanks,
> Antoine

-- 
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: Android 2.0 SDK is here!

2009-11-26 Thread Buddy
Thanks a lot for the work !

Regards

On Nov 4, 9:07 am, Nishant  wrote:
> Hello,
>
> Why in-build javax.sound API of Java not introduced in Android 2.0?
> Lots of problems occur in Android Sound API (AudioTrack as well as
> MediaPlayer).
>
> Regards,
> Nishant Shah

-- 
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: Touch or Click event...with a listView containing a gridView

2009-11-26 Thread Buddy
Hi,

In fact, to sumarize my problem : my ListView contains rows with a
grid View (each row has a gridView). I add an "ItemClickListener" on
my ListView. But when I click on a row, and in particular on the
GridView, nothing is done...

If you can help...

Thanks,
Antoine

-- 
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] Touch or Click event...with a listView containing a gridView

2009-11-10 Thread Buddy
Hi,

Here is my problem : I have a view containing a listView. And each row
of this listview is composed of a linearLayout, itself composed of
three textview and a gridView. Here is a summary of my layout for one
row :



 one textview
 two textview
 three textview  



 one gridView 


I want to perform an action when the user click anywere on an item of
the listview. So I try these two approaches on the listview :
 - myActivity.getListView().setOnTouchListener(new View.OnTouchListener
() {...})
 - myActivity.getListView().setOnItemClickListener(new
AdapterView.OnItemClickListener() { ...})

And here is the trouble :
- when I click on the textview, it nearly works : the touch listener
is called, but not the clicklistener
- when I click on the gridView it doesn't workthe event is just
dispatched to the element of the gridView...

I try :
 myActivity.getListView().setClickable(true);
 myActivity.getListView().setFocusable(true);
 myActivity.getListView().setFocusableInTouchMode(true);
The result is strange...It was not possible anymore to select the
element of my gridViewand it is perfect for my application...but
the listview's listeners are not called when I click on a row...

I try "setEnabled(false)" on the element of the gridView. I try
"setFocusable(false)", etc...and no result...

I try to define a listener for the gridview's item, to check that the
event exists...and there is an event...the listener of the gridview is
called...but is there any way that the parents receive the event to ?

For the touch listener, it seems that there is a problem with the
gridview...any solution ?

Thanks,
I hope it was clear...

-- 
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