preview

instead of preview, Android Studio showing only black screen with 'android…ActionBarOverlayLayout' written on it

折月煮酒 提交于 2019-12-29 06:47:08
问题 From few days, I'm not able to see preview/design of screens/layouts. Only a black screen is shown with android...ActionBarOverlayLayout written on it. There is no error or exception in logcat. Also after running the project no issue on device. Only preview and Design tab in Android Studio showing black screen. This is happening for every layouts after some Android Studio and build tools updates(which happened automatically) Note : If I change Theme in preview (Theme in Editor), then

Android: how to display camera preview with callback?

断了今生、忘了曾经 提交于 2019-12-28 03:46:09
问题 What I need to do is quite simple, I want to manually display preview from camera using camera callback and I want to get at least 15fps on a real device. I don't even need the colors, I just need to preview grayscale image. Images from camera are in YUV format and you have to process it somehow, which is the main performance problem. I'm using API 8. In all cases I'm using camera.setPreviewCallbackWithBuffer(), that is faster than camera.setPreviewCallback(). It seems that I cant get about

how to preview uploaded image in php form

家住魔仙堡 提交于 2019-12-25 16:49:18
问题 i created PHP form for my site, with image upload option on it. but it only show the image name before image submitted, but i want to view/preview the image/file before submit so how this possible in this? "file36":{"label":"Select/Upload a Student's Photo","accept":"jpg|jpeg|png|gif|bmt","files":true,"attach":true,"database":true,"maxbytes":204800,"fieldtype":"fileupload","required":true,}}, 回答1: As far as I know this is not possible with php until you upload the image. However, you are able

How do I turn off preview in Visual Studio 2012 for pdf files?

眉间皱痕 提交于 2019-12-24 13:42:15
问题 When I select a file in solution explorer it opens immediately in a preview tab. For many file types this is a useful feature. But when adding PDFs to a website it is not. How do I tune Visual Studio 2012's preview feature so that it does not preview PDF files? (N.B. Kyralessa shows how to turn the preview feature off in an answer to another question, but I'd like to leave it on generally, and turn it off for PDFs.) 回答1: Click on the pdf file while holding ALT key - the file will be selected

Jquery script for document preview?

夙愿已清 提交于 2019-12-24 08:39:12
问题 Do you know any components from jQuery with which you can preview .doc,.pdf,.jpg .... files in browser ? Thanks 回答1: If you really want to keep it all native inside the browser you can display images on their own and pdfs with pdf.js. If you only need to display it somehow I advise you to look at Google docs viewer (officially discontinued, see below) which allows you lots of different files and which you can next embed in one of the scripts altschuler mentioned. (See my comment to his answer

AVCaptureSession VS UIImagePickerController camera preview

大城市里の小女人 提交于 2019-12-23 18:04:09
问题 I'm developing an application similar to Instagram iOS app. Instagram have a custom camera preview. I want to develop something similar and the question is - what to use better for this purpose - UIImagePickerController with custom cameraOverlayView property or should I use AVCaptureSession ? Maybe someone have such experience and can give me an advice. Will be appreciate. 回答1: AVCaptureSession is more customisable than UIImagePickerController. In case of speed, there is not much difference.

android camera preview

浪尽此生 提交于 2019-12-23 13:01:13
问题 I have a problem. I'm trying to develop a program that uses the camera, everything is working in my device but like many of you know the CameraPreview doesn't work the same way in all devices, so I tried to integrate the code that google provides in this address: http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/CameraPreview.html The problem I've faced is that I don't know how to integrate to my project, here is my code and what I've done without

How to crop image on camera preview “Goggles style” - Android

牧云@^-^@ 提交于 2019-12-23 02:32:44
问题 I'm trying to make a small Android application that reads text from pictures. I've already implemented Tesseract tools for Android and I'm able to recognize text from pictures taken with camera. My current problem is that distance for taking picture is really strict. It's not really user friendly if users has to be at very exact distance from text (s)he's trying to read. I was thinking that best way would do it like in Google Goggles where user is able to crop specific part of image (on

Custom Android Camera Application, Camera Preview Issue

梦想的初衷 提交于 2019-12-22 18:34:06
问题 the camera preview is showing a distorted image, which is elongated while in portrait mode and flattened while in landscape. I have already resized preview with a million techniques. Then I read somewhere it must be something with resizing the SurfaceView . But so far I have not found anything suitable. This is my activity.java file: public class CameraActivity extends Activity { private Camera mCamera; private CameraPreview mPreview; private FrameLayout preview; private static final String

sencha touch :: how to create a panel for website-preview inside iFrame

最后都变了- 提交于 2019-12-22 10:06:41
问题 I need to allow some website previews inside sencha touch. I see two different possibilities: opening safariMobile-app to show the link generating a panel with an iFrame inside the 'html'-property. because I don't know how to achieve 1. I started with 2. but run into some trouble: a) the content of my iFrameis not scrollable. if I try to scroll the content, the whole viewport scrolls, including my bottom-tabPanel-Buttons! b) the displayed website seems to load without any css or images here