progress-bar

Binding a progressbar to a mediaelement in wpf

别等时光非礼了梦想. 提交于 2019-12-18 11:57:53
问题 In c#/wpf I added a progressbar and mediaelement to my window. The idea was that progressbar is displaying how much is been played in the mediaelement. I tried it with the following xaml: <Window x:Class="TestApp.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" Height="627" Width="889"> <Grid> <MediaElement Margin="152,8,140,41" Name="mediaElement1" MediaEnded="mediaElement1_MediaEnded"

How to create progress bar in sprite kit?

泪湿孤枕 提交于 2019-12-18 11:36:11
问题 I want to create my own progress bar in Sprite Kit. I figured I will need to images - one fully empty progress bar and filled progress bar. I have those images, I put filled one on top of empty one, they are regular SKSPriteNodes now I can't figure out how do I cut my filled image where I need? How do I cut SKSpriteNode image at certain point? Maybe texture? 回答1: I would recommend looking into SKCropNode. For a visual aid how SKCropNode works, look it up in the Apple Programming Guide. I have

Android horizontal progress bar?

╄→尐↘猪︶ㄣ 提交于 2019-12-18 11:29:25
问题 I'd like to implement a progress bar like this Please help how can I do it or if there is a library 回答1: I saw that a lot of people are looking on this post so I thought that I should edit it and share an example: Note (this example is not complete, it's still in progress but I guess it's a starting point) GitHub: Github Example The important part in this example is below: Create in drawable a xml file custom_progress_bar_horizontal.xml and add the content below. <?xml version="1.0" encoding=

HTML5 file uploading with multiple progress bars

放肆的年华 提交于 2019-12-18 11:18:45
问题 I'm uploading multiple files via XmlHTTPRequest and HTML5. I have the uploading working fine, but I would like to have a progress bar for each file upload going on. The code I have, however, uses the last progress bar for ALL of the file uploads instead of each upload using its own progress bar. So this is mostly visual on the client-side, but it's really annoying me. For some reason I'm assuming that the event that attaches the progress of the file upload overwrites itself and uses the last

Android: Custom Horizontal Progress Bar Animation

為{幸葍}努か 提交于 2019-12-18 10:45:01
问题 I'm trying to create a progress bar where the bar itself animates in a vertical spin as it progresses horizontally. I'm successfully using my progress drawable as the drawable via: <ProgressBar android:id="@+id/progressBar" android:layout_width="fill_parent" android:layout_height="wrap_content" style="@android:style/Widget.ProgressBar.Horizontal" android:progressDrawable="@drawable/custom_progress" android:layout_marginRight="5dp" /> Here is my drawable: But I want it to have a subtle roll

JavaFX program locks/freezes whilst running

允我心安 提交于 2019-12-18 09:37:15
问题 I'm trying to create a JavaFX program, which is working - but I am trying to get a progress bar to update whilst it is running. However, the program just seems to freeze and locks up until it has finished processing. Does anyone have an idea of how I can get the program not to freeze whilst running - and to get the progress bar to update whilst it processes? Thanks 回答1: You can put the progressbar progress in a Platform.runLater(()-> progressBar.setProgress(progressValue)); so it will be

Progress bar while running while loop

雨燕双飞 提交于 2019-12-18 09:05:28
问题 I have this while loop, that basically loops through a lot of records in a database, and inserts the data in another: $q = $con1->query($users1) or die(print_r($con2->errorInfo(),1)); while($row = $q->fetch(PDO::FETCH_ASSOC)){ $q = $con2->prepare($users2); $q->execute(array($row['id'], $row['username'])) or die(print_r($con2-errorInfo(),1)); } (The script has been shortened for easy reading - the correct one has a much longer array) I would like to do this more graphical, and show a progress

I need know how much bytes has been uploaded for update a progress bar android

随声附和 提交于 2019-12-18 08:46:48
问题 I am developing an app for upload video to a Apache/PHP Server. In this moment I already can upload videos. I need show a progress bar while the file is being uploaded. I have the next code using AsyncTask and HTTP 4.1.1 Libraries for emulate the FORM. class uploadVideo extends AsyncTask<Void,Void,String>{ @Override protected String doInBackground(Void... params) { // Create a new HttpClient and Post Header HttpClient httpclient = new DefaultHttpClient(); HttpPost httppost = new HttpPost(

Show numbers in ProgressBar

自作多情 提交于 2019-12-18 07:52:10
问题 I have a ProgressBar. It works ok but I need to show the max value and the current value. They are not there. Do I need to change to a ProgressDialog? Clarification: I am showing a ProgressBar. The bar comes up perfectly but I want the numbers to appear as well. So, for example, it the max is 1000 the current point is 300 then I want 1000 to appear and the end of the bar and 300 to appear somewhere on the bar or just below it. I am using this class as the List Adaptor for the filling of an

Show numbers in ProgressBar

旧街凉风 提交于 2019-12-18 07:51:30
问题 I have a ProgressBar. It works ok but I need to show the max value and the current value. They are not there. Do I need to change to a ProgressDialog? Clarification: I am showing a ProgressBar. The bar comes up perfectly but I want the numbers to appear as well. So, for example, it the max is 1000 the current point is 300 then I want 1000 to appear and the end of the bar and 300 to appear somewhere on the bar or just below it. I am using this class as the List Adaptor for the filling of an