Questions tagged [android-progressbar]

1

votes
1

answer
324

Views

Button, progress circle and infinitive loading circle in same widget?

I'm looking for away to implement three different functions in one widget. The widgets is going to be placed in the center of the display, I'm going to try to explain how it should work. When the user opens the app, it will display this activity: When the user taps on the text/inside the circle, it...
BufferOverflow
1

votes
2

answer
46

Views

How to download file with progressbar update

I want to download file with updating Progressbar not ProgressDialog.I use AsyncTask for download file.In onProgressUpdate() method i want to update the progressbar progress but not getting success.In Log progress is print but progresbar not update.My code is in Adapter. class DownloadFileFromURL e...
ajay dhadhal
1

votes
2

answer
429

Views

How to have a One Common ProgressBar in Android Project

I'm currently trying to sort out a way to have a single Common ProgressBar to everywhere(Activity/Fragment) I need in my Android Project. The methods I tried did not promise me good results. Please help me to find a better solution. An example with code for android java is more than welcome. This i...
Pixxu Waku
1

votes
0

answer
105

Views

Android: how to animate a circular ProgressBar with a mask?

I want to create a circular ProgressBar animating within a custom shape, like this: I already know how to create a basic circular ProgressBar: shape_ring_blue_progress.xml But I have no clue of how to use a more complex shape and a mask like I want to. Thanks for your help!
Rob
1

votes
1

answer
327

Views

Add Progressbar in each recycler view cell in android

I am new in android and i am making a ringing tune downloader app. In this app i have a recycler view with list of ringing tunes . When user clicks download button i want to show a progress bar in each cell. I know the RecyclerView recycles any old views and thus want a way around that atleast for t...
1

votes
0

answer
67

Views

access progressbar for each item in recyclerview

