TextView tv=new TextView(c); tv.setText("jeee;re sdsada"); tv.setLayoutParams(mLayoutParams); tv.setDrawingCacheEnabled(true); tv.buildDrawingCache(); Bitmap b=tv.getDrawingCache(true); if(b!=null) Log.v(TAG, "SEN ===>>>>"+"bitmap not null for tv"); else Log.v(TAG, "SEN ===>>>>"+"bitmap null for tv"); Hi
I am trying to get the final bitmap of a textview in onDraw on my customview. it always returns null. I am doing something wrong not sure what it is. Can you please shed somelight. Thanks -- 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