Code Monkey home page Code Monkey logo

searchitem's Introduction

SearchItem

商品条形码/二维码搜索 Android APP


简述

一个轻量的商品条码/二维码扫描工具,并能够实时查询淘宝最低价。

该应用采用Google Zxing进行条码/二维码的扫描,参考官网与chentao0707的精简代码;取得扫描返回值后用Retrofit进行网络通信,从**物品编码网查询得到商品的官方信息,该网站接口返回的是一个html,这里通过Jsoup解析;再查询淘宝该商品的最低价(前三名),解析返回json并处理显示。

中文字体:NotoSansCJKsc-Light
风格:Theme.Material.Light.NoActionBar
组件:cart && button
动画:触摸反馈

接口来源:(网页接口)

--

适用版本

minSdkVersion 21
targetSdkVersion 25

--

第三方组件

--

依赖

dependencies {
    ...
    
    // Google zxing扫描
    compile 'com.google.zxing:zxing-parent:3.3.0'
    compile files('libs/zxing.jar')
    // 控件绑定
    compile 'com.jakewharton:butterknife:7.0.1'
    // Google FireBase
    compile 'com.google.firebase:firebase-core:9.8.0'
    compile 'com.google.firebase:firebase-database:9.8.0'
    // 网络通信
    compile 'com.squareup.okhttp3:okhttp:3.4.2'
    compile 'com.squareup.retrofit2:retrofit:2.0.2'
    // jsoup HTML parser library @ http://jsoup.org/
    compile 'org.jsoup:jsoup:1.10.1'
}

--

权限

    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.WAKE_LOCK" />
    <uses-permission android:name="android.permission.VIBRATE" />
    <uses-permission android:name="android.permission.CAMERA" />

--

展示

--

Bug

欢迎大家去issue里留言~~~

searchitem's People

Contributors

breadkid 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.