I want to create a android view that takes in a specific number and fills up a circle depending on that number. Example of view in the following link:
This view is to view how much data has been used by the user. My question would be what would be the best way to do this? How would I make the circle fill its self depending on the data used up everytime the person checks his data usage. Any tips are welcome.
PS: sorry for my bad English.
You could use a circular progressbar to do it and change the progress on change of the data count. You could yuse this library to do it https://github.com/lzyzsd/CircleProgress It has many different designs, so you could choose from them the one, which is best for you :)
Other possibilities you could see in the answers of this SO question How to create circular ProgressBar in android?
Related
I want to create a crossword puzzle using android studio. the problem that I run into is I can't figure out a good way to draw the crossword puzzle the crossword
upon selecting a word from that shape. the user will access an interface that is designed specifically for that word. where to enter the answer
The problem I have is how to actually create that crossword shape, especially since I need it to be created dynamically afterwards based on the supplied data.
After 15 days of research all I can find are those possibilities:
Using Table layout with each cell representing a character. But this approach is not appropriate and not optimate and create many problems.
Using GridView with the unused cells set to be invisible. this is better but I think there is a better way than creating Grids only to set most of it to invisible.*
**I am sure there is a better way, but can't figure it out.
I know I have to give a code sample for what I have but I can't even do that till I know what approach I need to create this. If there is any suggestion to make my question clear that will be welcomed as well.
Neither. This calls for custom view for the word grid. While you can probably get it to work without one, it's going to look very amateurish, and you're going to be very hacky. Instead, you'll want a totally custom view doing its own keyboard input handling. Unless this is like a school project where looks and UX don't matter and you just need it done.
I'm trying to make a kind of quiz-app relative to the music field where I keep on showing random images and the user takes the answers. For each answer I check in a database whether it is right or not. You can see some examples of what I mean here and here. The problem is that I should put in the Android Project a great number of images, which I suppose is not good. So I'm wondering if there is another way for doing that, maybe using sample-images for each element (a single note, a single sharp, the treble clef etc.) and fixing them toghether in some way in order to "build" the final image.. I really don't know. And also, is there a way to verify the answers without internet connection? Thanks in advance.
You can make a CustomView or views http://developer.android.com/training/custom-views/index.html and have it draw differently, depending on exactly what you're trying to convey. You could use a background as well as images, and draw the lines.
Adding custom View and ImageView to a single Layout explains how to include images in a CustomView .
I am learning android and want to implement the following scenario and I hope I'll get a good advice to get started.
In the following screen, there are some clickable buttons that represent the sports
[FindSports][1]
and when the user taps on any one of the icon/image it should become a little bit big from other so it stands out from other icons ( it should look like this image)
[Choosen Sport][2]
Any help is much appreciated :)
PS: sorry for my bad English and if it is already answered.
All views have a setScaleX() and setScaleY() method that you can use to change the size of the view. You probably want to call those methods in an onClickListener
I have a list view with some items in it and I would like to know how to add extra information to the side of this? I have a photoshopped example below of what I mean, it's difficult to describe without an image or I would have used google to try and find the answer myself. I want it with the extra text on the right hand side, i've seen it done easily within the iPhone but i'm a bit stuck with android. Thanks.
it's easy in Android too, you need to create a custom layout for a list item and set up an adapter to write to the fields of your new layout. here an example.
I am sure there is a better way to do what I am doing in my apps. The current one I am trying to improve is a list of military cadences. The way I am doing it now is by loading html files in a web view.
What I would like to be able to do is have one view set up and just be able to add the text portion of what I would be displaying with the html file.
What would be the best method. I know this is probably a pretty simple thing to do with a sting or array but I am at the very beginner level and would need to be pointed in the right direction to do it.
Sounds like you are searching for ListView. You can make a List of what you like tho show to the user and stick that with the an Adapter to the ListView.