Is it possible scale rating bar in android? - 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.

Related

Poll for voting with buttons and percentage fill Android Kotlin

As in the title, I would like to create poll for voting with buttons and percentage fill. As long as someone does not vote, cannot see the results of the poll, only the buttons with the text, after voting, the buttons fill up with color depending on the percentage of votes for each. Additionally, the selected button has a different color than the others. The whole thing can be compared to a horizontal bar chart for voting.
I post only a pictorial photo, the whole thing will have different colors and layout:
Could someone explain to me how to approach something like this and what should I use?

Android TextView text splitting system

I'm going to make an app for which I need to know how does android split the text in it's TextView.Because of the splitting the text doesn't go out of the window it retains in side a bound.
The help what I need is like the image
In the image the text didn't overlap with the triangle. So I need a sample code spinnet which will help me to do that. Or idea to how to do it will also help me.
One of the easiest way, I think - split one TextView on several ones (for example - 3, or more if you need precise approximation).

Custom Rating Bar with various screen sizes

This is very frustating.I have made a custom rating bar with the help of this link: http://kozyr.zydako.net/2010/05/23/pretty-ratingbar/
And now when I look with various screen sizes to check the rating bar..It shows me very strange view.I have to use this rating bar in various hence I can not make layouts for all screen sizes...I have to work with one layout for various screen.
give values in dp instead of dpi. see the docs. I also suggest you to use different images for different devices like hdpi,mdpi,xhdpi.

Android 9-patch image usage

OK, I've read a lot of tutorials and even downloaded some examples, but for the love of Stackoverflow, I can't get my image to stretch like I want it to and I'm hoping that someone can help me out here.
I create an image that is to be the background of a button object in Android. Here is the image:
Now, I'd like for it to stretch to the desire size of the button, whether the button is 50x50dp or 200x100dp. One thing I don't want is the border to stretch as it will look distorted, so I want to specify not to include the border, but stretch everything else to the desired size of the button.
Can someone please show me where the black lines need to go in order to achieve my goal? Do I have to change my original image in order to achieve my goal?
Thank you in advanced.
David
It's very simple using this tool Android Asset Studio: Simple 9-Path Generator. Although no matter how you do it you will have stretching and distortion due to the textured (non-patterned) background. I would stay away from that style both personally and for usability.

How to create round shape image using android?

I am having four piece of image.
Here I attached one sample image.
How can I create the round shaped image using these type of images?
Which layout is best for creating the UI for android?
Thanks in advance.
are you talking about something like this..
http://www.baijs.nl/tinycircleslider/
And for designing the UI for Android is depends on our requirement.it means whether you want to design something looks like rows and columns then GridLayout and tableLayout will be better,depends on requirement and look the layout will changes once try it your self and choose the best suited for your applicaiton.All the best Mate
inside relative layout add four imageview with attrs ParentTop, ParentRight, ParentBottom and ParentLeft. every image is rectangular with transparent extra area.
i can understand it is little hard to visualize on first attempt.
now come to click area. so a runtime decision about ignore transparent area click will be right thing.
more tricky way will be manage flags for all listeners and if two listener get calls its transparent area .

Categories

Resources