progress-bar

Angular - Material: Progressbar custom color?

孤人 提交于 2019-12-18 01:14:46
问题 I am now trying for hours. I use Material2 and simply want to change the color of the progress-bar. I know there are those themes (primary/accent/warn) but I want to have a cutom color (green) for my progressbar. I already tried the wierdest css-combinations.. but with no effort. Maybe someone had the same problem? 回答1: I can suggest to change one of the premade primary/warn/accent colors to your custom color. In your styles.scss (if your style file is css you will have to change it to

Android round edges on ring shaped progressbar

眉间皱痕 提交于 2019-12-17 22:36:19
问题 I'm trying to make a circular progress bar on android and it seems pretty straightforward task , but I'm struggling with rounding the edges of the progress and secondary progress. Is there a way to do that without making a custom view ? Using a corners radius ? or nine patch drawable ? For this view (see attachement) I'm using a simple xml file <item android:id="@android:id/progress"> <shape android:useLevel="true" android:innerRadius="@dimen/sixty_dp" android:shape="ring" android:thickness="

How to use the Swing Timer to delay the loading of a progress bar

自古美人都是妖i 提交于 2019-12-17 22:28:22
问题 I need to find a way to use the Swing Timer with a progress bar. I tried using Thread.sleep(), but it crashed the app when I used it. Any ways to use the Swing Timer instead of the Sleep()? public void piiEros(int dist) { Pii pii = new Pii(); pii.setVisible(true); for(int pc = 0;100 > pc; pc++) { try { Thread.sleep(dist/100); } catch (InterruptedException ex) { Logger.getLogger(Trav.class.getName()).log(Level.SEVERE, null, ex); } pii.pg.setValue(pc); } pii.dispose(); o.Eros(); } NOTES: Pii is

Can I use jQuery UI Progress Bar to indicate the progress of downloading a file?

旧时模样 提交于 2019-12-17 22:00:28
问题 I have a web page that has several files available for download. These files vary in size from 1MB to 40MB. To help the user see that something is actually happening during the file download process, I would like to include a progress bar that gives a visual indication of the download progress. Would the jQuery UI Progress Bar work for this kind of task? If so, are there some examples of such coding that I could follow? (Yes, I have reviewed the jQuery UI site on this). Thanks. 回答1: In short,

In android Why my ProgressBar Freezes?

巧了我就是萌 提交于 2019-12-17 20:39:13
问题 i am showing Progress Bar at time of retrieving data from server and after retrieving data from server showing that data on chart but at time of plotting that data on chart my progress bar get freezes does any one have idea why this is so...... THANKS in advance... private ProgressDialog pd; private Handler handler = new Handler() { @Override public void handleMessage(Message msg) { Toast.makeText(context, "Please Wait...", Toast.LENGTH_LONG).show(); Thread t = new Thread(new Runnable() {

Using a Background Worker - Update a ProgressBar on the progress of a Recursive Method

我是研究僧i 提交于 2019-12-17 19:54:23
问题 Below is a method that I want to ship off into a background worker but I am struggling how to do it based on how created my method. As you can it doesn't return anything which is ok but it expects a directoryInfo object everytime it is recalled. private void getSizeForTargetDirectory(DirectoryInfo dtar) { // generate a collection of objects. files comes first and then directories. foreach (Object item in collection ) { if (item == file) { track the size of the files as you encounter. } else

Disabling progress bar animation on Vista Aero

天涯浪子 提交于 2019-12-17 19:48:44
问题 I'm using a Delphi 2009 VCL TProgressBar as a kind of "empty/full" gauge. On Vista, with Aero theme enabled, this has an animation associated with it, which is annoying and inappropriate for an gauge. Is there any way of disabling this (NOT by adjusting user's theme settings!) to prevent the animation on this control? To clarify, I want something basically identical to the 'disk space used' meters in Windows Explorer. No animation, but still with a nice border and shading effects. Update: I

JavaFX indeterminate progress bar while doing a process

这一生的挚爱 提交于 2019-12-17 19:37:02
问题 I am trying to insert to my database's one table but this process takes some minutes. I would like to have a indeterminate progress bar while my application is trying to insert. In order to have progress bar, I want to use JavaFX but I don't know how to implement it that it just has be shown until the end of inserting in to the database process. 回答1: JavaFX Tasks are probably the way to go. They provide a way to execute long-running tasks in the background without freezing the user interface.

How to change ttk.progressBar color in python

好久不见. 提交于 2019-12-17 19:25:08
问题 Does anyone know how I can change the color of my ttk.progressBar? It now shows a green color, and I would love to have it blue. import ttk self.progressBar = ttk.Progressbar(frame3, length=560, maximum=100, mode='determinate'); self.progressBar.place(x=-5, y=60) 回答1: you can change the color of a progressbar, but it is tricky. First, you need to understand that if you use the default theme, which is the default theme if you do not specify a theme in the tk.style. Then it will pass all the

Build Step Progress Bar (css and jquery)

和自甴很熟 提交于 2019-12-17 17:24:14
问题 You've seen iterations of this type of progress bar on sites like paypal. How does one go about setting this up using CSS and jquery ? I have 4 pages and each page is a step... so 4 steps. 回答1: I have searched for a solution that will visualize process steps in my web application. I have found the following excellent write-up by Stephen A Thomas: Tracking Progress in Pure CSS (Original Link now dead) In his approach Thomas even gets away with just using CSS - no Javascript! In an essence the