hi I want to display the progressbar when a item is clicked for this i need to initialize progressbar first i used this code: @Override public void onMessageRowClicked(int position) { progressBar = ((ProgressBar) recyclerView.findViewHolderForAdapterPosition(position).itemView.findViewById(R.id.pro...
Power Code
1

votes
0

answer
69

Views

SVG vector not working under API 21 when I changed progress bar's background

I'm trying to change progress bar's background with SVG vector drawable and I'm using supportLibrary and that's working perfectly on API 21 and higher versions of android but under API 21 it's just crashing. Here is the logs: at com.myCompany.modules.presetshare.ui.components.MediaPlayerProgressBarC...
tpbafk
1

votes
0

answer
120

Views

How can i make a PDF file load fast into the PDFVIEW library and How do i set progressBar?

I have an App in which i would like to display a progressBar while waiting for the PDF to load from my firebase. But I have tried putting the load function on the OnpostExecute then calling the execute on the Oncreate. The problem is that it takes too for the pdf to load from my firebase into my pdf...
Tech1
1

votes
0

answer
49

Views

Android layout custom round progressbar with slices and range

I am trying to make this mockup real: What I did is: but I can't divide the progressbar into slices and I can't create the big slice in the middle which rapresents the range. The slices should be at a certain value and the big one has a start and a finish value for range. Any help? This is my code:
Dennis Turri
1

votes
0

answer
18

Views

Android User interface and the custom progressbar

Hello I am a beginner in android programming Im facing a lot of issues since I had to learn everything by myself . I want to design a progress bar like this one but I don't know where to start. My question is how to crate a progress bar like this one and which code to implement in xml and java
Joopy Pops
1

votes
2

answer
204

Views

how to make a countdown progress bar going down continuously?

I am using a count down progress bar in android. I want it to be updated with the new time without stopping. It is now working with me but it stops for a short time then jump a part in the progress I don't want that I want it to be always decreasing without stopping. This is my xml code : and this...
Mostafa Khaled
1

votes
0

answer
34

Views

How do I create a progress bar on a webview in a fragment with a navigation drawer? my language is kotlin

until now I am still confused to display the progress bar in the webview navigation drawer, I will be very grateful for the answers this is a MainActivity : class MainActivity: AppCompatActivity(), NavigationView.OnNavigationItemSelectedListener { override fun onCreate(savedInstanceState: Bundle?) {...
Noor Tata
1

votes
1

answer
23

Views

Custom loading view not showing on calling show() and dismiss() method

I am trying to implement a custom loading view when the user clicks on upload to show loading. When calling show() it's working perfectly but on calling dismiss(). It shows nothing I have done all the googling and search for a similar problem on StackOverflow public void onClick(View v) { switch (v....
Aashish Sharma
1

votes
0

answer
32

Views

How to have text views that move along the progress bar

Context: I want to build a horizontal progress bar with some values and want to put some text that move along below this progress bar. So my final ideia is something like this (I already have the progress bar built I only left the text views below) My current code is something like this: This is my...
José Nobre
1

votes
1

answer
35

Views

How to implement ProgressBar that runs on top of a darkened background?

I've successfully implemented ProgressBar on its own, however, I would like it to show on top of a darkened background which will prevent the user from clicking something underneath that layer. I'm currently trying to use the view object as a fill layer which still allows the user to click the butto...
DarkNate
1

votes
4

answer
39

Views

Using a BroadcastReceiver to update a ProgressBar

I am trying to update a ProgressBar from a Service task. I implemented a BroadcastReceiver so that I can interact with the UI thread. I update the ProgressBar in the main activity, and receive the data from the MyService activity. The MyService activity executes an Async task and updates the intent...
hippoman
1

votes
1

answer
1.4k

Views

How to display ProgressDialog when preparing to show another activity?

I need to show activity with MapView, if user long clicked on the list item. This process takes a while, so I would like to show user progressdialog, while application hangs. Here is the code: ListView listView = (ListView) findViewById(android.R.id.list); listView.setOnItemLongClickListener (new On...
LA_
1

votes
2

answer
372

Views

ProgressBar not updating correctly after return to Activity

MyBookshelf extends Activity and implements an Interface called by asynchronous download and unzip processes. The asynchronous download process periodically calls onBookDownloadPercent(float) from the Interface. My Activity definition includes: public class MyBookshelf extends Activity implements B...
Thunder Rabbit
1

votes
1

answer
2.8k

Views

How to download multiple images and display them like a slideshow?

Hey i am a new to android world and was thinking to make a small app in which it downloads multiple images (probably from specified url) into the sdcard or downloads folder and then those images can be seen as a slideshow (having buttons next and back). Plus while download is going on there should b...
Dhruv
1

votes
1

answer
180

Views

How to get how many byte has upload so far?

My upload method as below: private void upload(String Server, String FilePath, String SavePath, String NewName) { String end = '\r\n'; String twoHyphens = '--'; String boundary = '*****'; try { URL url = new URL(ActionUrl); HttpURLConnection con = (HttpURLConnection) url.openConnection(); con.setDoI...
brian
1

votes
2

answer
1.5k

Views

Android - Loading Progress using AsyncTask

I'm having problem to display the loading progress bar on my apps. I had tried to search for few days but still no any good progress. Could anyone help me to view my code and give me any comment. My problem is when i open the page, it will directly show error on my eclipse and force me to close. The...
Sally
1

votes
1

answer
736

Views

Can't stop a ProgressDialog in an AsyncTask

I have two AsyncTask that are not working. There must be something in common with both I am doing wrong. My first activity takes a long time to load so I wish to have a progressDialog/Bar but it fails. I access a AsyncTask in my onCreate with new HeavyWorker(this).execute(); public class HeavyWorker...
John
1

votes
2

answer
1.2k

Views

progressbar circle in SherlockActionBar using Fragments

I have a SherlockFragmentActivity using tabhost and viewpager. Calling requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); in the fragmentactivity creates the spinner, and calling setSupportProgressBarIndeterminateVisibility(false); won't disable it. I also don't seem to be able to call...
user1490217
1

votes
1

answer
873

Views

Set progress bar color in actionbar sherlock

How can we set color of the progress bar in ABS. By default it coming out to be blue in color, which looked perfect with dark theme. But when i use light theme it's almost not visible. Which item in style of android:progressBarStyle i should override to change color. I want to achieve exactly the sa...
Krishna Kumar
1

votes
1

answer
1.1k

Views

Android Custom ProgressBar with Left and Right Track Images

I'm porting an iOS App to Android and one of the features in the iOS App is a custom UISlider that uses a Left and Right Track Image (in the picture below) but so far I can't seem to replicate this same behavior on the Android side. From the image you can see that there is a White image used for th...
Sal Aldana
1

votes
1

answer
619

Views

Android Image Downloader with progress bar and grid view (Android Runtime)

I'm new to Java and Android. Here in this application I'm trying to Download multiple images with progress bar and display images in GridView. I'm not getting any error but some exceptions. When I run this code in eclipse, Emulator Just shows 'Unfortunately Stopped'. So please can anyone help me to...
Computer Gaga
1

votes
1

answer
187

Views

i cannot see my custom progress dialog

I tried the following code for creating a custom progress dialog. But I am not getting the desired output. Following is my MainActivity.java code public class MainActivity extends Activity { private ProgressDialog mProgressDialog; @Override protected void onCreate(Bundle savedInstanceState) { supe...
SRINIVAS RAO
1

votes
1

answer
2k

Views

AsyncTask and Progressbar

I am writing an application in which I download PDFs one by one and show them in a view. The view has a next button which onClick shows the PDF(that was downloaded on the previous next click) and downloads the next PDF which will be shown when the next button is clicked again. I am downloading the f...
sampath
1

votes
1

answer
506

Views

Android Loading Indicator for Downloading Images

I am using an Image Loaded which loads images based on requirment and since the images are big. I want to display an intermediate Spinning Image showing which would convey that the image is loading to the User. I am displaying these images in the Viewpager. We can not use a Gif image to display the...
Harsha M V
1

votes
1

answer
1.3k

Views

WebView Progress Dialog won't dismiss

When a page loads up I show the Progress Dialog, and I dismiss it when the page finishes loading. After that if there a picture that loads when I scroll down, the Progress Dialog will show up, but doesn't disappears after the picture is loaded. How can I fix this problem? This is my code, use it an...
Ammar
1

votes
2

answer
4.6k

Views

Seek bar progress when button pressed

I have made a simple android project with a single activity containing three buttons and a seek bar,Now i want is that when i press 1st button the seek bar should directly progressed 33%(without showing progress),when 2nd button pressed the seek bar should progressed again by 33% second time and whe...
jimmy cool
1

votes
2

answer
705

Views

I want to implement progressbar while sending image

I want to send the image through socket and while the sending process going on the progress bar must be displayed and it should be updating when the image is being sending but when i tried this code the progressbar is not been displayed and the image is being send. try { //image send client = new So...
Ajinkya S
1

votes
3

answer
3k

Views

Full size horizontal progressbar in layout when running Android 2.x

The following is a very simplified layout for a list view item that works as expected running on multiple different android 4.x devices but not on android 2.3 (device and emulator). Expected: The progressbar should cover the entire background of this item, both horizontally and vertically. On Androi...
1

votes
2

answer
399

Views

ProgressBar just wont show up and show any kind of progress

I have been trying for a while now, Have looked at a few SO posts, and got to this stage. I am sure I am very close to getting it working, but am missing something very basic. Code Snippets of the activity below public class SearchResultsMap extends MapActivity { .... public void onCreate(Bundle sav...
Siddharth
1

votes
4

answer
2.4k

Views

Add a space after 3 characters

I have a seekbar which set values from 1500 to 48500 when on progress to an EditText. I want to add a space after ever 3 characters on progress changed for example 1500 becomes 1 500, 1 600, 30 000, 48 500. How can i achieve this. I mean formatting the progressed number so that after 3 characters it...
Dimitri
1

votes
1

answer
739

Views

listview item's view returns to original state after scroll the view off the screen

I have button in listview item and when it's clicked horizontal progressbar start loading and when it is done loading two button should appear in that item in listview. While progressbar downloading if I scroll that item off the screen and then scroll it back, the progressbar disappeared and two but...
casper
1

votes
2

answer
1.6k

Views

ProgressBar is not showing in center of device when using indeterminateDrawable

I am working with custom progress bar using indeterminateDrawable property, code is below, when I removed indeterminateDrawable property then it shown in center but not shown center with this property. please help me. drawable/startup_anim.xml
1

votes
1

answer
671

Views

Android SeekBar with very fine control

I want to set up a slider bar in my Android application, but with very fine control. I have the following code to define bar and its range: skBar = new SeekBar (this); skBar.setBackgroundColor (TRANS_BLUE); skBar.setMax (2000); skBar.setMinimumHeight (20); skBar.setProgress (origOffset); I'm settin...
Rich
1

votes
1

answer
1.9k

Views

Displaying progress bar while intent service is running

This seems like it should be simple, but I'm getting into a muddle. I start an IntentService from my main activity via an onClick event, and listen for a response from the service using a PendingIntent that references a static inner class BroadcastReceiver in the same main activity of the onClick e...
James B
1

votes
1

answer
2.8k

Views

Progress bar onclick event

Is it possible in android to get onclick event on the progress bar which will give on the percentage(or something like that) with reference to progress bar. Say at point A it gives 2.3% and point X it gives 46.7% something like that. Hope the question is clear. Any other help/approach to this solut...
onkar

View additional questions