I'll try to take a look at this later today.

On Tue, Aug 28, 2012 at 8:54 AM, Thesalan <thesa...@gmail.com> wrote:

> Thanks a lot!!
>
> The project is attached to this post, at this lighter version (like we can
> found here https://gist.github.com/8cbe094bb7a783e37ad1)
>
> I repeat : this works greats on emulator and older devices, but not on my
> HTC One X with last OTA (Android 4.0.4) and Nexus S with CyanogenMod 10
> (Android 4.1.1)
>
>
> Le mardi 28 août 2012 13:44:28 UTC+2, Mark Murphy (a Commons Guy) a écrit :
>>
>> That's rather strange, particularly considering that ViewPager is part of
>> the Android Support package, not the firmware.
>>
>> If you can create a complete sample project that demonstrates this,
>> upload the source somewhere, as I'd like to take a look at it.
>>
>> On Mon, Aug 27, 2012 at 4:29 AM, Thesalan <thes...@gmail.com> wrote:
>>
>>>  Hi!
>>>
>>> I started Android development last week, and I have a problem with a
>>> code on some devices :
>>>
>>> I have to develop an application with a specific controller like a
>>> horizontal wheel. To do this, I want to use the ViewPager, with
>>> setClipChildren(false) to extend the view. I based on the following code :
>>> https://gist.github.com/**8cbe094bb7a783e37ad1<https://gist.github.com/8cbe094bb7a783e37ad1>
>>>
>>> The result looks like this :
>>>
>>>
>>> <https://lh4.googleusercontent.com/-DjFOnG7O0wY/UDstWN3AE2I/AAAAAAAAAfE/yWpndOBTWIA/s1600/emulator.png>
>>> The ViewPager here is just on "Item4", and with setClipChildren(false)
>>> we can see the other item.
>>>
>>> This works greats on emulator (tested on API 7 to 16) and some devices!
>>>
>>> But I encounter some problems on more recent devices, like HTC One X
>>> (Android 4.0.4) and a Nexus S (CM10 - Android 4.1.1) : the ViewPager
>>> doesn't really extended! Just the current item is shown, and when you are
>>> sliding, the next item is shown :
>>>
>>>
>>> <https://lh3.googleusercontent.com/-clS7voj3rLk/UDsvfP1HnhI/AAAAAAAAAfM/K8uMV_9PLFA/s1600/onex_current.png>
>>>
>>> When sliding :
>>>
>>>
>>> <https://lh5.googleusercontent.com/-3tYaKu_Oz7w/UDsvnljXJ0I/AAAAAAAAAfU/JEaCZolThJ4/s1600/onex_sliding.png>
>>>
>>>
>>>
>>> Anybody else already encounter this problem? I think is an optimization
>>> on these devices, but how can I bypass this?
>>>
>>> Thanks in advance!
>>>
>>>
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-d...@**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<http://groups.google.com/group/android-developers?hl=en>
>>>
>>
>>
>>
>> --
>> Mark Murphy (a Commons Guy)
>> http://commonsware.com | http://github.com/commonsguy
>> http://commonsware.com/blog | http://twitter.com/commonsguy
>>
>> _The Busy Coder's Guide to Android Development_ Version 4.1 Available!
>>
>  --
> 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
>



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 4.1 Available!

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

Reply via email to