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
missing features or compatibility issues.)

On Wed, Aug 29, 2012 at 12:02 AM, Kostya Vasilyev <[email protected]> wrote:
>
> 2012/8/29 Thesalan <[email protected]>
>>
>> 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, null) (see here :
>> http://developer.android.com/guide/topics/graphics/hardware-accel.html) but
>> it doesn't work : content stay inside the viewpager.
>
>
> You can't force hardware accel off with setLayertType if it's already been
> set to enabled elsewhere (in the manifest, or I suppose in your ROM). Going
> the other way (software -> GPU) is possible.
>
> -- K
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



-- 
Romain Guy
Android framework engineer
[email protected]

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

Reply via email to