Continuous Image Marquee - java

I'm just curious if anyone knows the easiest solution for an image marquee in Android with clickable events, etc.
I've looked at a few various projects and flicked through the manual, but I can't seem to find anything appropriate.
I would like to create a scrolling image effect similar to the Expedia android application homepage. See https://play.google.com/store/apps/details?id=com.expedia.bookings&hl=en
What I've looked at so far :
FragmentActivity -- Scrolling seems jittery and would take a fair old amount of adapting to achieve what I want
HorizontalScrollView -- Limited scroll functionality (this would be perfect if I could
continiously loop the contents, but short of overriding the draw I can't see how it's possible)
GLSurfaceView -- So far this seems like it's the only viable solution, but it's gonna take me a while to implement all the functionality manually
Before I get cracking deep into the OpenGL route it would be of great help to know if there is something out there that can already do this.
If anyone could suggest anything it would be much appreciated!
Thanks

Related

Scroll able Arc Menu android

we have got a requirement in our ongoing project where we need to show menu items in arc style at both upper space and lower space of the screen in reverse direction(will show you samples). i've tried to use some of the code from the demo of ArcMenu used in Path android application, but what i came up with is this:
This is not what i want to achieve but something like menus in following images.
I am trying to achieve this from last 4 to 5 days but not getting it right. if any one out there has done any research on such problem then please guide me.
any help would be greatly appreciated.
Make ListView in Circular
Follow this its working code. Code is provided by Samsung
may be it will workfor your issues
http://developer.samsung.com/android/samples/Circle-Launcher
That's quite a complicated task, especially since you want it to scroll while respecting its arc shape. There are probably no fixed answers for this, you'll have to manually create this type of interaction. Unless you have specific code examples of what you've tried and failed at, I don't think anyone can really help you here. Besides the technical difficulty, you could wonder if it is really a smart idea to have THAT many options in an already pretty unclear/overwhelming widget, that you can scroll to even more options. Maybe some design re-thinking is a better option.
Some examples though which could you get on the way would be here;
https://stackoverflow.com/questions/12072692/a-circular-layout-with-scrollable-contents-in-it

Using Java WorldWind, but want an alternative

So, I realize this might not be the right site, but I didn't think it would be respectful to ask it on the WorldWind forums. If it should be somewhere else, please let me know.
Anyways...
I have this Java application that currently uses WorldWind to display a globe and place bitmaps corresponding to an item's location. WorldWind was initially picked for the project as an alternative to Google's product and because it had the "3D" effect. However, requirements change, and the 3D Globe is no longer necessary. (Also, WorldWind was a little heavy for the project - we found out that we would really like just a 2 color version if possible.)
My question to you all is:
What would you suggest as an alternative to WorldWind? I'm looking for just a "flat" map (or even just an image of the world...) that is zoomable, and is possible to layer objects on top of it (and those objects can move over time).
I have not really done much with map/image programming so please take that into consideration when replying :)
Have you checked out GeoTools? I believe it should be more than capable for what you are trying to do, though like WorldWind, the actual content is what contributes to things like color and such. Check out the quickstart which even includes some sample shapefile content, and has an example of an application which displays the shapefile content in a map frame. You may have to get your hands a bit dirty to play with geo-referenced bitmaps, though...
EDIT: I also found this on the Google: JXMapViewer
(just for the record, WorldWind has a "FlatMap" option)

"Home Screen" like effect while switching between views on Android

I'm creating an application on android similar to that of a book. I would simply like to have the scrolling effect between views (not activities) similar to that of the home screen. Currently I am using a ViewFlipper and don't have the animation I would like, since the shift is sudden as opposed to following your finger.
I am aware that there are several opensource projects and classes being developed to achieve such a thing more easily for the individual programmer, but wondered if there was a way I may have overlooked to implement a homescreen-esque effect. An alternative which I have thought of using would be a TabView, with no label tabs being displayed above the content of the page, yet have not heavily looked into this option yet.
If anyone has encountered the same hurdle and has any ideas of how to overcome it, I will buy you a pizza! (Not really... I don't know your address) But I'd be very appreciative! :)
Thanks
I think you're looking for the ViewPager. It's part of the compatibility library.

Adding content to tabs!

I'm a complete noob at android and java and have just got going with it, I have just done the appwidget tutorial from google, have set up three tabs like they have and have some pretty icons to go with them.
Now I have no idea how to add content and hide other tabs when one is clicked etc, in fact I have no idea where to even start adding content. I have had a huge scroll on google to find not much, just a lot of people with the same problem.
If anyone could point me to a tutorial or give me a push in the right direction I would be very grateful, I'm hoping you Java/Android programmers are a little nicer than the c++ programmers I've dealt with on forums ;)
Thanks! si
As for my experience with TableView ( you meant them, didn't you?), you have to put data into them directly. I would advice to use the ListView, that is not so buggish as tableview and can be connected to a cursor from a DB table. It has a tutorial http://developer.android.com/resources/tutorials/views/hello-listview.html
BTW, tableview, if you insist on using it, has tutorial there, too

Turn photoshop design into Java GUI

I can't seem to find anybody who has done or posted something like this; Essentially I want to design my own UI in photoshop and then slice down the images to use it in a Java application. Essentially coding in the PSD file as the GUI. Is this possible? If so, can anybody lead me in the right direction?
I'm not sure what editor to use for this sort of stuff. I am using the Eclipse IDE and I know there is a Visual Editor but, I already have the actual design for every component in a PSD file. All I want to do is to start incorporating this into the application. Thanks.
It depends on how far your design goes. If you simply want to have normal Swing components on top of your image this is easy. Convert your PSD into (for example) PNG, create a custom JPanel subclass that loads the image and overwrite the paintComponent() method to draw the image instead of the normal background. All child components can then be set to be transparent with setOpaque(false). This puts your image into the background and puts the components float on top of it.
If you want to change how individual components look, its a lot more work. You basically need to implement a new Look&Feel for Swing. I wouldn't recommend going that route, unless you really have to, we are talking about weeks of work here, and it requires a lot of testing to really make it work properly on all platforms.
Alternately, there are already tons of custom Look&Feels available, I suggest you take a look at some freely available ones (just google "java look and feel"). Many of them can be customized to some degree (how much depends on the actual implementation, so take a close look at the source/documentation for each of them).
You might want to take a look at NetBeans which has a Swing GUI Builder. You would have to redraw your components there, and then write all the code to process the events. It is sometimes good to start with that, though often times it is less frustrating to lay them out with code by hand as it can difficult to make changes in code and have the builder keep up. There is nothing I know that will let you start from a photoshop image and proceed to building a GUI. Sounds like a good project to make someone rich. :-)

Categories

Resources