File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Widget" Watch "Widget" New topic
Author

Widget

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 ??

Reagards
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Widget
 
Similar Threads
JavaScript Spreadsheet widget
Current ClassLoader
Exclude a widget from the tab order
XPath: Node value exists
How to build dynamic and large tree