[android-developers] how to draw a TextView into a Bitmap (without ever beeing drawn on the display)

2011-09-04 Thread Marco Alexander Schmitz
hi, many posts are found according to the topic "screenshot a TextView into a Bitmap". Well, the difference to my problem is, that first the view is drawn on the display (with all layouting and measuring work already done) and then drawn into a Canvas connected to a Bitmap. I just want to create

Re: [android-developers] how to draw a TextView into a Bitmap (without ever beeing drawn on the display)

2011-09-04 Thread Romain Guy
You didn't give your TextView a size. You must first call measure(), then layout(), then you can draw the view. On Sun, Sep 4, 2011 at 2:43 AM, Marco Alexander Schmitz < marco.alexander.schm...@googlemail.com> wrote: > hi, > > many posts are found according to the topic "screenshot a TextView > i

Re: [android-developers] how to draw a TextView into a Bitmap (without ever beeing drawn on the display)

2011-09-05 Thread Marco Alexander Schmitz
Hi, thanks a lot for your answer, it's helping a lot. Last but not least I've got some differences on two real devices. First of all the XML: http://schemas.android.com/apk/res/android"; android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" an