Questions tagged [preview]

User Interface action to display a preliminary or scaled down version of the actual item.

User Interface action to display a preliminary or scaled down version of the actual item.

For images, typically showing a thumbnail version of the full image.

For documents, typically showing the first few pages or draft copies of the final.

1681 questions
5
votes
2 answers

VideoView and Progressive download

In my application I need to provide the user with a preview on a progressive download (video file). In order to achieve this, I'm using VideoView component to show the content of the video (.mp4, .3gpp) which is being downloaded. The problem is that…
a.bertucci
  • 12,142
  • 2
  • 31
  • 32
5
votes
2 answers

Streamlining SwiftUI Previews in Xcode

There's a lot of code my app normally runs that I would like to skip in Previews. Code that is time-consuming and has no visible effects (such as initializing audio devices). I'm trying to figure out how skip it for previews. There is an easy way to…
Anton
  • 2,512
  • 2
  • 20
  • 36
5
votes
5 answers

How to display video and audio in HTML preview in Visual Studio Code

When I use the HTML5 video and audio tags in my code, video and audio appears when I load the file in a browser. They also appear when I use a HTML preview package in Atom, however, they appear greyed-out and are not interactive when I use Visual…
5
votes
0 answers

How to check if @EnvironmentObject is set? (SwiftUI)

What I have: View and ViewModel (as extension to View struct). Both of them are use @EnvironmentObject of type AppState. The problem is that my preview crashes due to this error: Fatal error: No ObservableObject of type AppState found. Commenting…
Mikk
  • 304
  • 1
  • 3
  • 7
5
votes
1 answer

Bad quality of Android CameraX preview (viewfinder)

I have a problem with a preview using CameraX sample app. Quality of the preinstalled camera app's preview is better then CameraX sample's preview, but photos quality is ok. In the sample project touch to focus is implemented too, so it isn't…
5
votes
1 answer

Is there any way to generate a thumbnail image of a DOCX file?

I have done this using "pay" tools like ASPOSE, but I was curious if there are any open source tools out there that will do this.
Abe Miessler
  • 82,532
  • 99
  • 305
  • 486
5
votes
1 answer

WPF printing of multiple pages with preview

The more I read about the subject the less I understand so apologies in advance if the below seems completely off the wall. I have a usercontrol that contains a flowdocument - a view with a corresponding viewmodel. The aim is to send this to a…
c95mbq
  • 584
  • 1
  • 11
  • 28
5
votes
2 answers

Android Studio Layout Preview Low Resolution

I have recently updated to Android Studio 3.3 and have noticed that my layout preview is at a low resolution. Is there any solution to fixing this? This issue occurs only with the preview and in the design tab (excluding the blueprint) - running…
Miguel P.
  • 1,007
  • 7
  • 13
5
votes
2 answers

How to recreate an image preview from outside websites?

Similar to Facebook's UI, I am attempting at generating a preview image from an external linked website. So that when a user types in a url he is linking, the UI will by default, scan that site for an img and scrape a preview thumb. Is there a…
Trip
  • 26,756
  • 46
  • 158
  • 277
5
votes
0 answers

Android Soft Keyboard - Key preview popup is blocked/cut off at the top edge of the keyboard?

I'm working on a keyboard and am now focused on the key previews. I'm using a drawable,
5
votes
2 answers

NoMethodError in Rails::MailersController#preview

I've been receiving this error when I try to preview the my notification emails. Any ideas what might be causing it? undefined method `html_part' for # Did you mean? html_safe? arel.public_send(method, *args, &block) else …
trowse
  • 184
  • 10
5
votes
2 answers

Android Studio: Preview is missing in View -> Tool Windows ->

In Android studio the window of "Preview" is missing. Also it is missing in View -> Tool Windows -> I have tried to click on: Window -> Restore Default Layout But That didn't help... How can I restore Preview window? Thank you
Yuval Levy
  • 2,397
  • 10
  • 44
  • 73
5
votes
2 answers

Android How to preview an image, using its file path from SDcard, from my application

File is present in sdcard/image.jpg I would like to create my own application (activity). On a button press, the image stored in the sdcard needs to be displayed using the built-in image viewer. On pressing the back button from the Image viewer, it…
Roy Samuel
  • 790
  • 9
  • 24
5
votes
3 answers

Android Camera 2, how to crop preview size

I'm working on Camera 2 API recently and my device has a 16:9 screen ratio but my camera sensor is 4:3. So all the preview size I got is 4:3. I' wondering is there any way I get a crop the size and only display the 16:9 part? I tried a long time…
Solorchid
  • 215
  • 5
  • 18
5
votes
2 answers

PDF Image thumbnail preview in laravel 5.1?

I have file module, where I want to list all files,with thumbnail preview. as like follows, I am storing files in storage folder,which is not accessible via http. So How can I provide thumbnail preview for docs especially image and PDF. Is there…
gsk
  • 2,329
  • 8
  • 32
  • 56