How to add our own gestures in android? - android

I am working on the gestures concept. I want know some thing about how to add our own gestures in android.For example if user drawn "O" symbol i want to make some events. Please share some tutorials and Snippet of the code.

There are quite a few results available with a relatively simple Google search. I would normally post a sarcastic comment or something. :-)
But this isn't quite an everyday subject if you would, so I have here a few links that should get you started. But you should work on your Google foo too. ;-)
http://developer.samsung.com/android/technical-docs/Gestures-in-Android
http://www.hascode.com/2010/05/creating-a-simple-gesture-app-with-android/
http://code.google.com/p/quickdroid/source/checkout (QuickDroid Checkout)
http://code.google.com/p/quickdroid/source/browse/ (QuickDroid Browse code)
http://androidresearch.wordpress.com/2012/01/10/working-with-gesture-api-in-android/
I found the 5th link a little more promising. Of course, I haven't seen too much of it for that to be definite. But try them all anyway.

Check the link below which will guide on how to create our own gestures and use it.
1) Link 1
2) Link 2
3) Link 3
4) Link 4
Go throug some of the links you will surely get some idea about gestures.

Related

how can i implement a split button like below given image

i want this kind of drop-down button on my layout. i don't know the exact term, Please Help
I don't want a list, i only want when somebody tries to know about topic then he may click on that button, then button get split and all description related to specific topic will be shown to person.
I don't know how it would be implemented so i request the professionals to post answers
I searched from too many resources and tried to implement but i couldn't implement
Thank you
That is known as ExpandableListView. Refer to this example. Good luck
The closest component in Swing would be a JTree.
Read the section from the Swing tutorial on How to Use Trees for more information and working examples.
The next closest would be a JList, but you would need to add all the logic to support the expanding/collapsing of the list.

Android application tutorials activity

The following is my instructions page for the application that is being worked upon. For now I am just display this image via the ImageView using the scaleXY property to make it pan out throughout the screen. I do know that this is a very lame approach to making a tutorials page ... So can someone please tell me how can I correctly implement this tutorials page in my application ? Thanks in advanced.
This here looks like it can help you.
You're current method works, but I think you'll find this alternative much more preferable.
The ShowcaseView library is designed to highlight and showcase specific parts of apps to the user with a distinctive and attractive overlay. This library is great for pointing out points of interest for users, gestures, or obscure but useful items.
https://github.com/Espiandev/ShowcaseView

How to implement shopping cart in android

I am new in android. My app is basically is to scan the QR code to obtain product information such as the image, name, description and price and choose to add to cart and continue to do so(scan the qrcode) till user choose to end shopping and click to proceed to cart and will be shown the total prices of the items selected. User then can click either to edit the cart or proceed to the checkout. I have been searching tutorial but cannot find a complete one. Can anyone guide me through proper code how could i do this?
I do not think you will ever find a complete tutorial for the your task. However, a quick googling led me to zxing which can be used for processing barcode. I didnt go through the examples provided there, but I believe they are easy to understand.
Edit:
This is an exact duplicate of another question in SO. see
Now if that answer seems not enough for you, I think you are new to Android. Just google Android and you will find plenty of tutorials available. Start with Layouts, Activities, Intents, Bundles, Event Handling. To build what you want you would need a blend of many such small small things. Good luck
You will most probably wont find one single complete A to Z tutorial satisfying ALL of your app requirements .
But you can search for code/tutorial implementing parts of your app , like reading QR code , proceeding to next item etc . You will have to figure yourself out how it all comes together.
QR reader app on Google Play store

Page curl (Up and down curl) like it happens in i_phone

Can we have page curl between activities , i have gone through many forum's like Google forum git-hub. but all are for images or view's like layout but nothing i found which can work between activities can any one please help on this.
thanks
This guy has implemented it and was kind enough to share the code too. Only watch the video and download the code. And don't forget to give him credit in the code.
https://sites.google.com/site/hnimblog/bai-viet-2/android-hieu-ung-lat-trang-khong-dung-opengl

Android - first launch interactive tutorial

I'm writing a new app for android and I would like to implement also a first launch tutorial. In particular, the tutorial has to be interactive. Basically, after a user registers to the service, a minimum settings will be required.
I'd like something like today we have into Google Apps, like Sheets, Docs and so far. The exception there is that those tutorials have the aim to explain how the app works. Here I want to have something where user can input some data.
I was looking at ShowcaseView but seems to be deprecated and old in style.
So here the question is: what is the best way to implement that? ViewPager?
I also had a look to this other question, but it did not help too much.
Any advice is really appreciated.
EDIT: I have found this other nice alternative. AppIntro It seems what I was looking for. :)
There are few I found by quick searching Github:
https://github.com/Seishin/showcaseview-android
https://github.com/worker8/TourGuide
https://github.com/amlcurran/ShowcaseView
I'm pretty sure you can find the right one for you ;)
You can do it in several ways that really depends on you and your app. Basically you can create a "Boarding" experience with ViewPager that will go thru the main screen of your app (with static images for example) where you explain the user what goes on in your app. The other way way is an interactive tutorial as the user already landed into your app - you can achieve this with something like Showcase (I'm pretty sure that there are libs on GitHub that are still maintained).
I would recommend Roman Nuriks Wizard Pager code on Github as a starting point. It's not so much a library as a sample code showing you how to do what you want.
The general approach is to use a ViewPager with some form of navigation buttons to move the user forwards and backwards through the pager Fragments.
https://github.com/romannurik/Android-WizardPager

Categories

Resources