Hi,

You are trying to load an XML layout file as a bitmap, this is not
going to work :) Renderscript is not meant to display XML layouts.

On Fri, Mar 9, 2012 at 2:57 AM, Kubilay D. Yılmaz
<kubilayd.yil...@gmail.com> wrote:
> I have found many example related with RenderScript Carousel and their user
> experience is greater than widget.Gallery. However, I would like to put some
> layouts inside RenderScript Carousel but cannot. For e.q. in below code, all
> parameters are not null but Allocation.createFromBitmapResource throw null
> pointer exception.
>
> mScript.set_gTex_00(Allocation.createFromBitmapResource(mRS, mRes,
> R.layout.laytest));
>
>
>
> --
> 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



-- 
Romain Guy
Android framework engineer
romain...@android.com

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