Android tutorial for implementing scrollable lable with touch - android

I want to implement a date scroll label which displays a current date.
Now, user can touch the date and scroll either left or right direction ( something similar to unlock functionality or monthview scroller)
Based on the direction, either previous or next date should be displayed in the label part.
And user can do the same scrolling with multiple times.
Can anyone provide me the link for the tutorial which explains details about implementing such control.

Try this for start , http://www.kellbot.com/2009/06/android-hello-circle/

Related

How to arrange events for a daily calendar properly?

Helo,
I've got a calendar view, which displays every hour amond each other.
Now I want to add some LinearLayouts, so that my Events in my calendar are added.
But now the problem: What if there are several Events at the same time?
The first problem is, that the green box has to fit the screen under the blue and yellow box.
The second problem is, that the violet box has to be shown at the first column if there is no space available.
Does anybody know a good algorithm to solve this problem?
Thank you.
Calendar view

Jquery plugin for widget to scroll number up and down?

I'm looking for something that behaves like a text box and a drop-down for numbers. It has "up" and "down" buttons on the side. Clicking or holding "up" increases the number on the text box. Clicking or holding "down" button decreases it.
I remember seeing it in Visual Basic forms but I'm wondering if there is a web equivalent of such a thing; in the form of a jquery plugin or something.
I need it to look something like this.
Bonus points: If I could click on the "up" arrow and drag it upwards, the number should increment faster and vice-versa.
The name of the widget is apparently "numeric textbox". Kendo has a numeric textbox widget that gives this exact behavior, but it's not free.
I found another free widget called jstepper, but it's probably buggy and doesn't provide the behavior I'm expecting.

Scrolling between dates in android

I am working on a project where i have to horizontally scroll between dates.I don't want to use a date picker.I would like to have two arrows for previous and next buttons.When i click on the next button the next date should be shown.Also each time a new date is selected i want to call a web service by passing the particular date.How do i go about doing this?
I have considered using a horizontal date picker library but i am not satisfied with the solutions which i am finding on the internet.
You can use ViewPager for the same.

ANDROID user created text box?

I am looking to create an application that allows the user of the app the ability to create their own text box. It would be on top of an image file that I currently load. Basically they would zoom in to a place on the image, then drag with their fingers the position of the needed text box, then the box would be able to accept text...
I cannot find anywhere how I would accomplish this task ??? any suggestions or help would be much appreciated!!!
thank you!!
I am assuming based on
"then the box would be able to accept text..."
that you mean the user will be able to type things in to it.
If that is correct then an EditText is what you are looking for. By default this View is not set up to let the user
"drag with their fingers the position of the needed text box"
In order to make that work you'd have to write your own OnTouchListener for this view that recognizes the finger motions and changes the size of the EditText accordingly.

Listview, single choice in touch screen?

Goal: have a LIstView show a list of text strings. The user can select an item by touching it. The selected item is visibly different to those not selected.
In short I want to have a simple scrolling list box that works using trackballs AND touch mode.
There are many posts asking for this, but none seem to get an adequate answer. This is such a simple requirement, why is there no article on this?
I looked at http://developer.android.com/resources/tutorials/views/hello-listview.html but that won't work in touch mode: the orange background is displayed, something unachievable in touch mode without extreme geek wizadry, for something that is quite frankly what all newbies expect out of the box.
I suspect that the only way to achive a touch mode selectable listbox (ListView in google speak), is to stick radio buttons in there. All of a sudden my little text list view is beccoming a monster.
Can anyone explain the simplest way to do a single choice ListView that displays the item selected so the user can figure out that it is selected, in touch mode? After fumbling for days, I really am not fussed if it has radio buttons, singing cockatoos, or whatever, so long as it's simple to code.
Here's the example that Google provides:
http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/List10.html
It uses radio buttons
Wat do u want to do? Just highlighting the row in the ListView which is selected.rt? for this u can use this.
android:listSelector="#drawable/highlighter"
android:drawSelectorOnTop="true"
Write this code in your XML file

Categories

Resources