Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Possible to place swipe screen in java app?

 
Alice Hampton
Ranch Hand
Posts: 217
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • 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?
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15642
47
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • 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.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65339
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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.
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • 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
Saloon Keeper
Posts: 15642
47
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic