Re: [android-developers] ViewPager and setClipChildren(false)

2012-08-28 Thread Kostya Vasilyev
Thanks for clarifying, I stand corrected. -- K 2012/8/29 Romain Guy > Kostya, you are wrong :) > > setLayerType() always lets you go back to software. It doesn't let you > go to hardware if the app is not hardware accelerated. The whole point > of setLayerType(SOFTWARE) is to be able to selecti

Re: [android-developers] ViewPager and setClipChildren(false)

2012-08-28 Thread Thesalan
Ok thanks! But when I do it on the ViewPager, the clipping stay... I will try again tomorrow, it's late for me here ;) Thanks again! Le mercredi 29 août 2012 00:23:03 UTC+2, Romain Guy (Google) a écrit : > > Thesalan, it's incorrect. setLayeType(View.LAYER_TYPE_SOFTWARE, null) > always works, n

Re: [android-developers] ViewPager and setClipChildren(false)

2012-08-28 Thread Romain Guy (Google)
Thesalan, it's incorrect. setLayeType(View.LAYER_TYPE_SOFTWARE, null) always works, no matter how or if hardware acceleration is enabled. On Tuesday, August 28, 2012 3:18:18 PM UTC-7, Thesalan wrote: > > Ok, thank you for the precision! > > Le mercredi 29 août 2012 00:05:24 UTC+2, Kostya Vasilyev

Re: [android-developers] ViewPager and setClipChildren(false)

2012-08-28 Thread Romain Guy
Kostya, you are wrong :) setLayerType() always lets you go back to software. It doesn't let you go to hardware if the app is not hardware accelerated. The whole point of setLayerType(SOFTWARE) is to be able to selectively disable hardware acceleration for small parts of the app (to work around mis

Re: [android-developers] ViewPager and setClipChildren(false)

2012-08-28 Thread Thesalan
Ok, thank you for the precision! Le mercredi 29 août 2012 00:05:24 UTC+2, Kostya Vasilyev a écrit : > > > 2012/8/29 Thesalan > > >> Mark, a huge thank you!! I never thought the problem would come from >> hardware acceleration (I'm a beginner after all ^_^). Indeed, my current >> rom force hardwa

Re: [android-developers] ViewPager and setClipChildren(false)

2012-08-28 Thread Kostya Vasilyev
2012/8/29 Thesalan > Mark, a huge thank you!! I never thought the problem would come from > hardware acceleration (I'm a beginner after all ^_^). Indeed, my current > rom force hardware acceleration for all applications. > > I tried to force software mode just on the ViewPager with > setLayerType

Re: [android-developers] ViewPager and setClipChildren(false)

2012-08-28 Thread Thesalan
Mark, a huge thank you!! I never thought the problem would come from hardware acceleration (I'm a beginner after all ^_^). Indeed, my current rom force hardware acceleration for all applications. I tried to force software mode just on the ViewPager with setLayerType(View.LAYER_TYPE_SOFTWARE, nu

Re: [android-developers] ViewPager and setClipChildren(false)

2012-08-28 Thread Mark Murphy
On Tue, Aug 28, 2012 at 5:10 PM, Romain Guy wrote: > Sounds like a bug, please file a report with an apk or a sample > project that reproduces the issue and I'll fix it. Posted as http://code.google.com/p/android/issues/detail?id=36788 Thanks! -- Mark Murphy (a Commons Guy) http://commonsware.

Re: [android-developers] ViewPager and setClipChildren(false)

2012-08-28 Thread Romain Guy
To file a bug report, go to http://b.android.com btw On Tue, Aug 28, 2012 at 11:10 PM, Romain Guy wrote: > Sounds like a bug, please file a report with an apk or a sample > project that reproduces the issue and I'll fix it. > > On Tue, Aug 28, 2012 at 11:05 PM, Mark Murphy wrote: >> On Tue, Aug

Re: [android-developers] ViewPager and setClipChildren(false)

2012-08-28 Thread Romain Guy
Sounds like a bug, please file a report with an apk or a sample project that reproduces the issue and I'll fix it. On Tue, Aug 28, 2012 at 11:05 PM, Mark Murphy wrote: > On Tue, Aug 28, 2012 at 8:54 AM, Thesalan wrote: >> The project is attached to this post, at this lighter version (like we can

Re: [android-developers] ViewPager and setClipChildren(false)

2012-08-28 Thread Mark Murphy
On Tue, Aug 28, 2012 at 8:54 AM, Thesalan wrote: > 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

Re: [android-developers] ViewPager and setClipChildren(false)

2012-08-28 Thread Mark Murphy
I'll try to take a look at this later today. On Tue, Aug 28, 2012 at 8:54 AM, Thesalan 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 an

Re: [android-developers] ViewPager and setClipChildren(false)

2012-08-28 Thread Mark Murphy
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 wr

[android-developers] ViewPager and setClipChildren(false)

2012-08-28 Thread Thesalan
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