progress

用VS2017进行移动开发(C#、VB.NET)――Progress控件,Smobiler移动开发

匿名 (未验证) 提交于 2019-12-02 22:10:10
Progress控件 我们要实现上图中的效果,需要如下的操作: 从工具栏上的“Smobiler Components”拖动一个Progress控件到窗体界面上 修改Progress的属性 BackColor属性 设置控件的背景色为“235, 235, 235”,如图1; 图 1设置界面 BackColorAlpha属性 获取和设置背景色的透明度为“50”,如图 2; 图 2设置界面 该属性默认设置为“255”,即不透明;若将该属性设置为“0”,该控件的背景色即为全透明的,显示为Smobiler窗体设计界面的背景色。 ForeColor属性 设置控件的前景色为“45, 145, 255”,如图 3; 图 3设置界面 Location属性 让控件显示在合适的位置(24, 45),如图 4; 图 4设置界面 Size属性 让Progress控件大小为(83, 1),如图 5; 图 5设置界面 Value属性 获取和设置进度值,该值必须在0和1之间,将该属性设置为“0.85”,如图 6; 图 6设置界面 文章来源: 用VS2017进行移动开发(C#、VB.NET)――Progress控件,Smobiler移动开发

Inserting data into realm DB with progress?

 ̄綄美尐妖づ 提交于 2019-12-02 20:04:27
问题 I have request data which was about 7MB after it has downloaded the json string,means the json string is about 7MB.After it has downloaded,I would like to save the data into realm model object(table) with progress like (1/7390) to (7390/7390) -> (data which is inserted/total data to be inserted) I am using Alamofire as HTTPClient at my app.So,how to insert data with progress into my realm object model after it has downloaded from server?Any help cause I am a beginner. I wont show the data

Mediaplayer progress update to seekbar not smooth?

こ雲淡風輕ζ 提交于 2019-12-02 18:22:02
I am working on an app with recorder and player. I am using mediaplayer to play the recorded .wav file and meantime I want to update to a seekbar. Everything is working fine But my problem is mediaplayer progress updation to seekbar is not happening smoothly, If we are playig a small file, thumb of the seekbar jumps in seconds or between. Can anyone help me with a workaround to make it smooth seeking of the progress in seekbar. My code is shown below.I am totlay stuck here. mediaPlayerIntiate(); mediaPlayerSetSource(); mMediaPlayer.start(); task = new TimerTask() { @Override public void run()

Android Back Button and Progress Dialog

那年仲夏 提交于 2019-12-02 16:37:18
I have an AsyncTask that shows a progressDialog whilst working (it calls runOnUiThread from within doInBackground to show the progress dialog). Whilst its running I want to allow the use of the back button to cancel the operation; someone else has had this problem: BACK Button is not working ,while progressDialog is running For what ever reason I can't reply to that thread, hence having to start another?! (Another question for another day) I had the same idea as Sandy but this code is never called whilst the progressDialog is showing, why is this? I have implemented it inside my main activity

How to show a progress bar during the creation of a file?

被刻印的时光 ゝ 提交于 2019-12-02 16:29:44
问题 How can I show a progress bar when I click a button during the creation of a PDF file and hide it when I finished creating the file? public class TwoFragment extends android.support.v4.app.Fragment { private View v; Intent chooser=null; String myInt=""; String ciao=""; private String string=""; private ProgressBar pdfProgress; ProgressTask task; public TwoFragment() { // Required empty public constructor } @Override public void onCreate(Bundle savedInstanceState) { super.onCreate

Thread not updating progress bar control - C#

北城余情 提交于 2019-12-02 16:11:29
问题 I have a custom form with a custom progress bar, spawned in the main class(main thread). Then I spawn a thread and send it a ThreadStart function. This thread start function should update the progress bar in the custom control, but doesnt.: class MyClass { ...... //Custom form with progress bar public CustomFormWithProgressBar statusScreen = new CustomFormWithProgressBar(0); //thread to use private Thread myThread; ..... //Linked to a button to trigger the update procedure. void

Progress bar in console application

人走茶凉 提交于 2019-12-02 15:39:28
I'm writing a simple c# console app that uploads files to sftp server. However, the amount of files are large. I would like to display either percentage of files uploaded or just the number of files upload already from the total number of files to be upload. First, I get all the files and the total number of files. string[] filePath = Directory.GetFiles(path, "*"); totalCount = filePath.Length; Then I loop through the file and upload them one by one in foreach loop. foreach(string file in filePath) { string FileName = Path.GetFileName(file); //copy the files oSftp.Put(LocalDirectory + "/" +

Inserting data into realm DB with progress?

醉酒当歌 提交于 2019-12-02 08:31:07
I have request data which was about 7MB after it has downloaded the json string,means the json string is about 7MB.After it has downloaded,I would like to save the data into realm model object(table) with progress like (1/7390) to (7390/7390) -> (data which is inserted/total data to be inserted) I am using Alamofire as HTTPClient at my app.So,how to insert data with progress into my realm object model after it has downloaded from server?Any help cause I am a beginner. I wont show the data model exactly,so,any example is appreciated.Let say my json string is. { { name : Smith, age : 23, address

Updating progress dialog

时光怂恿深爱的人放手 提交于 2019-12-01 23:30:31
I am trying to make an application that can help me to evaluate the time to download the file from a web resource. I have found 2 samples: Download a file with Android, and showing the progress in a ProgressDialog and http://www.helloandroid.com/tutorials/how-download-fileimage-url-your-device The second example shows a smaller download time, but I cannot understand how to update progress dialog using it. I think something should be done with "while" expression in second case, but I cannot find what. Could someone give me any piece of advice? UPD: 1st code: try { time1 = System

java上传大文件(局域网环境)

一曲冷凌霜 提交于 2019-12-01 23:24:58
文件上传是最古老的互联网操作之一,20多年来几乎没有怎么变化,还是操作麻烦、缺乏交互、用户体验差。 一、前端代码 英国程序员 Remy Sharp 总结了这些 新的接口 ,本文在他的基础之上,讨论在前端采用HTML5的API,对文件上传进行渐进式增强: * iframe上传    * ajax上传    * 进度条    * 文件预览    * 拖放上传 1.1 传统形式   文件上传的传统形式,是使用表单元素file,参考 http://www.ruanyifeng.com/blog/2012/08/file_upload.html : <form id="upload-form" action="upload.php" method="post" enctype="multipart/form-data" >     <input type="file" id="upload" name="upload" /> <br />     <input type="submit" value="Upload" /> </form> 所有浏览器都支持上面的代码,点击上传按钮后,网页"锁死",用户只能等待上传结束,然后浏览器刷新,跳到表单的action属性指定的网址。 1.2 iframe上传   用户点击submit时,动态插入一个iframe元素 var form = $("