Questions tagged [drawingcache]
28 questions
0
votes
0 answers
Use view without adding to view
I need to capture a view as image, but the view is not located in my activity's XML file, it's located in layout_report.xml file.
I can capture a view that is located in activity xml with the method I wrote (method signature: public Bitmap…

ocr practice
- 9
- 2
0
votes
1 answer
Save a Layout that's bigger than device screen to bitmap
I need to save the contents of a layout onto a bitmap for later usage, however, the issue I'm facing is that said layout is way bigger than the device screen.
Browsing through stackoverflow questions I've come to the following code:
private void…

Larpus
- 301
- 1
- 3
- 17
0
votes
1 answer
Android the getDrawingCache() not contain actual values from TextView/TextClock
I would like to get two bitmaps of screen. Problem is, TextView or TextClock contains values from first call of getDrawingCache(). Values for TextView or TextClock are not refreshed in new Bitmap after second call of getDrawingCache().
Work on Nexus…

t0m
- 3,004
- 31
- 53
0
votes
1 answer
Android create bitmap from drawingcache for view bigger than screen
I am using Bitmap b = Bitmap.createBitmap(mView.getDrawingCache()); for creating image from my view so I can than share it. It works perfectly but when mView is bigger then the phone screen I get a null pointer exeption:
…

Tadej Vengust
- 1,351
- 4
- 18
- 35
0
votes
2 answers
setDrawingCacheEnabled doesn't work on LinearLayout
So, basically i have next piece of code:
llPhotoTest.setDrawingCacheEnabled(false);
llPhotoTest.setDrawingCacheEnabled(true);
...
llPhotoTest.getDrawingCache();
First time everything is ok, but second time cached picture stay the same.…
user2930040
0
votes
0 answers
Get overlayed bitmap from Custom ImageView
I've been testing on an idea and I've stumbled upon a problem.
I made a custom ImageView. I called it LayeredView, and the idea is that I can feed some layers of bitmap to it and it adds these layers on top of the src drawable, in order to make…

Gustafah88
- 31
- 1
- 4
0
votes
0 answers
hide view on drawingcache bitmap
I've a layout and elements. I want to get the drawingcache from the toot element but one text view should not be visible on the bitmap.
Are there any ways to do that?
I tried to make the element invisible, but that doesn't work the way I did.

rala
- 895
- 2
- 18
- 43
0
votes
1 answer
How to save drawing cache every 2 seconds?
I'm developing an application that save the drawing cache as image.png. I want to save every every 2 seconds the image and then send it to my server.
public static void getImagen(){
mView.setDrawingCacheEnabled(true);
…

user3773342
- 1
- 2
0
votes
0 answers
Android, Java: Improve quality of Bitmap with getDrawingCache()
I have a dialog and convert it to a bitmap. Then I want so send it with the Sharing Intent:
Bitmap cs = null;
v1.setDrawingCacheEnabled(true);
v1.buildDrawingCache(true);
cs =…

L3n95
- 1,505
- 3
- 25
- 49
0
votes
1 answer
I can't get image from Google Map with help of Drawing Cache in Android Studio
I have this code in layout:
But when i try use drawing cache, screenshot have only…

Maxim Mileshin
- 71
- 8
0
votes
1 answer
android how to get view's drawingcache which view is heighter than screen
I have a ScrollView layout with "layout_width="match_parent",layout_height="match_parent"",and it have a child LinearLayout.the child is heighter than the screen.I want to get the child's bitmap,but use getDrawingCache() only get the picture which…

yuchangfu
- 149
- 1
- 6
0
votes
1 answer
TextViews Gravity does not work vertically
when i draw the DrawingCache of a TextView to another View's Canvas, the Gravity of the TextView has no effect in vertical direction.
Here the class drawing the TextViews canvas to own canvas:
public class GravityDecorator extends View{
private…

steffka
- 5
- 2
-1
votes
1 answer
Imageview Drawing catch not come as needed
I have image view inside frame layout ,i put random sticker on image view at run time but when i save image bitmap using frame layout drawing-catch then image save but with unnecessary black part comes in saved image.
i want bitmap without this…

Pranav
- 4,172
- 3
- 30
- 31