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 :)
- 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);
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.