How to implement HTC Sense style time selectors in android? - android

Is there open code available for implementing a time selector like the one used in HTC Sense?
It's a wheel and the user can push it up or down to select higher or lower number.
If there isn't code available, how do I go about implementing it?
At best I would like to have a 59 beneath the 00 to be more like a real wheel.

It's called a NumericWheel in these code.google pages:
http://code.google.com/p/android-wheel/source/browse/trunk/wheel/src/kankan/wheel/widget/WheelView.java?r=4
http://code.google.com/p/android-wheel/
The source code in the first link has the URL to an Android dev blog which has a little more info. This should get you on your way.

Related

Ui like android sliding notification bar for web (html)

I am building a desktop app using electron (formerly known as node atom, using html javascript and css).
I want to use (or create if there is no choice) a sliding notification bar, like the one on android OS.
I failed to find existing components for this purpose and not sure how to develop this component myself.
I would like to know if such component or something similiar exists or how I could write one for my own use.
Thanks alot in advance for the help
Update 1
I was requested, rightfully, to give more info and be more specific.
I will expand on exactly what I need from this status bar, and why I need it and the context in which I need it for. (maybe there are better options that i'm not aware of).
I am writing a desktop app using nodejs electron (so my UI doesn't follow the common browser ui&ux rules).
The template that I have written so far looks like the following:
as you one can see, im trying to make it look as much as "mobile" I can while following google material design (i'm using angular 2, so angular 1 material is not an option, most of the component i'm using are from polymer elements collection)
The heart of my app is about running some algorithms on the server. I want a central place to show which algorithms are currently running and their status (there cant be more then 5 at once usually), so the only idea I could think of that fits material design and is central enough was to use something that looks like the android notification bar. The problem is that I couldn't find any web component that can achieve that. The status bar which i'm talking about looks like the following (The way it looks change a bit when looking at numerious android version, I don't mind exactly like which version it looks like). It should slide down from the top when clicked or dragged down like in an android mobile phone:
The notifications show whats currently active, I could also use a setting shortcut in it as well (The marked in red areas are the relevant parts). The rest of the options are not relevant.
So that's what I was initially looking for. If someone has a better idea on how to show these running algorithms in a central place, that fits the material design guidelines, I am also open to suggestions :)

Android programming. choosing number

it is hard to search for what i want because i have no idea what it is called so i do not know how exactly to ask this.
i want to make the user to choose numbers just like this in my application.
for example i put 3 of those and i set a certain number of values for each (for example from 0 to 22 in the first, from 5 to 40 in the second and 0 to 60 in third). and later the user chooses his values and when submitting the app reacts considering his choices.
thanks
That widget that you're looking for is called a 'Number Picker' and you can find more info about it here.
Android has a native implementation for a widget like this, it's called NumberPicker.
However, it was added alongside API 11 (3.0 or Honeycomb). So it might give you trouble if you want to support older Android versions. As an aternative, this library will help you if you're planning to support older APIs, it has been tested and confirmed working down to API 7 (2.1 or Eclair).
As a bonus, you could also give BetterPicker library a shot - it supports many kind of beautiful and customizable pickers.

Why responsive email works well on litmus test, but broken after sending it

I am testing a responsive email template named "Sidebar Hero" provided by ink, here's the link.
And when I test it at litmus, the screenshots at android and apple show that responsive works great as expected. Here's my test's screenshots: android4.0, and iPhone. You can check others android and iPhone aside.
But when I sent it from client(like thunderbird, outlook), the responsive broken. The email looks like a mess. Here's the scrrenshot:
How code was produced:
I download the template code directly from template page, and then use inliner tool provided by Ink too to make style inline. And then nothing. Everything done. In case you need my code
What I miss Or Any unaware mistakes that I make?
Anyone can help. Thanks very much !
Are you sending it through a corporate MS Exchange network? Sounds similar to an issue I had a while ago where the Exchange server at my work was stripping my media queries. Maybe try sending to a different email address on a different non-corporate domain to see if it makes a difference.
Having a similar issue...
In the docs it recommends using the Block grid for Gmail (Mobile, iOS, Android) because it is still flexible without using media queries. Also check out the compatability table right above the "Sub Grid" header.
Apparently the main caveat for using the block grid instead of the default one is:
"Make sure that there isn't any whitespace between your elements, otherwise Thunderbird will add a gap between your block-grid elements."
For floating two columns on top of each other ink template it's using column splitting instead of table aligning.
An issue that I found regarding this method is that display-block or float:left on "td" is not working for some android versions because the Doctype gets stripped.
The solution is to use "th" instead of "td" and to make sure to override the font-weight and align for "th", cause by default it's bold and center.

Android / iOS menu buttons

Sorry that I don't have a example code for you to see. My question is that I have 8 image buttons for my menu and I need to know how to make the image buttons show and not show.
Meaning When you go to the menu on Android it shows 7 buttons and hides the 1 button that's for iOS and when your on the iOS it shows all 8 image buttons. I have search on Google for two days now still lost.
I have one solution for menu buttons: Try this AwesomeMenu link.
You will have to make your own modification according to your requirement.
If you're writing a web app and you need to know if the app is being accessed on an Android device or an iOS device, you should look at the user agent string.
Here's a list of iOS devices and their user agent strings: http://www.enterpriseios.com/wiki/UserAgent (First hit on Google, can't speak for the accuracy).
Here's one for Android devices: http://www.gtrifonov.com/2011/04/15/google-android-user-agent-strings-2/ (again, no idea how accurate; do your own research to be sure).
You just have to look at navigator.userAgent in your JavaScript and figure out what device the user is using. That's a start, anyway. (You'll also want to look at the iOS web app documentation to see Apple's specific meta tags and stuff to make your web app work nicely on iOS, and I'm sure Android has something similar).

replacement for clock app

the least thing i like on the nexus one is the useless app it runs when on the desktop dock.
I already wasted a good day searching for the 3 topics below and failed to find anything.
Is there any replacement for it already available?
Is there source code for the original one?
Is there documentation on how to replace them?
Very Likely. Look in Android Market; I'm sure there's a desktop clock replacement app there.
Yes. look at DeskClock.git.
Yes. look at Intent.CATEGORY_DESK_DOCK. If you create an activity with an intent-filter that contains this category it'll show up in the list of available apps (the 'chooser') when the phone is docked.

Categories

Resources