Questions tagged [drawingcache]

28 questions
12
votes
5 answers

WebView in ScrollView: "View too large to fit into drawing cache" - how to rework layout?

I have a layout with a ScrollView, which contains the following views: ImageView, TextView, WebView, TextView. (This is because I would like to scroll the whole together, not just the contents of the WebView) After loading some HTML in the WebView,…
Scorchio
  • 2,763
  • 2
  • 20
  • 28
6
votes
1 answer

Call to `getDrawingCache` returns null when scroll is enabled

What is missing in this code? This same code works on ICS. On API 8 the scroll appears and some content goes out of screen. How to get the drawing cache in this case? Code: TableLayout page = (TableLayout)…
Ron
  • 24,175
  • 8
  • 56
  • 97
3
votes
2 answers

Android - getDrawingCache - black screen

I've read pretty much every post on this topic, but none of them seem to help. I'm trying to capture a screen shot of the current screen. For this I'm using getDrawingCache. Here's my…
Gil Moshayof
  • 16,633
  • 4
  • 47
  • 58
2
votes
1 answer

Update the DrawingCache of a specific layout in Android

I have problem on getting the correct "ScreenShot" of a layout in android. The layout contains EditTexts and TextViews. The following code only give an "ScreenShot" of the Layout, but when I changed the string in EditText or TextView the…
2
votes
2 answers

Android: how to convert a scrolling layout to Bitmap

I would like to convert the whole scrolling layout inside a ScrollView to a Bitmap
Daniele B
  • 19,801
  • 29
  • 115
  • 173
1
vote
1 answer

Get bitmap of RelativeLayout having invisible TextView or ImageView

I am to create bitmap of a relative layout having a visible ImageView with two invisible TextViews and one invisible ImageView. But invisible views data was not shown in bitmap. If I set visible all those invisible views it is shown in bitmap, but…
Chirag Jain
  • 628
  • 11
  • 24
1
vote
0 answers

Image generated after building drawing cache always gives 72 px/inch resolution but I need 300 px/inch resolution

Please guide me regarding with this problem. Actually I changed the layout's size and ImageView's size but even that it gave me 72 px/inch. what should I go for to get expected resolution. Thanks in advance.
Chirag Jain
  • 628
  • 11
  • 24
1
vote
4 answers

Create image of imageview having textview on it

HI'm having an imageview having EditText on that Image. I want to create single Image of that imageview with EditText. I tryed…
Akshay
  • 6,029
  • 7
  • 40
  • 59
1
vote
2 answers

Null pointer Exception in Imageview.getDrawingCache on Secondtime

View vvv=mViewFlipper.getCurrentView(); RelativeLayout rrr=(RelativeLayout)vvv; ImageView img=(ImageView) rrr.getChildAt(0); img.setRotation(90); …
Devganiya Hitesh
  • 1,207
  • 2
  • 17
  • 31
1
vote
1 answer

Can't get dimensions of imageView background image in android?

I'd like to work with dimensions of imgHelpBelow imageView background image and not with the source of this image. Here is imgHelpBelow imageView XML:
olegoro
  • 113
  • 1
  • 2
  • 7
1
vote
1 answer

Take screenshot in UncaughtExceptionHandler

I'm trying to implement a system whereby if an uncaught exception occurs, my exception handler will take a screenshot of the activity, to be saved and sent off as part of a bug report. Is this even possible in Android? I'm passing the activity to…
user2459186
  • 37
  • 1
  • 6
1
vote
1 answer

edittext.getdrawing cache not working.Android

I need to convert string in the edittext to bitmap, but i am not getting the string but instead i am getting this (see the image) my code is as follows Canvas c=new Canvas(); MainActivity.editText.setCursorVisible(false); …
Sandeep R
  • 2,284
  • 3
  • 25
  • 51
1
vote
0 answers

How to draw at the backside of a View in Android

I would like to implement a cardflip animation. It basicaly should rotate the card by 180 degrees and show different content (but with same structure, It's intended like a filter) I tried to animate the view by 90 degrees then change the layout and…
simekadam
  • 7,334
  • 11
  • 56
  • 79
1
vote
2 answers

Cannot save bitmap on phone memory

I get an java null exception for the bitmap b in the following code: what could i do? Why doesn't the getDrawingCache function work in creating the bitmap; The onClickListener for the button that starts the action: KaufenGListener = new…
rosu alin
  • 5,674
  • 11
  • 69
  • 150
0
votes
1 answer

Xamarin.Android, SfChart, Widget

I have SfChart where part is on C# and xml. There is anyway to put this inside of widget? Maybe anyway to transfer whole object into widget or export to bitmap (getDrawingCache and DrawingCache are deprecated). Have anyone idea with sample? Edit:…
1
2