Does any one knows any way to change background of a progress bar to sth like this image?
As you can see there is a color plate in background which starts from green to red and there is an indicator which shows a title. I have no idea how to make it or if there is some keywords to search about it or even some liberaries.
thanks very much
P.S: It seems this is what I need.
https://github.com/ademar111190/android-phased-seek-bar
You can use seekbar for the indicator with thumb image changes and background as progress drawable in your xml.
Search for customizing seekbar and see whatever suits the best for your requirement.
Related
I have a viewpager with many images in my app. Below viewpager I need to show a progress indicator as shown in image. whenever the image is changed the dark blue part also will change its position accordingly. I am not sure which component to use here. Does it require a custom component? Will customizing progress bar work? Any help would be appreciated.
I'm using ProgressBar in android for providing a progress bar. At the moment I have a common progress bar, like you can see in the attached picture at the top - just a blue bar. What techniques are possible to have a bar style with stripes like attaced in the picture? do I have to use an image with stripes as background for solving this? or do I have to provide a special "android:progressDrawable"? Thx for your hints.
Create a custom progressbar with your own drawable. look at this topic: Custom Drawable for ProgressBar/ProgressDialog
I have being playing around with the ListView of XYPlots. I was able to change background either by using style="#style/APDefacto.Light" or style="#style/APDefacto.Dark". These two work well but, I want my graph to have complete white background instead of a light or dark background.
Screenshot with the light background.
If you look carefully at the graph, you will see that the background has a grey color but the graph itself is white. I want the whole background to be completely white.
I have try the solution of the link Change the background color of XYplot in android to white?. But that only have the effect of removing the square on the graph but no change is seen on the background.
Below is the resulting screenshot.
Any clues,
Thanks.
Just add these attrs to your XYPlot's xml:
ap:backgroundColor="#FFF"
ap:graphBackgroundColor="#FFF"
I have to create an ActionBar with a background and another image on top of the background (with opacity) which displays like a pattern.
I have found the way to set the background image for my ActionBar, by using setBackgrounddrawable().
But how can I set the pattern image on top of background image?
Can anyone please suggest?
A great SO Post for making a custom action bar. To set the opacity, use View.setAlpha(float) 0f to 1f.
This may help you "http://www.londatiga.net/it/how-to-create-quickaction-dialog-in-android/"
,this example having types of action bars.
I have an app where students at my school can download course content that professors upload. Everything works great, except I have no progress bar dialog. I recently switched the app over to using fragments, so the old dialog I was using broke.
Anyway, I was thinking that instead of having a dialog display the progress bar, I could use the background of the item that was clicked as the progress bar.
Here is a screenshot of the app:
http://dl.dropbox.com/u/4439149/Screenshot_2012-09-27-15-06-43.png
And here is a mocup of how I imagine it working:
http://dl.dropbox.com/u/4439149/42an8-CTWBJpw391zDSBs5MAiuIhibcsRWhZGwdvmTE%20copy.png
I cannot for the life of me think of how this should be done. I am hoping someone could just give me a push in the right direction.
Thanks,
David
Check out Clip Drawable. You can set the background of your row to a ClipDrawable that holds the color or another drawable that you want to show for progress, then set the level (progress) while downloading.
Have you tried changing your row.xml to be a frame layout and just have a ProgressBar that fills the entire row? You can then put this behind the layout you currently have in your row.xml.