Developing comic book - android

I am hoping to develop an android application which would contain comic books for viewing. Google Play has a Marvel Comics application that I would like to emulate since I like that type effect in my application. However, I'm having trouble starting
The effect is when the user double taps on comic part, only that part of image scales to fit the screen. The other areas on the image can be seen using a swiping effect, but it remains zoomed in. Once the user is finished with viewing the zoomed in image, another double tap will return the user to the original screen.
Are there any good links for me to look at? What is this feature called?

I would look at this - Is there a built in API for handling pinch-zoom functionality in Android - which covers the zoom API,
And this - How to detect doubletap on a View? - which covers double tapping on a view

Finally I used HTML5 for doing this type of animation. and its works perfectly in all device.

Related

Android Kitkat allows only swipe on 360 image

I am trying to implement 360 image for android in my application. I was successful in viewing the 360 image in my app using this tutorial https://developers.google.com/vr/android/get-started#start_your_own_project. After that I have to cases with phones running on different android APIs:
I was running the app in a phone which is running API 19(Kitkat). I can only swipe the 360 image to view the other areas of the image.
I implement the app in my other phone which is running on Lollipop, the image rotates along with the movement of my phone and there is no swipe option in it.
So, my query is:
Is there a way to toggle between these two options of swiping the 360 image manually and automatically rotating the 360 image along with the movement of my phone or having both options of viewing the image in one screen?
It shouldn't be possible yet, based on currently available documentation. Depending on the device, the SDK allows you to swipe the image with your finger or rotate the view using the gyroscope, but not both.
ORIGINAL
Did you use the VR view? Based on this post you can supposedly only do click and drag on a computer (browser), not Android.
Did you use a WebView for your swiping functionality?

How to add multiple pages in AIR for Android

I want to add multiple pages in my Android App, similar to the home screen on my phone, I want to be able to swipe left and right to see multiple pages.
I'm developing my app in Adobe Flash CC 2014 using "AIR 16.0 for Android".
Anyone know how I can do this?
You can go with different approaches for this problem. You could create some SwipeGestures to detect that or you could go the way Flash went since 1999, setup a Movieclip (or many) and listen for onMouseDown (ontouchstart) events and then say mc.startDrag(); (you want to limit the drag-movement to the X axis). Then onMouseUp (ontouchend) you can determine if the current MC is relativly cented and then tween it into the middle of the screen, or if the page is to far left/right and therefore page to the next page. There is also a Touch Drag implementation out of the box with ontouchmove .
Basicly what you are looking for is some kind of coverflow for AS3 ... or something a lot less fancy. Please make yourself comfortable with startDrag and StopDrag and you will see how you get there my doing.

How to Create a 2D Map for an RPG Game

I am working on a text RPG game for Android, and would like to create some kind of an area map for the player's reference. I Googled it but was directed to Tiled. I am not trying to create a playable level map, just a basic map that the player can open to see areas explored so far for easier navigation. I would probably create these graphics myself using Fireworks.
The problem is a phone screen is only so big, and I need to somehow allow the player to swipe left/right/up/down to see all parts of the map. I guess on the biggest tablets perhaps the whole map would fit, but I need to support smaller resolutions as well.
So basically I think I need a way to display the map image in an activity (which I know how to do, duh), and allow the user to scroll around it because it will be way bigger than the screen.

Positioning of device towards a target like Panorama images app in Android

I hope most of you have used the Panorama Image option in Camera app. They ask/force the user to move the device in one direction e.g. if you take 1st image then you move to 2nd image and then it will show you a TARGET BOX and when you reach that box the image is captured again and so on.
Panorama Images Example in Samsung Galaxy s2
I am interested to know that how can we achieve this functionality so that we can set target for user to move the device towards a certain direction. Which sensors can help to achieve this functionality and factors are involved?
Just a simple example is that we make a simple game in which we get an arrow towards the Target Box and when we get that target box in focus we get some score etc.
Please guide me on this, thanks.

Android DIV image changed, when clicked on the page

If you open any popup image in the Android browser, then click in any place on the page, the image is being changed (colors/sharpness/whatever - I can't define precisely, since I'm not an artist).
To see this effect, open a site with a popup image, which is implemented as a div with absolute positioning (say, http://highslide.com/ -- the first site I've googled). The site should be open in the Android browser (I've tried Android emulator from Eclipse ADT plugin and Kindle Fire). Click on any preview to popup the image, then tap on the page (keep you finger on the screen) and look at the image the same time.
My question: what this effect is about and how to eliminate it? Why don't I see it neither on PC nor on Mobile Safari? I have the same effect with my web-app, where it looks ugly and seems to be slowing a form, so I want to get rid of it.
A figure:
I've enlarged a portions of two shots, made before tapping on the arrow point, and after, and inserted them on top to show what I'm talking about.
Regards,
There's nothing wrong with your web app or your web page, this is simply a performance feature of Android. You can see this on the homescreen when you scroll and it happens in any application that scrolls.
When you tap, it signals to Android that you might potentially start scrolling. To prepare for this, it uses a compressed version of the images to make scrolling smoother.
You don't see this on your PC because your PC has no problem scrolling through a web page with tons of images at full resolution. As to why you don't see it on mobile safari, I don't know enough about the platform to say.
If every image on the page has the same physical size as specified in HTML/CSS, this effect disappears. That's why I observed this in popups: their inner images usually are resized.
I have mixed feelings. Kinda satisfaction for finding it after all and hatred to Android developers for programming this feature.

Categories

Resources