jQuery in Action, 3rd edition
The moose likes Android and the fly likes Widget Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "Widget" Watch "Widget" New topic


Sahil Reddy
Ranch Hand

Joined: Jan 24, 2011
Posts: 145
Hello pals
I have the following requirement but i dont know what excatly i should use in order to accomplish my task

Requirement : A Widget that has scrollable items similar to the way it happens in Gallery view.

Please let me know about the possibilities..

Thanks and Regards
Przemek Boryka
Ranch Hand

Joined: Dec 06, 2011
Posts: 51

Hi !

You may use your own class, which extends View.class and overload the onDraw(Canvas c) method to create everything you want . Implemtent OnClickListener, OnTouchListener interfaces ... to handle user inputs.

in your activiti, create your layout using your created view as same as any other widget.

I hope it will help you Greeting from Poland.
Sahil Reddy
Ranch Hand

Joined: Jan 24, 2011
Posts: 145
Actually i want things to happen on HOME screen and not on my application similar to the following....

Click long on HOME screen --> Widgets.----> you would fid the same thing i want to achieve....

Please let me know how to get the code for same too ??

I agree. Here's the link: http://aspose.com/file-tools
subject: Widget
It's not a secret anymore!