• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Possible to place swipe screen in java app?

 
Ranch Hand
Posts: 217
Eclipse IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to develop a prototype app that I will put on android but first I'm just developing it in Kepler Eclipse to see how I need it to work and what not.
I want to my main screen to be able to swipe through buttons that have images on them - so when they're clicked it will take you to a link on the internet

The only example I can think of is when on an iPod or iPad where you have the album icon and you can swipe left or right and it displays a new track then you can click on it and it plays.

I just want to know if doing that is even possible and if so would anyone mind suggesting anything to research into?
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you mean that you are first developing a regular Java desktop application, using some desktop GUI library such as Swing or JavaFX, but your real goal is to make an Android app?

If you want to do this in Android, then making a GUI in Swing or JavaFX is not going to help you at all. Java Android has its own GUI library, which is completely different from Swing or JavaFX. So you will not be able to use your desktop Java application on Android without rewriting a large part of it.

If you want to learn how to develop apps for Android, then have a look at http://developer.android.com/index.html

Alice Hampton wrote:I just want to know if doing that is even possible and if so would anyone mind suggesting anything to research into?


Ofcourse it's possible, you can program anything that is possible to program in software in Java.
 
Sheriff
Posts: 67754
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Jesper de Jong wrote:Java has its own GUI library, which is completely different from Swing or JavaFX.


I'm pretty sure that Jesper meant Android here rather than Java.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
+1 on it being misguided to implement this in Java SE first.

The Android approach would be to use an ImageView rather than a button, and then add a click or touch handler to that.

There are any number of ways how to implement swiping left or right to go through a list of images. Search for "Android image swipe view" or some such phrase.
 
Jesper de Jong
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bear Bibeault wrote:

Jesper de Jong wrote:Java has its own GUI library, which is completely different from Swing or JavaFX.


I'm pretty sure that Jesper meant Android here rather than Java.


Yes I did, edited in my post above.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic