I am trying to design a widget which looks like the "spinning wheel" (I am not sure it is appropriate name for it) widget that you can use to set up alarms or counters on the clock app provided with HTC Hero.
For those who do not know this application, this widget is made up with wheels that you scroll to specify hours, minutes, seconds.
I think it could be something like a kind of listview with a mask on it that isolate the selected element or a costumized timePicker but I do not manage to implement my widget from them and I did not find any tutorial on this topic.
Is there an easy way to do this based on ListViews?
Anyone has got an idea?
Thanks !
Hey there, there is one project doing this already, downloadable here.
And thats not the only project of it's kind. En plus, here is a tutorial about how to create such a wheel urself.
Cheers,
Ready4Fajir
Related
And many thanks for your help on this !
I would like to do an application where the main menu is like a long (very long) scroll view with some buttons to select different levels. The goal is to have custom buttons for level and custom styles for each part of the menu (like different worlds).
But I don't know how to do this easily (maybe) and efficiently (for sure) ? I though about a long ScrollView, but the performance could be really poor. Or about a ListView / GridView with a very custom style ?
Do you think it is needed to include a full game engine to achieve this ? Even the rest of my app does not need it ?
I found some inspiration apps which already use those kinds of menu :
HeadSpace App
Score! Hero Game
Or even a less styled one :
DuoLingo App
Thank you so much for your ideas, and hints on this !
Have a nice coding day !
I think this is a very personal question and decision; I mean: this depends on you, your preferences for your own game, is not a technical question. Personally I like your designs, but I think that "a long (very long) scroll view" could be slow and too heavy for the player. Think on the game experience, and the way you make it easier to interact for the gamer. That solution would be so slow to get the last levels, almost irritating. IMO, it is better to have one button for each world, and each of them guides the player to the levels inside that world. There you can use a GridView, customizing that, ordering buttons on zig-zag... But this is if you can repeat the levels or replay them; if is necesary to have that. If it is not necesary I woudn't show that as main menu.
Again, this is a very personal question and decision, not technical; and here people like me can give you a subjective opinion. It all depends on your preferences.
I want to implement a Week View Calender like the ones below. Another example may be the ICS Google Calender. The events will come from a database. So far i don't know where to start. Any ideas how i do this? Code and layout will be appreciated.
The calendar application that comes with stock android is open source. You can see the source code here. Getting a feel for this applications layout might be a good place to start.
Maybe you'll want to reuse some of this code.
Android Week View. can you use this Source code here
I did search the internet to find an answer to my questions but there are no websites that did help me, so I hope someone can! Thank you in advance and have a nice day :-)
So these days I've been busy to get more into the Android Design guidelines and to learn more about it and how to implement it in my future applications. This is the main website I use to see what the guidelines are: http://developer.android.com/design/index.html. Great website but there are a few small things I just can't find in the dev guide or somewhere else. I just don't know how to implement some (simple) UI elements.
Can someone provide me code snippets of the following questions? (I want to know how to do it as simple as possible, how Google ment it!) It can help other (starting) developers too!
My main question is, are there special elements to achieve these things? As they are the key element in Android 4.0 it should have this things as some standard right?
1) Android 4.0 is using titles with dividers a lot in there new theme and it's looking great. But I can't find how to do implement this element simple like it should. What I want to know is how to make this blue title text with the grey looking divider underneath it look at this picture:
2) How to make section dividers in general? Like this image:
3) How to make a list with section dividers and give a list-item a 2-line explanation under it's name like this:
I did search the internet to find an answer to my questions but there are no websites that did help me, so I hope someone can! Thank you in advance and have a nice day :-)
In most cases how you are going to have to do it is create a custom layout. I tried recreating the look of the people application this way. for the most part the look you are going for is similar to the PreferenceActivityview. That gives you the look of the last image and probably how it was done in the People application with some extra programming. I just found it easier to create my own layout though instead of trying to mess around with that.
To my knowledge there is nothing in the api to create what you are looking to do easily and custom layout are going to be the way to go.
the custom dialog layout like you show in the beginning is very simple to do so if you dont know how to do manipulate layouts I would start there. look up the android color swatches to get the color of that blue
Edit
another thing you could do is look through the People source code and see how they did it but it will probably be more of a pain than what its worth when you can just do a layout
I am trying to make a home screen app widget that is simply a digital clock displaying the current time.
Suprisingly the DigitalClock view is not supported for widgets but the AnalogClock view is. Ive been doing a bit of research and it seems I have have to use a service. This seems a bit like overkill for just a digital clock.
Does anyone have any suggestions or links for making a digital clock app widget?
Do you want something like 24clock?
Market link: https://market.android.com/details?id=com.alfray.a24clock
Google Code link: http://24clock.googlecode.com
Feel free to ask any question about the code. Screenshot:
You could use AlarmManager. See http://android-er.blogspot.com/2010/10/app-widget-using-alarm-manager.html for an example.
I need to create a Bi-directional spinner in Android .
Providing the following sample:
Can anyone provide any inputs ?
Thanks in Advance.
Does this help?
Android Number Picker Dialog
I'd agree with #Matt that a number picker is probably the best way. I wouldn't try and exactly duplicate the look of a windows form, as on a touch screen those up/down arrows are going to be very small.
If you really want the up/down functionality and are planning on using much larger buttons then you just need a couple of onClickListeners, one to increment the value and one to decrement.