Am I thinking of a ProgressBar or something else? Android - android

I am new to Android/Java/Programming...
I am not sure if I am researching the correct term, but I am looking to have a horizontal bar on my application with no animation. The bar will show a static number from x to y based on a selected button from the user.
Can a ProgressBar be used as a standalone graphic like a bar graph? What is the correct term for me to research?
Edited to add…
Can I remove the user functionality from being able to adjust the seekbar?

The progress bar is used to show progress of some operation and it used the concept of threading.
In your case I think you are talking about seekbar ,.. the value of seekbar can be changed in the application through appropriate controls..e.g onbuttonpress or editing value in textbox

hi what you are looking for is actually a seek bar...
Go through this for a sample

I think you are looking for SeekBar.
A SeekBar is an extension of ProgressBar that adds a draggable thumb. The user can touch the thumb and drag left or right to set the current progress level or use the arrow keys.
For more details go through these links: link1 & link2
Hope this will solve your issue.

Related

Android - Create a settings object similar to volume control

As the title says, I was wondering if there is a way to add a way to create input in my Android application, by providing the user with a bar similar to the one used by Android system for adjusting the sound volume. A specific variable would change its value, according to the position of a "button" on the bar (sorry for my English). Any advice on that?
A SeekBar is what you are looking for.
Here is the design spec: https://www.google.com/design/spec/components/sliders.html#
Here is the reference page: http://developer.android.com/reference/android/widget/SeekBar.html
If you want to set the value of the position of the SeekBar, simply do:
seekBar.setProgress(position);
where position is where you want the SeekBar to be.
Getting the position of the SeekBar is a bit more involved. Firstly you must set a setOnSeekBarChangeListener and grab the SeekBar value from within the onProgressChanged method. This is a StackOverflow question that answers this well: get android seekbar value and display it on screen

Drop Down Text Display using Android Action Bar

Can anyone point me to an example of displaying text in a view that "unrolls" down from the Android Action bar when the corresponding item is touched?
In my case, I want to display GPS state information such number of visible satellites, but that's not really important, it's just text data. The distinction, in this case, is that I don't want to display a drop-down menu, just text data -- that changes over time, but has no function.
I'll keep searching, but at this point, I'm not even sure what to use for a search phrase.
Thanks,
R.
I got some assistance at one point with how to add a spinner to my ActionBar. The spinner display DOES allow me to temporarily drop below the "normal" Action Bar space, but I don't know how to fix its label at the top. Does this make any sense? If could use a spinner without losing the Action Bar label, it would probably be perfect. Does anybody know how I might do that? Does anybody think I probably should have opened a separate case??
Thanks, R.
Try this...
View customeView = getLayoutInflater().inflate(R.layout.custom_action_bar_layout, null);
getActionBar().setDisplayShowCustomEnabled(true)
getActionBar().setCustomView(addView);
Also refer: https://groups.google.com/forum/#!msg/android-developers/mDUJ1yYcVPQ/ATwHNLg1OA0J

Seekbar present or not in titanium

Hi I am searching for the seek bar in titanium just like android,But i have not come across such thing in documentation.Actually i want to change the value manually.I have seen progress bar but not seekbar.Can any body tell does titanium has implemented seekbar and if not what could be alternative way .
Thanks in advance
Sounds like you want Ti.UI.Slider.
http://docs.appcelerator.com/titanium/2.1/#!/api/Titanium.UI.Slider

How to handle a decibel meter type component/widget?

I'd like to be able to have some sort of volume panel looking something like :
|||||||||||||||||||||
Where the lines highlight according to how loud/quiet the sound is according to decibels. Is there a built in Android component to handle this, or does anyone have any ideas as to how I could handle this?
My approach would be to use a Rating Bar and override the android:numStars value to be the number of bars you want. Then, create a drawable that will replace the star images with bars. Really hope this helps.
Best of luck.

Android: How can make progress bar like this

I am working in android. i want to show a progress bar.
Progress is based on number of check in persons.
suppose, if number of check in =6 then following should be displayed:-
if number of checkin=10 then this following should be displayed:-
Please tell me how can i manage this RED COLOR BALLOON position according to progress bar position of progress.
you may provide some links for this.
Thank you in advance.
See this progress bar::
http://blog.mediarain.com/2011/04/android-custom-progressbar-with-rounded-corners/
Custom Drawable for ProgressBar/ProgressDialog

Categories

Resources