Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion ViewPager and setClipChildren(false)

Received: by 10.58.249.106 with SMTP id yt10mr1825541vec.36.1346193032690;
        Tue, 28 Aug 2012 15:30:32 -0700 (PDT)
X-BeenThere: android-developers@googlegroups.com
Received: by 10.52.156.112 with SMTP id wd16ls979295vdb.6.gmail; Tue, 28 Aug
 2012 15:28:42 -0700 (PDT)
Received: by 10.52.94.135 with SMTP id dc7mr2865455vdb.4.1346192922052;
        Tue, 28 Aug 2012 15:28:42 -0700 (PDT)
Date: Tue, 28 Aug 2012 15:28:41 -0700 (PDT)
From: Thesalan <thesa...@gmail.com>
To: android-developers@googlegroups.com
Message-Id: <4dcb4ddf-cfd8-4144-ade7-ee521b38f71f@googlegroups.com>
In-Reply-To: <a7647705-3d7a-4eeb-8be0-0dcf5272d144@googlegroups.com>
References: <e8f29982-f938-4ae3-98ab-47872cca8afa@googlegroups.com>
 <CALLdnhON0vekTZ1v6c=W+Gv_+aGaJJ1X3YVMsWHm-k6Sy=vxdA@mail.gmail.com>
 <4d04f392-0fcc-415e-be32-4c6e1eaf123a@googlegroups.com>
 <CALLdnhOH59at21jQ615F6zg29SssXVpBQ7eHoN-6m8dd-W8p=g@mail.gmail.com>
 <3afc8f0b-5efe-43d7-87ac-794774bab850@googlegroups.com>
 <CAN7dqjBfdfcwCjUeh18wUpw0YS2QUtCtgt4cg=q=HF1ZbBk=zw@mail.gmail.com>
 <03d289ed-01d1-4a79-8df2-ffc6d4e141dd@googlegroups.com>
 <a7647705-3d7a-4eeb-8be0-0dcf5272d144@googlegroups.com>
Subject: Re: [android-developers] ViewPager and setClipChildren(false)
MIME-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_249_31367739.1346192921624"

------=_Part_249_31367739.1346192921624
Content-Type: multipart/alternative; 
	boundary="----=_Part_250_23925010.1346192921624"

------=_Part_250_23925010.1346192921624
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Ok thanks! But when I do it on the ViewPager, the clipping stay... I will=
=20
try again tomorrow, it's late for me here ;)

Thanks again!

Le mercredi 29 ao=C3=BBt 2012 00:23:03 UTC+2, Romain Guy (Google) a =C3=A9c=
rit :
>
> Thesalan, it's incorrect. setLayeType(View.LAYER_TYPE_SOFTWARE, null)=20
> 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=C3=BBt 2012 00:05:24 UTC+2, Kostya Vasilyev a =C3=A9cr=
it :
>>>
>>>
>>> 2012/8/29 Thesalan <thes...@gmail.com>
>>>
>>>> Mark, a huge thank you!! I never thought the problem would come from=
=20
>>>> hardware acceleration (I'm a beginner after all ^_^). Indeed, my curre=
nt=20
>>>> rom force hardware acceleration for all applications.
>>>>
>>>> I tried to force software mode just on the ViewPager with=20
>>>> setLayerType(View.LAYER_TYPE_SOFTWARE, null) (see here :=20
>>>> http://developer.android.com/guide/topics/graphics/hardware-accel.html=
)=20
>>>> but it doesn't work : content stay inside the viewpager.
>>>>
>>>
>>> You can't force hardware accel off with setLayertType if it's already=
=20
>>> been set to enabled elsewhere (in the manifest, or I suppose in your RO=
M).=20
>>> Going the other way (software -> GPU) is possible.
>>>
>>> -- K
>>> =20
>>>
>>
------=_Part_250_23925010.1346192921624
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Ok thanks! But when I do it on the ViewPager, the clipping stay... I will t=
ry again tomorrow, it's late for me here ;)<div><br></div><div>Thanks again=
!<br><br>Le mercredi 29 ao=C3=BBt 2012 00:23:03 UTC+2, Romain Guy (Google) =
a =C3=A9crit&nbsp;:<blockquote class=3D"gmail_quote" style=3D"margin: 0;mar=
gin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">Thesalan, i=
t's incorrect. setLayeType(View.LAYER_TYPE_<wbr>SOFTWARE, null) always work=
s, no matter how or if hardware acceleration is enabled.<br><br>On Tuesday,=
 August 28, 2012 3:18:18 PM UTC-7, Thesalan wrote:<blockquote class=3D"gmai=
l_quote" style=3D"margin:0;margin-left:0.8ex;border-left:1px #ccc solid;pad=
ding-left:1ex">Ok, thank you for the precision!<br><br>Le mercredi 29 ao=C3=
=BBt 2012 00:05:24 UTC+2, Kostya Vasilyev a =C3=A9crit&nbsp;:<blockquote cl=
ass=3D"gmail_quote" style=3D"margin:0;margin-left:0.8ex;border-left:1px #cc=
c solid;padding-left:1ex"><br><div class=3D"gmail_quote">2012/8/29 Thesalan=
 <span dir=3D"ltr">&lt;<a>thes...@gmail.com</a>&gt;</span><br><blockquote c=
lass=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;=
padding-left:1ex">
Mark, a huge thank you!! I never thought the problem would come from hardwa=
re acceleration (I'm a beginner after all ^_^). Indeed, my current rom forc=
e hardware acceleration for all applications.<div><br></div><div>I tried to=
 force software mode just on the ViewPager with setLayerType(View.LAYER_TYP=
E_<wbr>SOFTWARE, null) (see here :&nbsp;<a href=3D"http://developer.android=
.com/guide/topics/graphics/hardware-accel.html" target=3D"_blank">http://de=
veloper.android.<wbr>com/guide/topics/graphics/<wbr>hardware-accel.html</a>=
) but it doesn't work : content stay inside the viewpager.</div>
</blockquote><div><br></div><div>You can't force hardware accel off with se=
tLayertType if it's already been set to enabled elsewhere (in the manifest,=
 or I suppose in your ROM). Going the other way (software -&gt; GPU) is pos=
sible.</div>
<div><br></div><div>-- K</div><div>&nbsp;</div></div>
</blockquote></blockquote></blockquote></div>
------=_Part_250_23925010.1346192921624--

------=_Part_249_31367739.1346192921624--