how to make custom range bar in Android? - android

I want to make this custom range bar in android XML.
see below image:
How do you make this seek range bar in android XML?
If you know any libraries, then comment me.

You can try android-range-seek-bar library

Related

Vertical Rangebar in Android

As you know there is no two thumbs bar in android. How can we build vertical range bar in android? There are some open source projects but all horizontal.
Have a look at this library. This might help you
https://github.com/Larpon/RangeSeekBar
Also, have a look at this SO answer How to make double seekbar in android?

how to change the look and feel of a range-seek-bar?

In my application i am using range-seek-bar library to obtain this functionality.
I want to change the look and feel of the the range progress bar displayed in this library.
I have tried changing the design in similar line with this code :
click here
But could not achieve anything as the default options of a seek bar are not present in the range-seek-bar.
I want the range seek bar to be styled as :
I am not able to figure out how to solve this issue... I am struggling with this from quite a few days.
Please help ! Thanks In Advance!

Achartengine - different Bar Color for BarChart in android

I have created one graph in android using AchartEngine library.
I want to display every Bar with different color.
What can i do, please give me some suggestion..?
Thanks in Advance
Just look at answer given here. In this he is giving different color to only one bar.
Take idea of it and try to make it custom according to your requirements.

Custom Title Bar Similar to this one

I want to create a custom title bar, somewhat like this, in my Android app. Please pardon if my question seems idiotic, I'm a beginner. Can anyone tell me if it is a titlebar or an Action bar? Plus how can I give this Shaded Black color to my titlebar/action bar?
PS: I'm using GingerBread on my Android. My app will require minimum SDK version to be 4 but it targets Jelly bean too. In GingerBread, I can't make use of ActionBars. Please help me with the problem. It would be highly appreciated.
You will want to use the ActionBarSherlock library for this (which will allow you to use this all the way back to SDK version 4).
It is reasonably easy to style, and is for sure the right way to do this. Lots of examples for this, as it is a very popular library.
http://actionbarsherlock.com/
If you are wanting to target min API 4, then as you state you'll be unable to use the ActionBar.
So you could just create your bar as a LinearLayout or something with whatever buttons / icons you want on it and have it at the top of all of your Activities. If you have many of them it would probably be worth it to refactor the Bar (click handlers and such) handling into a subclass of Activity, and then extend that with all of your other activities.
The visual effect could be easily achived with a 9-patch png set as the background of a LinearLayout. Just make the gradient you want in photoshop/Gimp and drop it into draw9Patch to add the pixels on the edge that will allow it to stretch nicely to fit any screen.
Edit: using actionbar sherlock as others suggested is probably a better idea than doing it "manually" as I suggested.

Custom Title bar & Tabs

Is there any way to change the content of the title bar when it's in Tab(If it wasn't in tab I would have done it but tried couldn't find any solution). E.g. Suppose I have created a custom title bar with few buttons on it, and now I want to change the content of the title bar(Drawables, Title and the functionality).
It would be great if someone could tell me if i can implement Action bar in versions below 3.0 ? I am creating this project in 2.1 (I'd like to create action bar from scratch).
or if there's any way beside inserting an image and placing buttons on it(This methodology would be good enough)?
If you're just looking to implement the ActionBar paradigm in pre-Honeycomb versions of Android, I suggest you look into using the ActionBarSherlock library.
The library will automatically use the native action bar when
available or will automatically wrap a custom implementation around
your layouts. This allows you to easily develop an application with an
action bar for every version of Android back through 1.6.
twaddington and pjco's answers are correct, you need to use ActionBarSherlock if you want to be compatible with every SDK levels.
I want to add you can have a custom actionbar or a custom view for your actionbar tabs using the method actionbar.setCustomView(view) or tab.setCustomView(view)
Anyway, play with ActionBarSherlock demos, there are a few cool use cases.
The other option worth looking at is ActionBarCompat, which I think comes with the SDK 14 api demos. However, ActionBarSherlock seems to support many more features so that may be the better solution.

Categories

Resources