Android rating bar custom image for each star - android

Hello people i was wondering is it possible to set custom image for each star in rating bar like the following:
1 star for crying face
2 star for sad face
3 star for meh face
4 star for smiling face
5 star for happy face.
Just wondering how can i achieve this using custom rating bar styles.

Bingo!!
Have a look at this library starBar by badoo having one to ten stars with different color images like red orange yellow green u can change the images in resource to get your choice of bar.
I only found this solution after searching a lot hope it may work.

Related

How to Android partly color SVG image resource

In my android view I want to make star rating.
I have stars SVG and need to change their color partly like this
not full color, I have searched and there are only answers about setColorFilter , but it's not resolve my problem
you can not change color partially but one solution is you set different different images for example if user select half rating so you change image as half rating selection and accordingly change of user choice.

Change Nine Patch image color at runtime android

Good day.I want to change the actual 9 patch png image color during the runtime.The reason i need,is that i want to let user customize the actual color of image.My 9 patch image is an chat bubble.Simple DrawableTintCompat is not working as it is tinting the whole background except actual bubble.What i want is something like tinting,where the color of that bubble will be changed in 9 patch,so any of you guys have encounter such thing?Can you please give me an heads up?
Ok i have managed to do it slightly in other way.Here what you can do.
ninePatchImageViewHolder.setColorFilter(Color.parseColor(s), PorterDuff.Mode.SRC_ATOP);
At this point it will not change the whole background and keep the bubble lets say in same color,but will in correct way change the actual bubble color

Android custom horizontal number picker with range selector

I am new to android development.My requirement is to implement a number picker with range selector and the range values will be static as per the image.Is there any libraries or any other ways available to do this.I have researched a lot but cant get any thing related to this.
The section with green color can be scrolled to any where over the blue bar.And also the blue bar is scrollable itself having ranges from -40 to +40.
Please help
May be it can solve you problem
https://github.com/yahoo/android-range-seek-bar

Is it possible scale rating bar in android?

Android have the default star rating bar instead of star how can i use scale rating. Does any have implemented like that. Please share your valuable ideas.
Ex: Am expecting user click on the scale four value scale fills up to four, etc..
How can i achieve like this.
Sample Images:
It will changes fill values may be 4,5,8,9 like that. how to do like that. share your ideas
Thanks,
May be you could extend Seek Bar and create your own rating scale widget.

Change the Layout Background using image color code in Android

I am using the viewPager for Gallery and used "Depth Page Transformation" for animation i need to set the background according to the image. The background color should match with the image color meaning it should pick the background color from the image. Does any one know this..please tell me.
Loop through all the pixel's color data and average the color values, ignore anything that is a shade of grey or transparent. I believe that is what Microsoft does in Windows 7 based on a recent blog post.
See this blog post: http://blogs.msdn.com/b/oldnewthing/archive/2011/12/06/10244432.aspx
This link showing how Chrome picks the dominant color may also be helpful. http://www.quora.com/Google-Chrome/How-does-Chrome-pick-the-color-for-the-stripes-on-the-Most-visited-page-thumbnails
Find this snippet for android
http://forums.makingmoneywithandroid.com/android-development/406-%5Bhow-%5D-get-average-color-drawable-bitmap.html

Categories

Resources