Code Monkey home page Code Monkey logo

360-productview-android-app's Introduction

Draggable 360-Productview-Android-App

This is a 360 degree product view seeing in shoppingcart sites. User can view selected product by dragging round in 360 dregree like we see in cart sites this is an android version, build with help jquery runs prefectly in android webview.

#1)jQuery Plugin For Draggable 360 Degrees Product Image View - j360 (Link) an MIT Licence Script

Script info from the site
File Size: 	866KB
Views Total: 	7204
Last Update: 	2 years ago
Publish Date: 	2 years ago
License: 	MIT

Official Website: (Go to website)

#2)jquery.min.js (Link)

VIDEO (SAMPLE)

Some Screenshots are given below

On Rotation

On Rotation

On Rotation :)

On Rotation

On Rotation :)

On Rotation :)

Draggable 360-Productview-Android-App: how to use

  1. Use the Custum WebView ProductShowCaseWebView
<yourpackagename.ProductShowCaseWebView
        android:id="@+id/web_view"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent" />

2 Cast in java

       ProductShowCaseWebView wv = (ProductShowCaseWebView) findViewById(R.id.web_view);

3 Add images you need to use for the 360 view

       String imagesTag360="";

        /*Taking images from the assert folder*/

        for(int i=1;i<19;i++)
        {
            imagesTag360=imagesTag360+"<img src=\"file:///android_asset/images/image1_"+i+".jpg\"/>" ;
        }

4 To use images from url for 360 view

String imagesTag360="";

        /*Taking images from urlr*/
        int imageCount=19//Just for a example u can use any number, like size of imagelist(While you parse set of images to shown in the view)

        for(int i=1;i<imageCount;i++)
        {
            imagesTag360=imagesTag360+"<img src=\"http://imageurl.com/image1_.jpg\"/>" ;
        }

5 To make 360 degree draggable View

  wv.loadDataWithBaseURL("",
                imagesTag360, "text/html", "UTF-8", null);

License

The MIT License (MIT)

Copyright (c) 2015 Ramesh M Nair

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

360-productview-android-app's People

Contributors

rameshvoltella avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.