I would like to know if it is possible to do the following:
I would like to create sort of a slideshow element for my app that when a user swipes their finger of the image, it will take them to the next image. If they click on the image, it will take them to a link. Is this possible with Android? This would have to be updated from a link outside of the project of course. So it would have to be on our main Web site. The code cannot be developed in eclipse, since it will be targeting new events.
Thanks
Sounds like you want a Gallery or a ViewFlipper, with some ImageViews with click handlers that launch ACTION_VIEW intents with urls.
Related
I am thinking about creating a text-based game (similar to gamebooks) for android device. In this moment only theoretically. Do you have some advice please, which way to go?
You probably know how gamebooks works, but the gamebook I want, will be very easy, should work like this:
User has shown some image, text and 3 options (questions), he decides which option to click, then a new page is showing (according to the clicked option) with another image, text and another 3 options. Then again, the user clicks one option, another page opens, etc.
My question is not how to do it programmatically, but how to start with this in Android Studio, what system to use for such game on android or which way to go.
Because I think it has no sense to create intents after each click, as there might be hundreds of clickable options.
I have already created such game on my website with php/html/js, but I want to create it also offline for android.
Intents implies one activity per page - unmaintainable.
You should work with a database and load based on user interaction. So you'll need to learn about Databases and Asynchronicity (working in the background while updating the UI so the user knows)
Hi i have a app contain 3 page. and i want to set one page as background like android home screen. I search in google and i found this and this
tutorial's but i couldn't use it for my target can anyone show me another better example thanks.
i mean How can i create app like android home screen which have one picture for 5 pages background (in my phone).
at last i found my answer and that was so simpler that i think.
that was not a live wallpaper that was simple trick using scroolview for background of main layout and listen to onPageScrollStateChanged.
that's it.
In one part of my app, I'm trying to make a gallery of photos that you can browser through. I want to have a snapping effect similar to the Gallery class. I want it to have a snapping effect every time you swipe from one image to the next in the list. This would be similar to the Gallery app where you browser through photos, or who you swipe through your gallery of apps. Every time you swipe, it has a "snapping" effect. What would be the easiest way to do this?
I know in the newer Android APIs the Gallery deprecated, so that is out of the question.
You want ViewPager. It's included in the compatibility package and described in this Android Developers blog post.
I'm almost a complete beginner at programming (only did some basic a long time ago).
I want to learn how to make Android apps. My goal is to make a simple app that would be some kind of a picture gallery with a slideshow function.
The app would for example integrate ten pictures, there would be two arrows at the bottom of the screen to switch to the next (or previous) picture.
That's about it for a start.
Would any one be kind enough to list the main steps to follow in order to make this app ?
So far I'm learning the basics through various tutorials, but I'm kind of struggling...
Thanks in advance !
Make main activity that contains ImageView and two buttons
Make function that loads images into array or list
Implement listeners for button clicks
Is that enough or You want me to write more about this ?
I've followed the tutorial at http://developer.android.com/guide/tutorials/views/hello-gallery.html
to create a basic gallery. My ultimate goal is to use a gallery as the main menu for my app but I want the images to be stacked and scrollable. I've downloaded the code for the gallery 3d app but its just too much to analyze. Eventually thats what I'll do if I dont find an easier route. Any pointers?
Android Docs provided you a way to Arrange images like a stack. Take a look at this sample:
Images as Stack